|
|||||||||||
| 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
| Field Summary | |
protected OMXMLParserWrapper |
builder
Field builder |
protected boolean |
done
Field done |
protected OMFactory |
factory
Factory that created this node |
protected static short |
FIRSTCHILD
|
protected short |
flags
|
protected int |
nodeType
Field nodeType |
protected static short |
NORMALIZED
|
protected static short |
OWNED
|
protected DocumentImpl |
ownerNode
|
protected static short |
READONLY
|
protected static short |
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.axiom.om.OMNode |
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
| Constructor Summary | |
protected |
NodeImpl(DocumentImpl ownerDocument,
OMFactory factory)
|
protected |
NodeImpl(OMFactory factory)
|
| Method Summary | |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
|
void |
build()
Builds next element. |
org.w3c.dom.Node |
cloneNode(boolean deep)
|
short |
compareDocumentPosition(org.w3c.dom.Node arg0)
|
OMNode |
detach()
Removes a node (and all of its children) from its containing parent. |
org.w3c.dom.NamedNodeMap |
getAttributes()
Returns the collection of attributes associated with this node, or null if none. |
java.lang.String |
getBaseURI()
|
org.w3c.dom.NodeList |
getChildNodes()
|
java.lang.Object |
getFeature(java.lang.String arg0,
java.lang.String arg1)
|
org.w3c.dom.Node |
getFirstChild()
Gets the first child of this Node, or null if none. |
org.w3c.dom.Node |
getLastChild()
Gets the last child of this Node, or null if none. |
int |
getLength()
NodeList method: Returns the number of immediate children of this node. |
java.lang.String |
getLocalName()
|
java.lang.String |
getNamespaceURI()
|
OMNode |
getNextOMSibling()
Default behavior returns null, overriden in ChildNode. |
org.w3c.dom.Node |
getNextSibling()
Returns the next child of this node's parent, or null if none. |
java.lang.String |
getNodeValue()
|
OMFactory |
getOMFactory()
Returns the OMFactory that created this node |
org.w3c.dom.Document |
getOwnerDocument()
Finds the document that this Node belongs to (the document in whose context the Node was created). |
OMContainer |
getParent()
Returns the parent containing node. |
org.w3c.dom.Node |
getParentNode()
|
java.lang.String |
getPrefix()
|
OMNode |
getPreviousOMSibling()
Default behavior returns null, overriden in ChildNode. |
org.w3c.dom.Node |
getPreviousSibling()
Returns the previous child of this node's parent, or null if none. |
java.lang.String |
getTextContent()
|
java.lang.Object |
getUserData(java.lang.String key)
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
|
void |
insertSiblingAfter(OMNode sibling)
Inserts a new sibling after the current node. |
void |
insertSiblingBefore(OMNode sibling)
Inserts a sibling just before the current node. |
void |
internalSerializeWithCache(javax.xml.stream.XMLStreamWriter writer)
There no concept of caching in this OM-DOM implementation. |
boolean |
isComplete()
Indicates whether parser has parsed this information item completely or not. |
boolean |
isDefaultNamespace(java.lang.String arg0)
|
boolean |
isEqualNode(org.w3c.dom.Node arg0)
|
boolean |
isSameNode(org.w3c.dom.Node arg0)
|
boolean |
isSupported(java.lang.String feature,
java.lang.String version)
|
org.w3c.dom.Node |
item(int index)
NodeList method: Returns the Nth immediate child of this node, or null if the index is out of bounds. |
java.lang.String |
lookupNamespaceURI(java.lang.String arg0)
|
java.lang.String |
lookupPrefix(java.lang.String arg0)
|
void |
normalize()
|
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
|
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
|
void |
serialize(java.io.OutputStream output)
Serializes the node with caching. |
void |
serialize(java.io.OutputStream output,
OMOutputFormat format)
Serializes the node with caching. |
void |
serialize(java.io.Writer writer)
Serializes the node with caching. |
void |
serialize(java.io.Writer writer2,
OMOutputFormat format)
Serializes the node with caching. |
void |
serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
Serializes the node with caching. |
void |
serializeAndConsume(java.io.OutputStream output)
Serializes the node without caching. |
void |
serializeAndConsume(java.io.OutputStream output,
OMOutputFormat format)
Serializes the node without caching. |
void |
serializeAndConsume(java.io.Writer writer)
Serializes the node without caching. |
void |
serializeAndConsume(java.io.Writer writer2,
OMOutputFormat format)
Serializes the node without caching. |
void |
serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter)
Serializes the node without caching. |
void |
setComplete(boolean state)
|
void |
setNextOMSibling(OMNode previousSibling)
|
void |
setNodeValue(java.lang.String arg0)
|
protected void |
setOwnerDocument(DocumentImpl document)
Sets the owner document. |
void |
setPrefix(java.lang.String prefix)
|
void |
setPreviousOMSibling(OMNode previousSibling)
|
void |
setTextContent(java.lang.String arg0)
|
java.lang.Object |
setUserData(java.lang.String key,
java.lang.Object value,
org.w3c.dom.UserDataHandler userDataHandler)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
getNodeName, getNodeType |
| Methods inherited from interface org.apache.axiom.om.impl.OMNodeEx |
internalSerialize, internalSerializeAndConsume, setParent, setType |
| Methods inherited from interface org.apache.axiom.om.OMNode |
discard, getType |
| Field Detail |
protected OMXMLParserWrapper builder
protected boolean done
protected int nodeType
protected DocumentImpl ownerNode
protected OMFactory factory
protected short flags
protected static final short OWNED
protected static final short FIRSTCHILD
protected static final short READONLY
protected static final short SPECIFIED
protected static final short NORMALIZED
| Constructor Detail |
protected NodeImpl(DocumentImpl ownerDocument,
OMFactory factory)
protected NodeImpl(OMFactory factory)
| Method Detail |
public void normalize()
normalize in interface org.w3c.dom.Nodepublic boolean hasAttributes()
hasAttributes in interface org.w3c.dom.Nodepublic boolean hasChildNodes()
hasChildNodes in interface org.w3c.dom.Nodepublic java.lang.String getLocalName()
getLocalName in interface org.w3c.dom.Nodepublic java.lang.String getNamespaceURI()
getNamespaceURI in interface org.w3c.dom.Node
public java.lang.String getNodeValue()
throws org.w3c.dom.DOMException
getNodeValue in interface org.w3c.dom.Nodeorg.w3c.dom.DOMExceptionpublic java.lang.String getPrefix()
getPrefix in interface org.w3c.dom.Node
public void setNodeValue(java.lang.String arg0)
throws org.w3c.dom.DOMException
setNodeValue in interface org.w3c.dom.Nodeorg.w3c.dom.DOMException
public void setPrefix(java.lang.String prefix)
throws org.w3c.dom.DOMException
setPrefix in interface org.w3c.dom.Nodeorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Document getOwnerDocument()
getOwnerDocument in interface org.w3c.dom.Nodepublic org.w3c.dom.NamedNodeMap getAttributes()
getAttributes in interface org.w3c.dom.NodeElementImplpublic org.w3c.dom.Node getFirstChild()
By default we do not have any children, ParentNode overrides this.
getFirstChild in interface org.w3c.dom.NodeParentNodepublic org.w3c.dom.Node getLastChild()
By default we do not have any children, ParentNode overrides this.
getLastChild in interface org.w3c.dom.NodeParentNodepublic org.w3c.dom.Node getNextSibling()
getNextSibling in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getParentNode()
getParentNode in interface org.w3c.dom.Nodepublic org.w3c.dom.Node getPreviousSibling()
getPreviousSibling in interface org.w3c.dom.Nodepublic org.w3c.dom.Node cloneNode(boolean deep)
cloneNode in interface org.w3c.dom.Nodepublic org.w3c.dom.NodeList getChildNodes()
getChildNodes in interface org.w3c.dom.Node
public boolean isSupported(java.lang.String feature,
java.lang.String version)
isSupported in interface org.w3c.dom.Node
public 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 removeChild(org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
removeChild 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 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.DOMExceptionpublic int getLength()
By default we do not have any children, ParentNode overrides this.
getLength in interface org.w3c.dom.NodeListParentNodepublic org.w3c.dom.Node item(int index)
By default we do not have any children, ParentNode overrides this.
item in interface org.w3c.dom.NodeListindex -
ParentNode
public OMContainer getParent()
throws OMException
OMNodeReturns the parent container, which may be either an OMDocument or OMElement.
getParent in interface OMNodeOMContainer of the node.
OMExceptionpublic boolean isComplete()
OMNode
isComplete in interface OMNodepublic void setComplete(boolean state)
setComplete in interface OMNodeEx
public void internalSerializeWithCache(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void insertSiblingAfter(OMNode sibling)
throws OMException
OMNode
insertSiblingAfter in interface OMNodesibling - The node that will be added after the current node.
OMException
public void insertSiblingBefore(OMNode sibling)
throws OMException
OMNode
insertSiblingBefore in interface OMNodesibling - The node that will be added before the current node.
OMExceptionpublic OMNode getPreviousOMSibling()
getPreviousOMSibling in interface OMNodepublic OMNode getNextOMSibling()
getNextOMSibling in interface OMNodepublic void setPreviousOMSibling(OMNode previousSibling)
setPreviousOMSibling in interface OMNodeExpublic void setNextOMSibling(OMNode previousSibling)
setNextOMSibling in interface OMNodeExpublic void build()
build in interface OMNodeprotected void setOwnerDocument(DocumentImpl document)
document -
public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException
OMNode
serialize in interface OMNodexmlWriter -
javax.xml.stream.XMLStreamException
public void serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException
OMNode
serializeAndConsume in interface OMNodexmlWriter -
javax.xml.stream.XMLStreamExceptionpublic OMNode detach()
OMNodeRemoves a node from its parent. Partially complete nodes will be completed before they are detached from the model. A node cannot be detached until its next sibling has been identified, so that the next sibling and parent can be updated appropriately. Please note that this will not handle the namespaces. For example, if there you have used a namespace within the detaching node and which is defined outside the detaching node, user has to handle it manually.
detach in interface OMNodepublic java.lang.String getBaseURI()
public short compareDocumentPosition(org.w3c.dom.Node arg0)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public java.lang.String getTextContent()
throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void setTextContent(java.lang.String arg0)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic boolean isSameNode(org.w3c.dom.Node arg0)
public java.lang.String lookupPrefix(java.lang.String arg0)
public boolean isDefaultNamespace(java.lang.String arg0)
public java.lang.String lookupNamespaceURI(java.lang.String arg0)
public boolean isEqualNode(org.w3c.dom.Node arg0)
public java.lang.Object getFeature(java.lang.String arg0,
java.lang.String arg1)
public java.lang.Object setUserData(java.lang.String key,
java.lang.Object value,
org.w3c.dom.UserDataHandler userDataHandler)
public java.lang.Object getUserData(java.lang.String key)
public void serialize(java.io.OutputStream output)
throws javax.xml.stream.XMLStreamException
OMNode
serialize in interface OMNodeoutput -
javax.xml.stream.XMLStreamException
public void serialize(java.io.Writer writer)
throws javax.xml.stream.XMLStreamException
OMNode
serialize in interface OMNodewriter -
javax.xml.stream.XMLStreamException
public void serializeAndConsume(java.io.OutputStream output)
throws javax.xml.stream.XMLStreamException
OMNode
serializeAndConsume in interface OMNodeoutput -
javax.xml.stream.XMLStreamException
public void serializeAndConsume(java.io.Writer writer)
throws javax.xml.stream.XMLStreamException
OMNode
serializeAndConsume in interface OMNodewriter -
javax.xml.stream.XMLStreamException
public void serialize(java.io.OutputStream output,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
OMNode
serialize in interface OMNodeoutput - format -
javax.xml.stream.XMLStreamException
public void serialize(java.io.Writer writer2,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
OMNode
serialize in interface OMNodewriter2 - format -
javax.xml.stream.XMLStreamException
public void serializeAndConsume(java.io.OutputStream output,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
OMNode
serializeAndConsume in interface OMNodeoutput - format -
javax.xml.stream.XMLStreamException
public void serializeAndConsume(java.io.Writer writer2,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
OMNode
serializeAndConsume in interface OMNodewriter2 - format -
javax.xml.stream.XMLStreamExceptionpublic OMFactory getOMFactory()
OMFactory that created this node
getOMFactory in interface OMNode
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||