public class OMCommentImpl extends OMNodeImpl implements org.apache.axiom.om.OMComment
| Modifier and Type | Field and Description |
|---|---|
protected String |
value |
nextSibling, nodeType, parent, previousSiblingbuilder, done, factory| Constructor and Description |
|---|
OMCommentImpl(org.apache.axiom.om.OMContainer parentNode,
org.apache.axiom.om.OMFactory factory)
Constructor OMCommentImpl.
|
OMCommentImpl(org.apache.axiom.om.OMContainer parentNode,
String contentText,
org.apache.axiom.om.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(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, setTypebuild, close, getOMFactory, isComplete, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildWithAttachments, detach, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumeprotected String value
public OMCommentImpl(org.apache.axiom.om.OMContainer parentNode,
String contentText,
org.apache.axiom.om.OMFactory factory)
parentNode - contentText - public OMCommentImpl(org.apache.axiom.om.OMContainer parentNode,
org.apache.axiom.om.OMFactory factory)
parentNode - public void internalSerialize(XMLStreamWriter writer, boolean cache) throws XMLStreamException
OMSerializableImplinternalSerialize in interface org.apache.axiom.om.impl.OMNodeExinternalSerialize in class OMSerializableImplXMLStreamExceptionpublic String getValue()
getValue in interface org.apache.axiom.om.OMCommentpublic void setValue(String text)
setValue in interface org.apache.axiom.om.OMCommenttext - public void discard()
throws org.apache.axiom.om.OMException
discard in interface org.apache.axiom.om.OMNodeorg.apache.axiom.om.OMExceptionCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.