org.apache.axiom.om.impl.dom
Class CommentImpl

java.lang.Object
  extended byorg.apache.axiom.om.impl.dom.NodeImpl
      extended byorg.apache.axiom.om.impl.dom.ChildNode
          extended byorg.apache.axiom.om.impl.dom.CharacterImpl
              extended byorg.apache.axiom.om.impl.dom.CommentImpl
All Implemented Interfaces:
org.w3c.dom.CharacterData, java.lang.Cloneable, org.w3c.dom.Comment, org.w3c.dom.Node, org.w3c.dom.NodeList, org.apache.axiom.om.OMComment, org.apache.axiom.om.OMNode, org.apache.axiom.om.impl.OMNodeEx

public class CommentImpl
extends CharacterImpl
implements org.w3c.dom.Comment, org.apache.axiom.om.OMComment


Field Summary
 
Fields inherited from class org.apache.axiom.om.impl.dom.CharacterImpl
textValue
 
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_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
CommentImpl(DocumentImpl ownerNode, org.apache.axiom.om.OMFactory factory)
           
CommentImpl(DocumentImpl ownerNode, java.lang.String value, org.apache.axiom.om.OMFactory factory)
           
 
Method Summary
 java.lang.String getNodeName()
           
 short getNodeType()
           
 int getType()
           
 java.lang.String getValue()
           
 void internalSerialize(javax.xml.stream.XMLStreamWriter writer)
           
 void internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
           
 void setType(int nodeType)
           
 void setValue(java.lang.String text)
           
 
Methods inherited from class org.apache.axiom.om.impl.dom.CharacterImpl
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData
 
Methods inherited from class org.apache.axiom.om.impl.dom.ChildNode
cloneNode, 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, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeValue, getOMFactory, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, internalSerializeWithCache, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, 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.CharacterData
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData
 
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.axiom.om.OMNode
build, buildWithAttachments, detach, discard, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
 

Constructor Detail

CommentImpl

public CommentImpl(DocumentImpl ownerNode,
                   org.apache.axiom.om.OMFactory factory)

CommentImpl

public CommentImpl(DocumentImpl ownerNode,
                   java.lang.String value,
                   org.apache.axiom.om.OMFactory factory)
Method Detail

getNodeName

public java.lang.String getNodeName()
Specified by:
getNodeName in interface org.w3c.dom.Node

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface org.w3c.dom.Node

getValue

public java.lang.String getValue()
Specified by:
getValue in interface org.apache.axiom.om.OMComment

setValue

public void setValue(java.lang.String text)
Specified by:
setValue in interface org.apache.axiom.om.OMComment

getType

public int getType()
Specified by:
getType in interface org.apache.axiom.om.OMNode

setType

public void setType(int nodeType)
             throws org.apache.axiom.om.OMException
Specified by:
setType in interface org.apache.axiom.om.impl.OMNodeEx
Throws:
org.apache.axiom.om.OMException

internalSerialize

public void internalSerialize(javax.xml.stream.XMLStreamWriter writer)
                       throws javax.xml.stream.XMLStreamException
Specified by:
internalSerialize in interface org.apache.axiom.om.impl.OMNodeEx
Throws:
javax.xml.stream.XMLStreamException

internalSerializeAndConsume

public void internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
                                 throws javax.xml.stream.XMLStreamException
Specified by:
internalSerializeAndConsume in interface org.apache.axiom.om.impl.OMNodeEx
Throws:
javax.xml.stream.XMLStreamException


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.