|
EAF 7.6 Util | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.xml.NodeImpl
org.enhydra.xml.CharacterDataImpl
org.enhydra.xml.CommentImpl
public class CommentImpl
Namespaces are ignored in this implementation. The terms "tag name" and "node name" are always considered to be synonymous.
Field Summary |
---|
Fields inherited from class org.enhydra.xml.NodeImpl |
---|
firstChild, lastChild, nextSibling, nodeName, nodeValue, numChildren, ownerDocument, parent, previousSibling, type |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_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 Summary | |
---|---|
CommentImpl(CommentImpl node)
Constructs a CommentImpl from the given node. |
|
CommentImpl(org.w3c.dom.Node node)
Constructs a CommentImpl from a given node,
as a Node |
|
CommentImpl(java.lang.String value)
Constructs a CommentImpl from the given node value. |
Method Summary | |
---|---|
protected void |
beginToString(java.lang.StringBuffer sb,
Indent indent)
Method beginToString for this class writes the xml comment prefix string and the comment string. |
protected void |
endToString(java.lang.StringBuffer sb,
Indent indent)
Method endToString writes the xml comment postfix string. |
java.lang.String |
getNodeName()
Returns the name ("#comment") associated with this node. |
short |
getNodeType()
Returns the node type. |
Methods inherited from class org.enhydra.xml.CharacterDataImpl |
---|
appendData, deleteData, getData, getNamespaceURI, insertData, replaceData, setData, substringData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.CharacterData |
---|
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
Constructor Detail |
---|
public CommentImpl(CommentImpl node)
CommentImpl
from the given node.
node,
- as a CommentImpl
.public CommentImpl(java.lang.String value)
CommentImpl
from the given node value.
value,
- as a String
.public CommentImpl(org.w3c.dom.Node node)
CommentImpl
from a given node,
as a Node
node,
- as Node
.Method Detail |
---|
public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
getNodeType
in class NodeImpl
COMMENT_NODE
node type.public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class NodeImpl
String
.protected void beginToString(java.lang.StringBuffer sb, Indent indent)
beginToString
in class NodeImpl
sb
- string buffer to add resulting string.indent
- used in formating the output.protected void endToString(java.lang.StringBuffer sb, Indent indent)
endToString
in class NodeImpl
sb
- string buffer to add resulting string.indent
- used in formating the output.
|
EAF 7.6 Util | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |