|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.apache.xerces.dom.NodeImpl | +--org.enhydra.apache.xerces.dom.ChildNode | +--org.enhydra.apache.xerces.dom.CharacterDataImpl | +--org.enhydra.apache.xerces.dom.TextImpl | +--org.enhydra.xml.lazydom.LazyText
Lazy text node.
Fields inherited from class org.enhydra.apache.xerces.dom.TextImpl |
serialVersionUID |
Fields inherited from class org.enhydra.apache.xerces.dom.CharacterDataImpl |
data |
Fields inherited from class org.enhydra.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
Fields inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, UNNORMALIZED |
Fields inherited from interface org.enhydra.xml.lazydom.LazyNode |
DOCUMENT_NODE_ID, NULL_NODE_ID |
Constructor Summary | |
protected |
LazyText(LazyDocument ownerDoc,
LazyText template,
String data)
Constructor. |
Method Summary | |
Node |
cloneNode(boolean deep)
|
int |
getNodeId()
Get the node numeric id number. |
String |
getPreFormattedText()
Get the pre-formatted text for a node. |
LazyNode |
getTemplateNode()
Get the template node as a LazyNode. |
LazyText |
getTemplateText()
Get the template for this node. |
boolean |
isTemplateNode()
Check if this node is a template node. |
void |
makeTemplateNode(int nodeId)
|
void |
makeTemplateNode(int nodeId,
String text)
Mark the node as a template node and associated preformatted text. |
void |
setNodeValue(String value)
Set the node value, invalidating the id. |
void |
setPreFormattedText(String text)
Set the pre-formatted text for a node. |
LazyNode |
templateClone(Document ownerDocument)
Create a new node, using this node as the template. |
Methods inherited from class org.enhydra.apache.xerces.dom.TextImpl |
getNodeName, getNodeType, getWholeText, isElementContentWhitespace, isIgnorableWhitespace, replaceWholeText, setIgnorableWhitespace, splitText |
Methods inherited from class org.enhydra.apache.xerces.dom.CharacterDataImpl |
|
Methods inherited from class org.enhydra.apache.xerces.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling, parentNode, previousSibling |
Methods inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, compareDocumentPosition, dispatchEvent, getAttributes, getBaseURI, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getOwnerDocument, getPrefix, getReadOnly, getTextContent, getUserData, getUserData, hasAttributes, hasChildNodes, hasStringValue, hasStringValue, insertBefore, internalIsIgnorableWhitespace, isDefaultNamespace, isEqualNode, isFirstChild, isFirstChild, isIgnorableWhitespace, isNormalized, isNormalized, isOwned, isOwned, isReadOnly, isReadOnly, isSameNode, isSpecified, isSpecified, isSupported, item, lookupNamespaceURI, lookupPrefix, needsSyncChildren, needsSyncChildren, needsSyncData, needsSyncData, normalize, ownerDocument, removeChild, removeEventListener, replaceChild, setOwnerDocument, setPrefix, setReadOnly, setTextContent, setUserData, 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, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setPrefix, setTextContent, setUserData |
Methods inherited from interface org.w3c.dom.CharacterData |
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData |
Constructor Detail |
protected LazyText(LazyDocument ownerDoc, LazyText template, String data)
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.Method Detail |
public LazyText getTemplateText()
LazyNode.getTemplateNode()
public Node cloneNode(boolean deep)
cloneNode
in interface Node
cloneNode
in class org.enhydra.apache.xerces.dom.ChildNode
Node.cloneNode(boolean)
public void makeTemplateNode(int nodeId, String text)
LazyNode.makeTemplateNode(int)
,
PreFormattedText.setPreFormattedText(java.lang.String)
public void makeTemplateNode(int nodeId)
makeTemplateNode
in interface LazyNode
public int getNodeId()
LazyNode
getNodeId
in interface LazyNode
LazyNode.getNodeId()
public boolean isTemplateNode()
LazyNode
isTemplateNode
in interface LazyNode
LazyNode.isTemplateNode()
public LazyNode getTemplateNode()
LazyNode
getTemplateNode
in interface LazyNode
LazyNode.getTemplateNode()
public LazyNode templateClone(Document ownerDocument)
LazyNode
templateClone
in interface LazyNode
LazyNode.templateClone(org.w3c.dom.Document)
public void setNodeValue(String value)
setNodeValue
in interface Node
setNodeValue
in class org.enhydra.apache.xerces.dom.CharacterDataImpl
Node.setNodeValue(java.lang.String)
public String getPreFormattedText()
PreFormattedText
getPreFormattedText
in interface PreFormattedText
PreFormattedText.getPreFormattedText()
public void setPreFormattedText(String text)
PreFormattedText
setPreFormattedText
in interface PreFormattedText
PreFormattedText.setPreFormattedText(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |