|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OMContainer
Captures the operations related to containment shared by both a document and an element.
Exposes the ability to add, find, and iterate over the children of a document or element.
Method Summary | |
---|---|
void |
addChild(OMNode omNode)
Adds the given node as the last child. |
void |
buildNext()
|
Iterator |
getChildren()
Returns an iterator for the children of the container. |
Iterator |
getChildrenWithLocalName(String localName)
Returns an iterator for child nodes matching the local name. |
Iterator |
getChildrenWithName(QName elementQName)
Returns an iterator for child nodes matching the given QName. |
Iterator |
getChildrenWithNamespaceURI(String uri)
Returns an iterator for child nodes matching the namespace uri. |
OMElement |
getFirstChildWithName(QName elementQName)
Returns the first child in document order that matches the given QName |
OMNode |
getFirstOMChild()
Gets the first child. |
void |
serialize(OutputStream output)
Serializes the node with caching. |
void |
serialize(OutputStream output,
OMOutputFormat format)
Serializes the node with caching. |
void |
serialize(Writer writer)
Serializes the node with caching. |
void |
serialize(Writer writer,
OMOutputFormat format)
Serializes the node with caching. |
void |
serializeAndConsume(OutputStream output)
Serializes the node without caching. |
void |
serializeAndConsume(OutputStream output,
OMOutputFormat format)
Serializes the node without caching. |
void |
serializeAndConsume(Writer writer)
Serializes the node without caching. |
void |
serializeAndConsume(Writer writer,
OMOutputFormat format)
Serializes the node without caching. |
Methods inherited from interface org.apache.axiom.om.OMSerializable |
---|
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume |
Method Detail |
---|
void addChild(OMNode omNode)
omNode
- Iterator getChildrenWithName(QName elementQName)
elementQName
- The QName specifying namespace and local name to match.
OMElement
items that match the given QNameIterator getChildrenWithLocalName(String localName)
localName
-
OMElement
items that match the given localNameIterator getChildrenWithNamespaceURI(String uri)
uri
-
OMElement
items that match the given uriOMElement getFirstChildWithName(QName elementQName) throws OMException
The QName filter is applied as in the function getChildrenWithName(javax.xml.namespace.QName)
.
elementQName
- The QName to use for matching.
OMException
- Could indirectly trigger building of child nodes.getChildrenWithName(javax.xml.namespace.QName)
Iterator getChildren()
Iterator
of children, all of which implement OMNode
.getFirstChildWithName(javax.xml.namespace.QName)
,
getChildrenWithName(javax.xml.namespace.QName)
OMNode getFirstOMChild()
void serialize(OutputStream output) throws XMLStreamException
output
-
XMLStreamException
void serialize(Writer writer) throws XMLStreamException
writer
-
XMLStreamException
void serialize(OutputStream output, OMOutputFormat format) throws XMLStreamException
output
- format
-
XMLStreamException
void serialize(Writer writer, OMOutputFormat format) throws XMLStreamException
writer
- format
-
XMLStreamException
void serializeAndConsume(OutputStream output) throws XMLStreamException
output
-
XMLStreamException
void serializeAndConsume(Writer writer) throws XMLStreamException
writer
-
XMLStreamException
void serializeAndConsume(OutputStream output, OMOutputFormat format) throws XMLStreamException
output
- format
-
XMLStreamException
void serializeAndConsume(Writer writer, OMOutputFormat format) throws XMLStreamException
writer
- format
-
XMLStreamException
void buildNext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |