public class OMCommentImpl extends OMNodeImpl implements OMComment
Modifier and Type | Field and Description |
---|---|
protected String |
value |
nextSibling, nodeType, parent, previousSibling
builder, done, factory
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
Constructor and Description |
---|
OMCommentImpl(OMContainer parentNode,
OMFactory factory)
Constructor OMCommentImpl.
|
OMCommentImpl(OMContainer parentNode,
String contentText,
OMFactory factory)
Constructor OMCommentImpl.
|
Modifier and Type | Method and Description |
---|---|
void |
discard()
Discards this node.
|
String |
getValue()
Gets the value of this comment.
|
void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean cache)
Serializes the node.
|
void |
setValue(String text)
Sets the value of this comment.
|
buildWithAttachments, detach, getNextOMSibling, getNextOMSiblingIfAvailable, getParent, getPreviousOMSibling, getType, importNode, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling, setType
build, close, getOMFactory, isComplete, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildWithAttachments, detach, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume
protected String value
public OMCommentImpl(OMContainer parentNode, String contentText, OMFactory factory)
parentNode
- contentText
- public OMCommentImpl(OMContainer parentNode, OMFactory factory)
parentNode
- public void internalSerialize(javax.xml.stream.XMLStreamWriter writer, boolean cache) throws javax.xml.stream.XMLStreamException
OMSerializableImpl
internalSerialize
in interface OMNodeEx
internalSerialize
in class OMSerializableImpl
cache
- indicates if caching should be enabledjavax.xml.stream.XMLStreamException
public String getValue()
public void setValue(String text)
public void discard() throws OMException
discard
in interface OMNode
OMException
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.