|
||||||||||
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.ParentNode | +--org.enhydra.apache.xerces.dom.DocumentTypeImpl | +--org.enhydra.xml.lazydom.LazyDocumentType
Implementation of the DOM Attr that supports lazy instantiation of a template DOM.
Fields inherited from class org.enhydra.apache.xerces.dom.DocumentTypeImpl |
elements, entities, internalSubset, name, notations, publicID, serialVersionUID, systemID |
Fields inherited from class org.enhydra.apache.xerces.dom.ParentNode |
fCachedChild, fCachedChildIndex, fCachedLength, firstChild, ownerDocument |
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 | |
LazyDocumentType(LazyDocument ownerDoc,
LazyDocumentType template,
String name,
String publicId,
String systemId,
String internalSubset)
Constructor. |
Method Summary | |
Node |
cloneNode(boolean deep)
|
NamedNodeMap |
getEntities()
|
int |
getNodeId()
Get the node numeric id number. |
NamedNodeMap |
getNotations()
|
LazyDocumentType |
getTemplateDocumentType()
Get the template for this node. |
LazyNode |
getTemplateNode()
Get the template node as a LazyNode. |
boolean |
isContentsExpanded()
Is the contents expanded? |
boolean |
isTemplateNode()
Check if this node is a template node. |
void |
makeTemplateNode(int nodeId)
|
void |
setNodeValue(String value)
Set the node value, invalidating the id. |
protected void |
setOwnerDocument(LazyDocument doc)
Set the owner of the document. |
LazyNode |
templateClone(Document ownerDocument)
Create a new node, using this node as the template. |
Methods inherited from class org.enhydra.apache.xerces.dom.DocumentTypeImpl |
getElements, getInternalSubset, getName, getNodeName, getNodeType, getPublicId, getSystemId, setInternalSubset, setOwnerDocument, setReadOnly |
Methods inherited from class org.enhydra.apache.xerces.dom.ParentNode |
checkNormalizationAfterInsert, checkNormalizationAfterRemove, getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, hasChildNodes, insertBefore, internalInsertBefore, internalRemoveChild, item, lastChild, lastChild, normalize, ownerDocument, removeChild, replaceChild, synchronizeChildren |
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, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getTextContent, getUserData, getUserData, hasAttributes, hasStringValue, hasStringValue, internalIsIgnorableWhitespace, isDefaultNamespace, isEqualNode, isFirstChild, isFirstChild, isIgnorableWhitespace, isNormalized, isNormalized, isOwned, isOwned, isReadOnly, isReadOnly, isSameNode, isSpecified, isSpecified, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, needsSyncChildren, needsSyncData, needsSyncData, removeEventListener, setPrefix, setTextContent, setUserData, setUserData, synchronizeData, toString |
Methods inherited from class java.lang.Object |
|
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 |
Constructor Detail |
public LazyDocumentType(LazyDocument ownerDoc, LazyDocumentType template, String name, String publicId, String systemId, String internalSubset)
ownerDoc
- The document that owns this node.template
- If not-null, get the parameters from this template.name
- Document type name.
Will be ignored if template is not-null.publicId
- The public id.
Will be ignored if template is not-null.systemId
- The system id.
Will be ignored if template is not-null.internalSubset
- A string representation of the internal subset.
Will be ignored if template is not-null.Method Detail |
protected void setOwnerDocument(LazyDocument doc)
public LazyDocumentType getTemplateDocumentType()
LazyNode.getTemplateNode()
public Node cloneNode(boolean deep)
cloneNode
in interface Node
cloneNode
in class org.enhydra.apache.xerces.dom.DocumentTypeImpl
Node.cloneNode(boolean)
public boolean isContentsExpanded()
public NamedNodeMap getEntities()
getEntities
in class org.enhydra.apache.xerces.dom.DocumentTypeImpl
DocumentType.getEntities()
public NamedNodeMap getNotations()
getNotations
in class org.enhydra.apache.xerces.dom.DocumentTypeImpl
DocumentType.getNotations()
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.NodeImpl
Node.setNodeValue(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |