|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.om.impl.dom.NodeImpl
Field Summary | |
protected OMXMLParserWrapper |
builder
Field builder |
protected boolean |
done
Field done |
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.axis2.om.OMNode |
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
Constructor Summary | |
protected |
NodeImpl()
|
protected |
NodeImpl(DocumentImpl ownerDocument)
|
Method Summary | |
Node |
appendChild(Node newChild)
|
void |
build()
Builds next element. |
Node |
cloneNode(boolean deep)
|
short |
compareDocumentPosition(Node arg0)
|
OMNode |
detach()
Removes a node (and all of its children) from its containing parent. |
NamedNodeMap |
getAttributes()
Returns the collection of attributes associated with this node, or null if none. |
String |
getBaseURI()
|
NodeList |
getChildNodes()
|
Object |
getFeature(String arg0,
String arg1)
|
Node |
getFirstChild()
Gets the first child of this Node, or null if none. |
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. |
String |
getLocalName()
|
String |
getNamespaceURI()
|
OMNode |
getNextOMSibling()
Default behavior returns null, overriden in ChildNode. |
Node |
getNextSibling()
Returns the next child of this node's parent, or null if none. |
String |
getNodeValue()
|
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. |
Node |
getParentNode()
|
String |
getPrefix()
|
OMNode |
getPreviousOMSibling()
Default behavior returns null, overriden in ChildNode. |
Node |
getPreviousSibling()
Returns the previous child of this node's parent, or null if none. |
String |
getTextContent()
|
Object |
getUserData(String arg0)
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
Node |
insertBefore(Node newChild,
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. |
boolean |
isComplete()
Indicates whether parser has parsed this information item completely or not. |
boolean |
isDefaultNamespace(String arg0)
|
boolean |
isEqualNode(Node arg0)
|
boolean |
isSameNode(Node arg0)
|
boolean |
isSupported(String feature,
String version)
|
Node |
item(int index)
NodeList method: Returns the Nth immediate child of this node, or null if the index is out of bounds. |
String |
lookupNamespaceURI(String arg0)
|
String |
lookupPrefix(String arg0)
|
void |
normalize()
|
Node |
removeChild(Node oldChild)
|
Node |
replaceChild(Node newChild,
Node oldChild)
|
void |
serialize(OutputStream output)
Serializes the node with caching. |
void |
serialize(OutputStream output,
OMOutputFormat format)
Serializes the node with caching. |
void |
serialize(Writer writer)
Serializes the node with caching. |
void |
serialize(Writer writer,
OMOutputFormat format)
Serializes the node with caching. |
void |
serialize(XMLStreamWriter xmlWriter)
Serializes the node with caching. |
void |
serializeAndConsume(OutputStream output)
Serializes the node without caching. |
void |
serializeAndConsume(OutputStream output,
OMOutputFormat format)
Serializes the node without caching. |
void |
serializeAndConsume(Writer writer)
Serializes the node without caching. |
void |
serializeAndConsume(Writer writer,
OMOutputFormat format)
Serializes the node without caching. |
void |
serializeAndConsume(XMLStreamWriter xmlWriter)
Serializes the node without caching. |
void |
serializeWithCache(OMOutputImpl omOutput)
There no concept of caching in this OM-DOM implementation. |
void |
setComplete(boolean state)
|
void |
setNextOMSibling(OMNode previousSibling)
|
void |
setNodeValue(String arg0)
|
protected void |
setOwnerDocument(DocumentImpl document)
Sets the owner document. |
void |
setPrefix(String prefix)
|
void |
setPreviousOMSibling(OMNode previousSibling)
|
void |
setTextContent(String arg0)
|
Object |
setUserData(String arg0,
Object arg1,
UserDataHandler arg2)
|
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.axis2.om.impl.OMNodeEx |
serialize, serializeAndConsume, setParent, setType |
Methods inherited from interface org.apache.axis2.om.OMNode |
discard, getType |
Field Detail |
protected OMXMLParserWrapper builder
protected boolean done
protected int nodeType
protected DocumentImpl ownerNode
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)
protected NodeImpl()
Method Detail |
public void normalize()
normalize
in interface Node
public boolean hasAttributes()
hasAttributes
in interface Node
public boolean hasChildNodes()
hasChildNodes
in interface Node
public String getLocalName()
getLocalName
in interface Node
public String getNamespaceURI()
getNamespaceURI
in interface Node
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
public String getPrefix()
getPrefix
in interface Node
public void setNodeValue(String arg0) throws DOMException
setNodeValue
in interface Node
DOMException
public void setPrefix(String prefix) throws DOMException
setPrefix
in interface Node
DOMException
public Document getOwnerDocument()
getOwnerDocument
in interface Node
public NamedNodeMap getAttributes()
getAttributes
in interface Node
ElementImpl
public Node getFirstChild()
By default we do not have any children, ParentNode overrides this.
getFirstChild
in interface Node
ParentNode
public Node getLastChild()
By default we do not have any children, ParentNode overrides this.
getLastChild
in interface Node
ParentNode
public Node getNextSibling()
getNextSibling
in interface Node
public Node getParentNode()
getParentNode
in interface Node
public Node getPreviousSibling()
getPreviousSibling
in interface Node
public Node cloneNode(boolean deep)
cloneNode
in interface Node
public NodeList getChildNodes()
getChildNodes
in interface Node
public boolean isSupported(String feature, String version)
isSupported
in interface Node
public Node appendChild(Node newChild) throws DOMException
appendChild
in interface Node
DOMException
public Node removeChild(Node oldChild) throws DOMException
removeChild
in interface Node
DOMException
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
DOMException
public int getLength()
By default we do not have any children, ParentNode overrides this.
getLength
in interface NodeList
ParentNode
public Node item(int index)
By default we do not have any children, ParentNode overrides this.
item
in interface NodeList
index
-
ParentNode
public OMContainer getParent() throws OMException
OMNode
Returns the parent container, which may be either an OMDocument
or OMElement
.
getParent
in interface OMNode
OMContainer
of the node.
OMException
public boolean isComplete()
OMNode
isComplete
in interface OMNode
public void setComplete(boolean state)
setComplete
in interface OMNodeEx
public void serializeWithCache(OMOutputImpl omOutput) throws XMLStreamException
XMLStreamException
public void insertSiblingAfter(OMNode sibling) throws OMException
OMNode
insertSiblingAfter
in interface OMNode
sibling
- The node that will be added after the current node.
OMException
public void insertSiblingBefore(OMNode sibling) throws OMException
OMNode
insertSiblingBefore
in interface OMNode
sibling
- The node that will be added before the current node.
OMException
public OMNode getPreviousOMSibling()
getPreviousOMSibling
in interface OMNode
public OMNode getNextOMSibling()
getNextOMSibling
in interface OMNode
public void setPreviousOMSibling(OMNode previousSibling)
setPreviousOMSibling
in interface OMNodeEx
public void setNextOMSibling(OMNode previousSibling)
setNextOMSibling
in interface OMNodeEx
public void build()
build
in interface OMNode
protected void setOwnerDocument(DocumentImpl document)
document
- public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
OMNode
serialize
in interface OMNode
xmlWriter
-
XMLStreamException
public void serializeAndConsume(XMLStreamWriter xmlWriter) throws XMLStreamException
OMNode
serializeAndConsume
in interface OMNode
xmlWriter
-
XMLStreamException
public OMNode detach()
OMNode
Removes 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 OMNode
public String getBaseURI()
public short compareDocumentPosition(Node arg0) throws DOMException
DOMException
public String getTextContent() throws DOMException
DOMException
public void setTextContent(String arg0) throws DOMException
DOMException
public boolean isSameNode(Node arg0)
public String lookupPrefix(String arg0)
public boolean isDefaultNamespace(String arg0)
public String lookupNamespaceURI(String arg0)
public boolean isEqualNode(Node arg0)
public Object getFeature(String arg0, String arg1)
public Object setUserData(String arg0, Object arg1, UserDataHandler arg2)
public Object getUserData(String arg0)
public void serialize(OutputStream output) throws XMLStreamException
OMNode
serialize
in interface OMNode
output
-
XMLStreamException
public void serialize(Writer writer) throws XMLStreamException
OMNode
serialize
in interface OMNode
writer
-
XMLStreamException
public void serializeAndConsume(OutputStream output) throws XMLStreamException
OMNode
serializeAndConsume
in interface OMNode
output
-
XMLStreamException
public void serializeAndConsume(Writer writer) throws XMLStreamException
OMNode
serializeAndConsume
in interface OMNode
writer
-
XMLStreamException
public void serialize(OutputStream output, OMOutputFormat format) throws XMLStreamException
OMNode
serialize
in interface OMNode
output
- format
-
XMLStreamException
public void serialize(Writer writer, OMOutputFormat format) throws XMLStreamException
OMNode
serialize
in interface OMNode
writer
- format
-
XMLStreamException
public void serializeAndConsume(OutputStream output, OMOutputFormat format) throws XMLStreamException
OMNode
serializeAndConsume
in interface OMNode
output
- format
-
XMLStreamException
public void serializeAndConsume(Writer writer, OMOutputFormat format) throws XMLStreamException
OMNode
serializeAndConsume
in interface OMNode
writer
- format
-
XMLStreamException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |