org.enhydra.xml.lazydom
Class LazyComment
java.lang.Object
|
+--org.apache.xerces.dom.NodeImpl
|
+--org.apache.xerces.dom.ChildNode
|
+--org.apache.xerces.dom.CharacterDataImpl
|
+--org.apache.xerces.dom.CommentImpl
|
+--org.enhydra.xml.lazydom.LazyComment
- All Implemented Interfaces:
- CharacterData, java.lang.Cloneable, Comment, EventTarget, LazyNode, Node, NodeList, java.io.Serializable
- public class LazyComment
- extends CommentImpl
- implements LazyNode
Lazy comment node.
- See Also:
- Serialized Form
Fields inherited from class org.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, UNNORMALIZED |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Methods inherited from class org.apache.xerces.dom.CharacterDataImpl |
appendData, deleteData, getChildNodes, getData, getLength, getNodeValue, insertData, replaceData, setData, setNodeValueInternal, substringData |
Methods inherited from class org.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, dispatchEvent, getAttributes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getOwnerDocument, getPrefix, getReadOnly, getUserData, hasAttributes, hasChildNodes, insertBefore, isSupported, item, normalize, removeChild, removeEventListener, replaceChild, setPrefix, setReadOnly, setUserData, synchronizeData, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setPrefix |
LazyComment
public LazyComment(LazyDocument ownerDoc,
LazyComment template,
java.lang.String data)
- Constructor.
- Parameters:
ownerDoc
- The document that owns this node.template
- If not-null, get the parameters from this template.data
- The node data. Will be ignored if template is not-null.
getTemplateComment
public LazyComment getTemplateComment()
- Get the template for this node.
- See Also:
LazyNode.getTemplateNode()
templateClone
public LazyNode templateClone(Document ownerDocument)
- Description copied from interface:
LazyNode
- Create a new node, using this node as the template.
- Specified by:
templateClone
in interface LazyNode
- See Also:
LazyNode.templateClone(org.w3c.dom.Document)
cloneNode
public Node cloneNode(boolean deep)
- Description copied from interface:
Node
- Returns a duplicate of this node, i.e., serves as a generic copy
constructor for nodes. The duplicate node has no parent; (
parentNode
is null
.).
Cloning an Element
copies all attributes and their
values, including those generated by the XML processor to represent
defaulted attributes, but this method does not copy any text it
contains unless it is a deep clone, since the text is contained in a
child Text
node. Cloning an Attribute
directly, as opposed to be cloned as part of an Element
cloning operation, returns a specified attribute (
specified
is true
). Cloning any other type
of node simply returns a copy of this node.
Note that cloning an immutable subtree results in a mutable copy,
but the children of an EntityReference
clone are readonly
. In addition, clones of unspecified Attr
nodes are
specified. And, cloning Document
,
DocumentType
, Entity
, and
Notation
nodes is implementation dependent.
- Specified by:
cloneNode
in interface Node
- Overrides:
cloneNode
in class ChildNode
- Returns:
- The duplicate node.
- See Also:
Node.cloneNode(boolean)
makeTemplateNode
public void makeTemplateNode(int nodeId)
- Specified by:
makeTemplateNode
in interface LazyNode
getNodeId
public int getNodeId()
- Description copied from interface:
LazyNode
- Get the node numeric id number.
- Specified by:
getNodeId
in interface LazyNode
- See Also:
LazyNode.getNodeId()
isTemplateNode
public boolean isTemplateNode()
- Description copied from interface:
LazyNode
- Check if this node is a template node.
- Specified by:
isTemplateNode
in interface LazyNode
- See Also:
LazyNode.isTemplateNode()
getTemplateNode
public LazyNode getTemplateNode()
- Description copied from interface:
LazyNode
- Get the template node as a LazyNode.
- Specified by:
getTemplateNode
in interface LazyNode
- See Also:
LazyNode.getTemplateNode()
setNodeValue
public void setNodeValue(java.lang.String value)
- Set the node value, invalidating the id. All node data is modified
by this routine.
- Specified by:
setNodeValue
in interface Node
- Overrides:
setNodeValue
in class CharacterDataImpl
- See Also:
org.w3c.dom.Node.setNodeValue