|
||||||||||
| 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.ChildNode
org.apache.axiom.om.impl.dom.ParentNode
public abstract class ParentNode
| Field Summary | |
|---|---|
protected ChildNode |
firstChild
|
protected ChildNode |
lastChild
|
| Fields inherited from class org.apache.axiom.om.impl.dom.ChildNode |
|---|
nextSibling, parentNode, previousSibling |
| Fields inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
|---|
builder, done, factory, FIRSTCHILD, flags, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED |
| 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 |
| Fields inherited from interface org.apache.axiom.om.OMNode |
|---|
DTD_NODE, PI_NODE, SPACE_NODE |
| Constructor Summary | |
|---|---|
protected |
ParentNode(DocumentImpl ownerDocument,
OMFactory factory)
|
protected |
ParentNode(OMFactory factory)
|
| Method Summary | |
|---|---|
void |
addChild(OMNode omNode)
Adds the given node as the last child. |
void |
buildNext()
|
org.w3c.dom.Node |
cloneNode(boolean deep)
|
org.w3c.dom.NodeList |
getChildNodes()
|
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 of child nodes having a given qname. |
java.util.Iterator |
getChildrenWithNamespaceURI(java.lang.String uri)
Returns an iterator for child nodes matching the namespace uri. |
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()
Gets the first child. |
org.w3c.dom.Node |
getLastChild()
Gets the last child of this Node, or null if none. |
java.lang.String |
getTextContent()
|
boolean |
hasChildNodes()
|
protected OMNode |
importNode(OMNode child)
This method is intended only to be used by Axiom intenals when merging Objects from different Axiom implementations to the DOOM implementation. |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
Inserts newChild before the refChild. |
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 omNode)
forcefully set the first element in this parent element |
void |
setLastChild(OMNode omNode)
Forcefully set the last child |
void |
setTextContent(java.lang.String textContent)
|
| Methods inherited from class org.apache.axiom.om.impl.dom.ChildNode |
|---|
detach, discard, getNextOMSibling, getNextSibling, getParent, getParentNode, getPreviousOMSibling, getPreviousSibling, insertSiblingAfter, insertSiblingBefore, setNextOMSibling, setParent, setPreviousOMSibling |
| Methods inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
|---|
appendChild, build, buildWithAttachments, close, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLength, getLocalName, getNamespaceURI, getNodeValue, getOMFactory, getOwnerDocument, getPrefix, getUserData, hasAttributes, internalSerializeWithCache, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNodeValue, setOwnerDocument, setPrefix, setUserData |
| 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.OMContainerEx |
|---|
setComplete |
| Methods inherited from interface org.apache.axiom.om.OMContainer |
|---|
isComplete |
| Methods inherited from interface org.w3c.dom.Node |
|---|
getNodeName, getNodeType |
| Methods inherited from interface org.apache.axiom.om.impl.OMNodeEx |
|---|
internalSerialize, internalSerializeAndConsume, setType |
| Methods inherited from interface org.apache.axiom.om.OMNode |
|---|
getType |
| Field Detail |
|---|
protected ChildNode firstChild
protected ChildNode lastChild
| Constructor Detail |
|---|
protected ParentNode(DocumentImpl ownerDocument,
OMFactory factory)
ownerDocument - protected ParentNode(OMFactory factory)
| Method Detail |
|---|
public void addChild(OMNode omNode)
OMContainer
addChild in interface OMContainerpublic void buildNext()
buildNext in interface OMContainerpublic java.util.Iterator getChildren()
OMContainer
getChildren in interface OMContainerIterator of children, all of which implement OMNode.OMContainer.getFirstChildWithName(javax.xml.namespace.QName),
OMContainer.getChildrenWithName(javax.xml.namespace.QName)
public java.util.Iterator getChildrenWithName(javax.xml.namespace.QName elementQName)
throws OMException
getChildrenWithName in interface OMContainerelementQName - The QName specifying namespace and local name to match.
OMElement items that match the given QName
OMException(javax.xml.namespace.QName)public java.util.Iterator getChildrenWithLocalName(java.lang.String localName)
OMContainer
getChildrenWithLocalName in interface OMContainerOMElement items that match the given localNamepublic java.util.Iterator getChildrenWithNamespaceURI(java.lang.String uri)
OMContainer
getChildrenWithNamespaceURI in interface OMContainerOMElement items that match the given uri
public OMElement getFirstChildWithName(javax.xml.namespace.QName elementQName)
throws OMException
getFirstChildWithName in interface OMContainerelementQName - The QName to use for matching.
OMException - Could indirectly trigger building of child nodes.(javax.xml.namespace.QName)public OMNode getFirstOMChild()
OMContainer
getFirstOMChild in interface OMContainerpublic void setFirstChild(OMNode omNode)
OMContainerEx
setFirstChild in interface OMContainerExpublic void setLastChild(OMNode omNode)
setLastChild in interface OMContainerExomNode - public org.w3c.dom.NodeList getChildNodes()
getChildNodes in interface org.w3c.dom.NodegetChildNodes in class NodeImplpublic 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 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.NodeinsertBefore in class NodeImplorg.w3c.dom.DOMException
public 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.NodereplaceChild in class NodeImplorg.w3c.dom.DOMException
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
removeChild in interface org.w3c.dom.NoderemoveChild in class NodeImplorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Node cloneNode(boolean deep)
cloneNode in interface org.w3c.dom.NodecloneNode in class ChildNodeprotected OMNode importNode(OMNode child)
child -
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.DOMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||