org.apache.axiom.om.impl.llom
Class OMCommentImpl

java.lang.Object
  extended by org.apache.axiom.om.impl.llom.OMSerializableImpl
      extended by org.apache.axiom.om.impl.llom.OMNodeImpl
          extended by org.apache.axiom.om.impl.llom.OMLeafNode
              extended by org.apache.axiom.om.impl.llom.OMCommentImpl
All Implemented Interfaces:
IChildNode, OMNodeEx, OMComment, OMInformationItem, OMNode, OMSerializable

public class OMCommentImpl
extends OMLeafNode
implements OMComment


Field Summary
protected  java.lang.String value
           
 
Fields inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl
nextSibling, parent, previousSibling
 
Fields inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl
factory
 
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
OMCommentImpl(OMContainer parentNode, java.lang.String contentText, OMFactory factory, boolean fromBuilder)
          Constructor OMCommentImpl.
 
Method Summary
 int getType()
           
 java.lang.String getValue()
          Gets the value of this comment.
 void internalSerialize(javax.xml.stream.XMLStreamWriter writer, boolean cache)
          Serializes the node.
 void setValue(java.lang.String text)
          Sets the value of this comment.
 
Methods inherited from class org.apache.axiom.om.impl.llom.OMLeafNode
build, discard, getBuilder, isComplete, setComplete
 
Methods inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl
buildWithAttachments, clone, detach, getIParentNode, getNextOMSibling, getNextOMSiblingIfAvailable, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, setNextOMSibling, setParent, setPreviousOMSibling
 
Methods inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl
close, getOMFactory, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.axiom.om.OMNode
buildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
 
Methods inherited from interface org.apache.axiom.om.OMSerializable
build, close, isComplete, serialize, serialize, serializeAndConsume
 
Methods inherited from interface org.apache.axiom.om.OMInformationItem
clone, getOMFactory
 

Field Detail

value

protected java.lang.String value
Constructor Detail

OMCommentImpl

public OMCommentImpl(OMContainer parentNode,
                     java.lang.String contentText,
                     OMFactory factory,
                     boolean fromBuilder)
Constructor OMCommentImpl.

Parameters:
parentNode -
contentText -
Method Detail

getType

public final int getType()
Specified by:
getType in interface OMNode

internalSerialize

public void internalSerialize(javax.xml.stream.XMLStreamWriter writer,
                              boolean cache)
                       throws javax.xml.stream.XMLStreamException
Description copied from class: OMSerializableImpl
Serializes the node.

Specified by:
internalSerialize in interface OMNodeEx
Specified by:
internalSerialize in class OMSerializableImpl
Throws:
javax.xml.stream.XMLStreamException

getValue

public java.lang.String getValue()
Gets the value of this comment.

Specified by:
getValue in interface OMComment
Returns:
Returns String.

setValue

public void setValue(java.lang.String text)
Sets the value of this comment.

Specified by:
setValue in interface OMComment
Parameters:
text -


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.