|
||||||||||
| 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. |
boolean |
isComplete()
|
| 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()
boolean isComplete()
void buildNext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||