|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axiom.om.impl.dom.NodeImpl
org.apache.axiom.om.impl.dom.ParentNode
public abstract class ParentNode
| Field Summary | |
|---|---|
protected NodeImpl |
firstChild
|
protected NodeImpl |
lastChild
|
| Fields inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
|---|
factory, FIRSTCHILD, flags, HAS_PARENT, SPECIFIED |
| Fields inherited from interface org.apache.axiom.om.impl.common.IParentNode |
|---|
COMPLETE, DISCARDED, INCOMPLETE |
| Fields inherited from interface org.w3c.dom.Node |
|---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Constructor Summary | |
|---|---|
protected |
ParentNode(OMFactory factory)
|
| Method Summary | |
|---|---|
void |
addChild(OMNode omNode)
|
void |
addChild(OMNode omNode,
boolean fromBuilder)
|
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
|
org.w3c.dom.NodeList |
getChildNodes()
|
java.util.Iterator |
getChildren()
|
java.util.Iterator |
getChildrenWithLocalName(java.lang.String localName)
|
java.util.Iterator |
getChildrenWithName(javax.xml.namespace.QName elementQName)
Returns an iterator of child nodes having a given qname. |
java.util.Iterator |
getChildrenWithNamespaceURI(java.lang.String uri)
|
java.util.Iterator |
getDescendants(boolean includeSelf)
|
org.w3c.dom.Node |
getFirstChild()
Gets the first child of this Node, or null if none. |
OMElement |
getFirstChildWithName(javax.xml.namespace.QName elementQName)
Returns the first OMElement child node. |
OMNode |
getFirstOMChild()
|
OMNode |
getFirstOMChildIfAvailable()
|
org.w3c.dom.Node |
getLastChild()
Gets the last child of this Node, or null if none. |
OMNode |
getLastKnownOMChild()
|
int |
getLength()
|
javax.xml.transform.sax.SAXSource |
getSAXSource(boolean cache)
|
java.lang.String |
getTextContent()
|
javax.xml.stream.XMLStreamReader |
getXMLStreamReader()
|
javax.xml.stream.XMLStreamReader |
getXMLStreamReader(boolean cache)
|
javax.xml.stream.XMLStreamReader |
getXMLStreamReader(boolean cache,
OMXMLStreamReaderConfiguration configuration)
|
javax.xml.stream.XMLStreamReader |
getXMLStreamReaderWithoutCaching()
|
boolean |
hasChildNodes()
|
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
Inserts newChild before the refChild. |
org.w3c.dom.Node |
item(int index)
|
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
Removes the given child from the DOM Tree. |
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
Replaces the oldChild with the newChild. |
void |
setFirstChild(OMNode firstChild)
|
void |
setLastChild(OMNode omNode)
Forcefully set the last child |
void |
setTextContent(java.lang.String textContent)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.axiom.om.impl.common.IParentNode |
|---|
getBuilder, getState, isComplete |
| Methods inherited from interface org.w3c.dom.Node |
|---|
getNextSibling, getNodeName, getNodeType, lookupNamespaceURI |
| Field Detail |
|---|
protected NodeImpl firstChild
protected NodeImpl lastChild
| Constructor Detail |
|---|
protected ParentNode(OMFactory factory)
| Method Detail |
|---|
public void addChild(OMNode omNode)
public void addChild(OMNode omNode,
boolean fromBuilder)
public java.util.Iterator getChildren()
public java.util.Iterator getDescendants(boolean includeSelf)
public java.util.Iterator getChildrenWithName(javax.xml.namespace.QName elementQName)
throws OMException
OMException(javax.xml.namespace.QName)public java.util.Iterator getChildrenWithLocalName(java.lang.String localName)
public java.util.Iterator getChildrenWithNamespaceURI(java.lang.String uri)
public OMElement getFirstChildWithName(javax.xml.namespace.QName elementQName)
throws OMException
OMException(javax.xml.namespace.QName)public OMNode getFirstOMChild()
public OMNode getFirstOMChildIfAvailable()
getFirstOMChildIfAvailable in interface IParentNodepublic OMNode getLastKnownOMChild()
public void setFirstChild(OMNode firstChild)
public void setLastChild(OMNode omNode)
omNode - public final org.w3c.dom.NodeList getChildNodes()
getChildNodes in interface org.w3c.dom.Nodepublic final int getLength()
getLength in interface org.w3c.dom.NodeListpublic final org.w3c.dom.Node item(int index)
item in interface org.w3c.dom.NodeListpublic org.w3c.dom.Node getFirstChild()
NodeImpl
getFirstChild in interface org.w3c.dom.NodegetFirstChild in class NodeImplParentNodepublic org.w3c.dom.Node getLastChild()
NodeImpl
getLastChild in interface org.w3c.dom.NodegetLastChild in class NodeImplParentNodepublic boolean hasChildNodes()
hasChildNodes in interface org.w3c.dom.NodehasChildNodes in class NodeImpl
public final org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
throws org.w3c.dom.DOMException
appendChild in interface org.w3c.dom.Nodeorg.w3c.dom.DOMException
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
throws org.w3c.dom.DOMException
insertBefore in interface org.w3c.dom.Nodeorg.w3c.dom.DOMException
public final org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
replaceChild in interface org.w3c.dom.Nodeorg.w3c.dom.DOMException
public final org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
removeChild in interface org.w3c.dom.Nodeorg.w3c.dom.DOMException
public java.lang.String getTextContent()
throws org.w3c.dom.DOMException
getTextContent in interface org.w3c.dom.NodegetTextContent in class NodeImplorg.w3c.dom.DOMException
public void setTextContent(java.lang.String textContent)
throws org.w3c.dom.DOMException
setTextContent in interface org.w3c.dom.NodesetTextContent in class NodeImplorg.w3c.dom.DOMExceptionpublic javax.xml.stream.XMLStreamReader getXMLStreamReaderWithoutCaching()
public javax.xml.stream.XMLStreamReader getXMLStreamReader()
public javax.xml.stream.XMLStreamReader getXMLStreamReader(boolean cache)
public javax.xml.stream.XMLStreamReader getXMLStreamReader(boolean cache,
OMXMLStreamReaderConfiguration configuration)
public javax.xml.transform.sax.SAXSource getSAXSource(boolean cache)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||