|
||||||||||
| 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()
|
java.util.Iterator |
getChildren()
Returns an iterator for the children of the container. |
java.util.Iterator |
getChildrenWithLocalName(java.lang.String localName)
Returns an iterator for child nodes matching the local name. |
java.util.Iterator |
getChildrenWithName(javax.xml.namespace.QName elementQName)
Returns an iterator for child nodes matching the given QName. |
java.util.Iterator |
getChildrenWithNamespaceURI(java.lang.String uri)
Returns an iterator for child nodes matching the namespace uri. |
OMElement |
getFirstChildWithName(javax.xml.namespace.QName elementQName)
Returns the first child in document order that matches the given QName |
OMNode |
getFirstOMChild()
Gets the first child. |
void |
serialize(java.io.OutputStream output)
Serializes the node with caching. |
void |
serialize(java.io.OutputStream output,
OMOutputFormat format)
Serializes the node with caching. |
void |
serialize(java.io.Writer writer)
Serializes the node with caching. |
void |
serialize(java.io.Writer writer,
OMOutputFormat format)
Serializes the node with caching. |
void |
serializeAndConsume(java.io.OutputStream output)
Serializes the node without caching. |
void |
serializeAndConsume(java.io.OutputStream output,
OMOutputFormat format)
Serializes the node without caching. |
void |
serializeAndConsume(java.io.Writer writer)
Serializes the node without caching. |
void |
serializeAndConsume(java.io.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 - java.util.Iterator getChildrenWithName(javax.xml.namespace.QName elementQName)
elementQName - The QName specifying namespace and local name to match.
OMElement items that match the given QNamejava.util.Iterator getChildrenWithLocalName(java.lang.String localName)
localName -
OMElement items that match the given localNamejava.util.Iterator getChildrenWithNamespaceURI(java.lang.String uri)
uri -
OMElement items that match the given uri
OMElement getFirstChildWithName(javax.xml.namespace.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)java.util.Iterator getChildren()
Iterator of children, all of which implement OMNode.getFirstChildWithName(javax.xml.namespace.QName),
getChildrenWithName(javax.xml.namespace.QName)OMNode getFirstOMChild()
void serialize(java.io.OutputStream output)
throws javax.xml.stream.XMLStreamException
output -
javax.xml.stream.XMLStreamException
void serialize(java.io.Writer writer)
throws javax.xml.stream.XMLStreamException
writer -
javax.xml.stream.XMLStreamException
void serialize(java.io.OutputStream output,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
output - format -
javax.xml.stream.XMLStreamException
void serialize(java.io.Writer writer,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
writer - format -
javax.xml.stream.XMLStreamException
void serializeAndConsume(java.io.OutputStream output)
throws javax.xml.stream.XMLStreamException
output -
javax.xml.stream.XMLStreamException
void serializeAndConsume(java.io.Writer writer)
throws javax.xml.stream.XMLStreamException
writer -
javax.xml.stream.XMLStreamException
void serializeAndConsume(java.io.OutputStream output,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
output - format -
javax.xml.stream.XMLStreamException
void serializeAndConsume(java.io.Writer writer,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
writer - format -
javax.xml.stream.XMLStreamExceptionvoid buildNext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||