public class Comment extends AbstractTextual implements Comment
_textATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODEFIND_BY_PREFIX, FIND_BY_REGEX, FIND_BY_TAGNAME, FIND_IGNORE_CASE, FIND_RECURSIVE| Constructor and Description |
|---|
Comment()
Constructor.
|
Comment(String text)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkText(String text)
Checks whether the text is valid.
|
String |
getName()
Gets the name of the item.
|
short |
getNodeType() |
boolean |
isPartOfParentText()
Returns false to denote it is not part of parent's text,
|
appendData, deleteData, getData, getLength, getText, getTextContent, getWholeText, insertData, isCoalesceable, isElementContentWhitespace, replaceData, replaceWholeText, setData, setText, split, splitText, substringData, toStringappendChild, clone, cloneNode, compareDocumentPosition, detach, equals, getAttributes, getBaseURI, getChildNodes, getDocument, getFeature, getFirstChild, getLastChild, getLocalName, getLocator, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParent, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, hashCode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, match, normalize, removeChild, replaceChild, setLocator, setName, setNodeValue, setParent, setPrefix, setTextContent, setUserDatafinalize, getClass, notify, notifyAll, wait, wait, waitappendData, deleteData, getData, getLength, insertData, replaceData, setData, substringDataappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic Comment(String text)
public Comment()
public final boolean isPartOfParentText()
isPartOfParentText in interface TextualisPartOfParentText in class AbstractTextualprotected void checkText(String text)
AbstractTextualcheckText in class AbstractTextualpublic final String getName()
ItemgetName in interface ItemNamespaceable.getTagName()public final short getNodeType()
getNodeType in interface NodeCopyright © 2018. All rights reserved.