public final class CommentImpl extends NodeImpl implements Comment
Comment object. This is a text data object
whose value can be manipulated using the CharacterData\
interface and does not support children.
Notes:
Node.COMMENT_NODE
Comment,
CharacterDataImplATTLIST_DECL_NODE, ELEMENT_DECL_NODE, PARAM_ENTITY_NODEATTRIBUTE_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_NODE| Constructor and Description |
|---|
CommentImpl(DocumentImpl owner,
String comment)
Hidden constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendData(String value) |
Object |
clone() |
Node |
cloneNode(boolean deep) |
short |
compareDocumentPosition(Node other) |
void |
deleteData(int offset,
int count) |
String |
getBaseURI() |
String |
getData() |
Object |
getFeature(String feature,
String version) |
int |
getLength() |
short |
getNodeType()
Abstract method must be implemented by each node class.
|
String |
getTextContent() |
Object |
getUserData(String key) |
boolean |
hasAttributes() |
void |
insertData(int offset,
String value) |
boolean |
isDefaultNamespace(String namespaceURI) |
boolean |
isEqualNode(Node arg) |
boolean |
isSameNode(Node other) |
boolean |
isSupported(String feature,
String version) |
String |
lookupNamespaceURI(String prefix) |
String |
lookupPrefix(String namespaceURI) |
void |
replaceData(int offset,
int count,
String value) |
void |
setData(String value) |
void |
setTextContent(String textContent) |
Object |
setUserData(String key,
Object data,
UserDataHandler handler) |
String |
substringData(int start,
int count) |
String |
toString() |
appendChild, cloneInto, equals, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasChildNodes, insertBefore, isReadOnly, makeReadOnly, normalize, removeChild, replaceChild, setNodeValue, setOwnerDocument, setPrefix, supportsfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendData, deleteData, getData, getLength, insertData, replaceData, setData, substringDataappendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue, setPrefixpublic CommentImpl(DocumentImpl owner, String comment)
owner - The owner of this documentcomment - Comment textpublic short getNodeType()
NodeImplgetNodeType in interface NodegetNodeType in class NodeImplNode.getNodeType()public short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition in interface NodeDOMExceptionpublic String getBaseURI()
getBaseURI in interface Nodepublic Object getFeature(String feature, String version)
getFeature in interface Nodepublic String getTextContent() throws DOMException
getTextContent in interface NodeDOMExceptionpublic Object getUserData(String key)
getUserData in interface Nodepublic boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace in interface Nodepublic boolean isEqualNode(Node arg)
isEqualNode in interface Nodepublic boolean isSameNode(Node other)
isSameNode in interface Nodepublic String lookupNamespaceURI(String prefix)
lookupNamespaceURI in interface Nodepublic String lookupPrefix(String namespaceURI)
lookupPrefix in interface Nodepublic void setTextContent(String textContent) throws DOMException
setTextContent in interface NodeDOMExceptionpublic Object setUserData(String key, Object data, UserDataHandler handler)
setUserData in interface Nodepublic boolean hasAttributes()
hasAttributes in interface Nodepublic boolean isSupported(String feature, String version)
isSupported in interface Nodepublic final String getData()
getData in interface CharacterDatapublic final void setData(String value) throws DOMException
setData in interface CharacterDataDOMExceptionpublic final int getLength()
getLength in interface CharacterDatapublic final String substringData(int start, int count) throws DOMException
substringData in interface CharacterDataDOMExceptionpublic final void appendData(String value)
appendData in interface CharacterDatapublic final void insertData(int offset,
String value)
throws DOMException
insertData in interface CharacterDataDOMExceptionpublic final void deleteData(int offset,
int count)
throws DOMException
deleteData in interface CharacterDataDOMExceptionpublic final void replaceData(int offset,
int count,
String value)
throws DOMException
replaceData in interface CharacterDataDOMExceptionPhantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.