|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
getChildrenWithName(javax.xml.namespace.QName elementQName)
Returns an iterator for child nodes matching the given QName. |
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 |
public void addChild(OMNode omNode)
omNode
- public 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 QNamepublic 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)
public java.util.Iterator getChildren()
Iterator
of children, all of which implement OMNode
.getFirstChildWithName(javax.xml.namespace.QName)
,
getChildrenWithName(javax.xml.namespace.QName)
public OMNode getFirstOMChild()
public boolean isComplete()
public void buildNext()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |