org.zkoss.idom
Class Comment

java.lang.Object
  extended by org.zkoss.idom.impl.AbstractItem
      extended by org.zkoss.idom.impl.AbstractTextual
          extended by org.zkoss.idom.Comment
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.w3c.dom.CharacterData, org.w3c.dom.Comment, org.w3c.dom.Node, Item, Textual

public class Comment
extends AbstractTextual
implements org.w3c.dom.Comment

The iDOM Comment.

Author:
tomyeh
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.zkoss.idom.impl.AbstractTextual
_text
 
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
 
Fields inherited from interface org.zkoss.idom.Item
FIND_BY_PREFIX, FIND_BY_REGEX, FIND_BY_TAGNAME, FIND_IGNORE_CASE, FIND_RECURSIVE
 
Constructor Summary
Comment()
          Constructor.
Comment(java.lang.String text)
          Constructor.
 
Method Summary
protected  void checkText(java.lang.String text)
          Checks whether the text is valid.
 java.lang.String getName()
          Gets the name of the item.
 short getNodeType()
           
 boolean isPartOfParentText()
          Returns false to denote it is not part of parent's text,
 
Methods inherited from class org.zkoss.idom.impl.AbstractTextual
appendData, deleteData, getData, getLength, getText, getTextContent, getWholeText, insertData, isCoalesceable, isElementContentWhitespace, replaceData, replaceWholeText, setData, setText, split, splitText, substringData, toString
 
Methods inherited from class org.zkoss.idom.impl.AbstractItem
appendChild, 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, setUserData
 
Methods inherited from class java.lang.Object
finalize, getClass, 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, getNodeName, 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

Comment

public Comment(java.lang.String text)
Constructor.


Comment

public Comment()
Constructor.

Method Detail

isPartOfParentText

public final boolean isPartOfParentText()
Returns false to denote it is not part of parent's text,

Specified by:
isPartOfParentText in interface Textual
Overrides:
isPartOfParentText in class AbstractTextual

checkText

protected void checkText(java.lang.String text)
Description copied from class: AbstractTextual
Checks whether the text is valid. It is usually overridden by the deriving classes to check more specifically.

Overrides:
checkText in class AbstractTextual

getName

public final java.lang.String getName()
Description copied from interface: Item
Gets the name of the item. For vertices that support namespace (implements Namespaceable), it is the same as getTagName.

Specified by:
getName in interface Item
See Also:
Namespaceable.getTagName()

getNodeType

public final short getNodeType()
Specified by:
getNodeType in interface org.w3c.dom.Node


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo