|
||||||||||
| 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(javax.xml.namespace.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(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 - Iterator getChildrenWithName(javax.xml.namespace.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 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)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 | |||||||||