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

java.lang.Object
  extended byorg.apache.axis2.om.impl.llom.OMNodeImpl
      extended byorg.apache.axis2.om.impl.llom.OMCommentImpl
All Implemented Interfaces:
OMComment, OMNode, OMNodeEx

public class OMCommentImpl
extends OMNodeImpl
implements OMComment


Field Summary
protected  String value
           
 
Fields inherited from class org.apache.axis2.om.impl.llom.OMNodeImpl
builder, done, nextSibling, nodeType, parent, previousSibling
 
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
OMCommentImpl(OMContainer parentNode)
          Constructor OMCommentImpl.
OMCommentImpl(OMContainer parentNode, String contentText)
          Constructor OMCommentImpl.
 
Method Summary
 void discard()
          Discards this node.
 String getValue()
          Gets the value of this comment.
 void serialize(OMOutputImpl omOutput)
          Serializes the node with caching.
 void serializeAndConsume(OMOutputImpl omOutput)
          Serializes the node without caching.
 void setValue(String text)
          Sets the value of this comment.
 
Methods inherited from class org.apache.axis2.om.impl.llom.OMNodeImpl
build, detach, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.axis2.om.OMNode
build, detach, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
 

Field Detail

value

protected String value
Constructor Detail

OMCommentImpl

public OMCommentImpl(OMContainer parentNode,
                     String contentText)
Constructor OMCommentImpl.

Parameters:
parentNode -
contentText -

OMCommentImpl

public OMCommentImpl(OMContainer parentNode)
Constructor OMCommentImpl.

Parameters:
parentNode -
Method Detail

serialize

public void serialize(OMOutputImpl omOutput)
               throws XMLStreamException
Serializes the node with caching.

Specified by:
serialize in interface OMNodeEx
Overrides:
serialize in class OMNodeImpl
Parameters:
omOutput -
Throws:
XMLStreamException
See Also:
serialize(org.apache.axis2.om.impl.OMOutputImpl)

serializeAndConsume

public void serializeAndConsume(OMOutputImpl omOutput)
                         throws XMLStreamException
Serializes the node without caching.

Specified by:
serializeAndConsume in interface OMNodeEx
Overrides:
serializeAndConsume in class OMNodeImpl
Parameters:
omOutput -
Throws:
XMLStreamException
See Also:
serializeAndConsume(org.apache.axis2.om.impl.OMOutputImpl)

getValue

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

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

setValue

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

Specified by:
setValue in interface OMComment
Parameters:
text -

discard

public void discard()
             throws OMException
Discards this node.

Specified by:
discard in interface OMNode
Throws:
OMException