@DOMObjectAttribute @DOMNameAttribute(name="Comment") public class Comment extends com.aspose.html.dom.CharacterDataDOM
Inherits from CharacterData and represents the content of a comment, i.e., all the characters between the starting ''.
Node.FlagsATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, flags, nodeDocument, NOTATION_NODE, parent, PROCESSING_INSTRUCTION_NODE, TEXT_NODEEventMapPropertyChanged, PropertyChangedDelegate| Constructor and Description |
|---|
Comment(java.lang.String data,
Document doc)
Initializes a new instance of the
Comment class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBogus() |
java.lang.String |
getNodeName()
The name of this node, depending on its type.
|
int |
getNodeType()
A code representing the type of the underlying object.
|
java.lang.String |
getNodeValue()
The value of this node, depending on its type.
|
java.lang.String |
getTextContent()
This attribute returns the text content of this node and its descendants.
|
void |
setBogus(boolean value) |
void |
setNodeValue(java.lang.String value)
The value of this node, depending on its type.
|
void |
setTextContent(java.lang.String value)
This attribute returns the text content of this node and its descendants.
|
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData, toStringadoptNode, appendChild, cloneNode, deepClone, dispose, finalize, getAttributes, getBaseURI, getChildNodes, getChildNodesInternal, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getRegisteredObservers, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceAll, replaceChild, setLocalName, setNamespaceURI, setParentNode, setPrefixaddEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, dispose, removeEventListener, removeEventListener, removeEventListenerfireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBindingpublic java.lang.String getNodeName()
The name of this node, depending on its type.
Value: The name of the node.getNodeName in class Nodepublic int getNodeType()
A code representing the type of the underlying object.
Value: The type of the node.getNodeType in class Nodepublic java.lang.String getNodeValue()
The value of this node, depending on its type.
Value: The node value.getNodeValue in class Nodepublic void setNodeValue(java.lang.String value)
The value of this node, depending on its type.
Value: The node value.setNodeValue in class Nodepublic java.lang.String getTextContent()
This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. On setting, any possible children this node may have are removed and, if it the new string is not empty or null, replaced by a single Text node containing the string this attribute is set to.
Value: The content of the text.getTextContent in class Nodepublic void setTextContent(java.lang.String value)
This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. On setting, any possible children this node may have are removed and, if it the new string is not empty or null, replaced by a single Text node containing the string this attribute is set to.
Value: The content of the text.setTextContent in class Nodepublic boolean getBogus()
public void setBogus(boolean value)