org.apache.axis2.om.impl.dom
Class CommentImpl
java.lang.Object
org.apache.axis2.om.impl.dom.NodeImpl
org.apache.axis2.om.impl.dom.ChildNode
org.apache.axis2.om.impl.dom.CharacterImpl
org.apache.axis2.om.impl.dom.CommentImpl
- All Implemented Interfaces:
- CharacterData, Cloneable, Comment, Node, NodeList, OMComment, OMNode, OMNodeEx
- public class CommentImpl
- extends CharacterImpl
- implements Comment, OMComment
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 |
Methods inherited from class org.apache.axis2.om.impl.dom.ChildNode |
cloneNode, 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, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeValue, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, 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.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from interface org.apache.axis2.om.OMNode |
build, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
CommentImpl
public CommentImpl(DocumentImpl ownerNode)
CommentImpl
public CommentImpl(DocumentImpl ownerNode,
String value)
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interface Node
getNodeType
public short getNodeType()
- Specified by:
getNodeType
in interface Node
getValue
public String getValue()
- Description copied from interface:
OMComment
- Returns the value of this comment as defined by XPath 1.0.
- Specified by:
getValue
in interface OMComment
- Returns:
- Returns String.
setValue
public void setValue(String text)
- Description copied from interface:
OMComment
- Sets the content of this comment to the specified string.
- Specified by:
setValue
in interface OMComment
- Parameters:
text
-
getType
public int getType()
- Description copied from interface:
OMNode
- Returns the type of node.
- Specified by:
getType
in interface OMNode
- Returns:
- Returns one of
OMNode.ELEMENT_NODE
, OMNode.TEXT_NODE
, OMNode.CDATA_SECTION_NODE
, OMNode.COMMENT_NODE
,
OMNode.DTD_NODE
, OMNode.PI_NODE
, OMNode.ENTITY_REFERENCE_NODE
, OMNode.SPACE_NODE
,
or OMNode.TEXT_NODE
.
setType
public void setType(int nodeType)
throws OMException
- Specified by:
setType
in interface OMNodeEx
- Throws:
OMException
serialize
public void serialize(OMOutputImpl omOutput)
throws XMLStreamException
- Description copied from interface:
OMNodeEx
- Serializes the node with caching.
- Specified by:
serialize
in interface OMNodeEx
- Parameters:
omOutput
-
- Throws:
XMLStreamException
- See Also:
OMNodeEx.serialize(org.apache.axis2.om.impl.OMOutputImpl)
serializeAndConsume
public void serializeAndConsume(OMOutputImpl omOutput)
throws XMLStreamException
- Description copied from interface:
OMNodeEx
- Serializes the node without caching.
- Specified by:
serializeAndConsume
in interface OMNodeEx
- Parameters:
omOutput
-
- Throws:
XMLStreamException