org.apache.axis2.om.impl.dom
Class ParentNode
java.lang.Object
org.apache.axis2.om.impl.dom.NodeImpl
org.apache.axis2.om.impl.dom.ChildNode
org.apache.axis2.om.impl.dom.ParentNode
- All Implemented Interfaces:
- Cloneable, Node, NodeList, org.apache.ws.commons.om.OMContainer, org.apache.ws.commons.om.impl.OMContainerEx, org.apache.ws.commons.om.OMNode, org.apache.ws.commons.om.impl.OMNodeEx
- Direct Known Subclasses:
- DocumentFragmentimpl, DocumentImpl, ElementImpl
- public abstract class ParentNode
- extends ChildNode
- implements org.apache.ws.commons.om.impl.OMContainerEx
Fields inherited from class org.apache.axis2.om.impl.dom.NodeImpl |
builder, done, factory, FIRSTCHILD, flags, nodeType, 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_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface org.apache.ws.commons.om.OMNode |
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
Constructor Summary |
protected |
ParentNode(DocumentImpl ownerDocument,
org.apache.ws.commons.om.OMFactory factory)
|
protected |
ParentNode(org.apache.ws.commons.om.OMFactory factory)
|
Methods inherited from class org.apache.axis2.om.impl.dom.ChildNode |
detach, discard, getNextOMSibling, getNextSibling, getParent, getParentNode, getPreviousOMSibling, getPreviousSibling, insertSiblingAfter, insertSiblingBefore, setNextOMSibling, setParent, setPreviousOMSibling |
Methods inherited from class org.apache.axis2.om.impl.dom.NodeImpl |
appendChild, build, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLength, getLocalName, getNamespaceURI, getNodeValue, getOMFactory, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeWithCache, setComplete, setNodeValue, setOwnerDocument, setPrefix, setTextContent, 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.ws.commons.om.impl.OMContainerEx |
setComplete |
Methods inherited from interface org.apache.ws.commons.om.OMContainer |
isComplete |
Methods inherited from interface org.apache.ws.commons.om.impl.OMNodeEx |
serialize, serializeAndConsume, setType |
Methods inherited from interface org.apache.ws.commons.om.OMNode |
getType |
firstChild
protected ChildNode firstChild
lastChild
protected ChildNode lastChild
ParentNode
protected ParentNode(DocumentImpl ownerDocument,
org.apache.ws.commons.om.OMFactory factory)
- Parameters:
ownerDocument
-
ParentNode
protected ParentNode(org.apache.ws.commons.om.OMFactory factory)
addChild
public void addChild(org.apache.ws.commons.om.OMNode omNode)
- Specified by:
addChild
in interface org.apache.ws.commons.om.OMContainer
buildNext
public void buildNext()
- Specified by:
buildNext
in interface org.apache.ws.commons.om.OMContainer
getChildren
public Iterator getChildren()
- Specified by:
getChildren
in interface org.apache.ws.commons.om.OMContainer
getChildrenWithName
public Iterator getChildrenWithName(QName elementQName)
throws org.apache.ws.commons.om.OMException
- Returns an iterator of child nodes having a given qname.
- Specified by:
getChildrenWithName
in interface org.apache.ws.commons.om.OMContainer
- Throws:
org.apache.ws.commons.om.OMException
- See Also:
(javax.xml.namespace.QName)
getFirstChildWithName
public org.apache.ws.commons.om.OMElement getFirstChildWithName(QName elementQName)
throws org.apache.ws.commons.om.OMException
- Returns the first OMElement child node.
- Specified by:
getFirstChildWithName
in interface org.apache.ws.commons.om.OMContainer
- Throws:
org.apache.ws.commons.om.OMException
- See Also:
(javax.xml.namespace.QName)
getFirstOMChild
public org.apache.ws.commons.om.OMNode getFirstOMChild()
- Specified by:
getFirstOMChild
in interface org.apache.ws.commons.om.OMContainer
setFirstChild
public void setFirstChild(org.apache.ws.commons.om.OMNode omNode)
- Specified by:
setFirstChild
in interface org.apache.ws.commons.om.impl.OMContainerEx
getChildNodes
public NodeList getChildNodes()
- Specified by:
getChildNodes
in interface Node
- Overrides:
getChildNodes
in class NodeImpl
getFirstChild
public Node getFirstChild()
- Description copied from class:
NodeImpl
- Gets the first child of this Node, or null if none.
By default we do not have any children, ParentNode overrides this.
- Specified by:
getFirstChild
in interface Node
- Overrides:
getFirstChild
in class NodeImpl
- See Also:
ParentNode
getLastChild
public Node getLastChild()
- Description copied from class:
NodeImpl
- Gets the last child of this Node, or null if none.
By default we do not have any children, ParentNode overrides this.
- Specified by:
getLastChild
in interface Node
- Overrides:
getLastChild
in class NodeImpl
- See Also:
ParentNode
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodes
in interface Node
- Overrides:
hasChildNodes
in class NodeImpl
insertBefore
public Node insertBefore(Node newChild,
Node refChild)
throws DOMException
- Inserts newChild before the refChild. If the refChild is null then the
newChild is made the last child.
- Specified by:
insertBefore
in interface Node
- Overrides:
insertBefore
in class NodeImpl
- Throws:
DOMException
replaceChild
public Node replaceChild(Node newChild,
Node oldChild)
throws DOMException
- Replaces the oldChild with the newChild.
- Specified by:
replaceChild
in interface Node
- Overrides:
replaceChild
in class NodeImpl
- Throws:
DOMException
removeChild
public Node removeChild(Node oldChild)
throws DOMException
- Removes the given child from the DOM Tree.
- Specified by:
removeChild
in interface Node
- Overrides:
removeChild
in class NodeImpl
- Throws:
DOMException
cloneNode
public Node cloneNode(boolean deep)
- Specified by:
cloneNode
in interface Node
- Overrides:
cloneNode
in class ChildNode