|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xerces.dom.NodeImpl | +--org.apache.xerces.dom.ChildNode | +--org.apache.xerces.dom.ParentNode | +--org.apache.xerces.dom.CoreDocumentImpl | +--org.apache.xerces.dom.DocumentImpl | +--org.enhydra.xml.lazydom.LazyDocument
A DOM Document that supports lazy instantiation of a template DOM. Nodes in the instance DOM are created as accessed. This can be either by traversing the tree or by direct access to a node by id number. Instantiation of nodes in the middle of the virtual tree is support. Thus a node can exist without a parent being expanded. This is used by XMLC, were the dynamic nodes tend to be towards the leaves of the tree.
Instances contain a reference to a DOM that is a shared template for the document. Each node in the template is assigned an integer node id that be used to index tables to directly look up the template of a node created from the template.
This DOM also supports associating pre-formatted text with some nodes, which is used to avoid exprensive string scanning operations during the output of unmodified nodes.
When a child of a node is requested, all direct children are expanded. This eliminates a lot of difficult book keep. Attributes are treated as a separate set from children, only instantiated when an atttribute is accessed. Expansion of nodes accesed from an existing node works as follows:
To created an extended DOM, one must override both the factory methods that take strings and those that take node ids.
Field Summary |
Fields inherited from class org.apache.xerces.dom.DocumentImpl |
eventListeners, iterators, mutationEvents, ranges, userData |
Fields inherited from class org.apache.xerces.dom.CoreDocumentImpl |
allowGrammarAccess, changes, docElement, docType, encoding, errorChecking, identifiers, kidOK, standalone, version |
Fields inherited from class org.apache.xerces.dom.ParentNode |
fCachedChild, fCachedChildIndex, fCachedLength, firstChild, ownerDocument |
Fields inherited from class org.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
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.enhydra.xml.lazydom.LazyNode |
DOCUMENT_NODE_ID, NULL_NODE_ID |
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 |
Constructor Summary | |
LazyDocument()
Constructor with no argument, for LazyHTMLDocument. |
|
LazyDocument(DocumentType documentType,
TemplateDOM templateDOM)
Constructor. |
Method Summary | |
Node |
appendChild(Node newChild)
Adds the node newChild to the end of the list of children
of this node. |
void |
appendChildWhileExpanding(Node child)
Append a child during node expansion. |
boolean |
areChildrenExpanded()
Are the children of this node expanded? |
Node |
cloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. |
LazyAttr |
createAttribute(int nodeId)
Create an attribute from a template given its id. |
Attr |
createAttribute(java.lang.String name)
Factory method; creates an Attribute having this Document as its OwnerDoc. |
Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Introduced in DOM Level 2. |
LazyAttr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
int nodeId)
Create a template Attr with namespace. |
LazyCDATASection |
createCDATASection(int nodeId)
Create a CDATASection from a template given its id. |
CDATASection |
createCDATASection(java.lang.String data)
Factory method; creates a CDATASection having this Document as its OwnerDoc. |
LazyComment |
createComment(int nodeId)
Create a comment from a template given its id. |
Comment |
createComment(java.lang.String data)
Factory method; creates a Comment having this Document as its OwnerDoc. |
LazyDocumentType |
createDocumentType(int nodeId)
Create a new DocumentType object (Non-DOM). |
DocumentType |
createDocumentType(java.lang.String qualifiedName,
java.lang.String publicID,
java.lang.String systemID)
Create a new DocumentType object (Non-DOM). |
DocumentType |
createDocumentType(java.lang.String qualifiedName,
java.lang.String publicID,
java.lang.String systemID,
java.lang.String internalSubset)
Create a new DocumentType object (Non-DOM). |
LazyElement |
createElement(int nodeId)
Create a element from a template given its id. |
Element |
createElement(java.lang.String tagName)
Factory method; creates an Element having this Document as its OwnerDoc. |
Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Introduced in DOM Level 2. |
LazyEntity |
createEntity(int nodeId)
Create a new Entity object (Non-DOM). |
Entity |
createEntity(java.lang.String name)
Create a new Entity object (Non-DOM). |
LazyEntityReference |
createEntityReference(int nodeId)
Create a entity reference from a template given its id. |
EntityReference |
createEntityReference(java.lang.String name)
Factory method; creates an EntityReference having this Document as its OwnerDoc. |
LazyNotation |
createNotation(int nodeId)
Create a notation node from a template given its id. |
Notation |
createNotation(java.lang.String name)
NON-DOM Factory method; creates a Notation having this Document as its OwnerDoc. |
LazyProcessingInstruction |
createProcessingInstruction(int nodeId)
Create a process instruction node from a template given its id. |
ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
Factory method; creates a ProcessingInstruction having this Document as its OwnerDoc. |
LazyAttr |
createTemplateAttribute(java.lang.String name,
int nodeId)
Create a template Attr. |
LazyAttr |
createTemplateAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
int nodeId)
Create a template Attr. |
LazyCDATASection |
createTemplateCDATASection(java.lang.String data,
int nodeId)
Create a template CDATASection. |
LazyComment |
createTemplateComment(java.lang.String data,
int nodeId)
Create a template comment. |
LazyDocumentType |
createTemplateDocumentType(java.lang.String qualifiedName,
java.lang.String publicID,
java.lang.String systemID,
java.lang.String internalSubset,
int nodeId)
Create a template DocumentType. |
LazyElement |
createTemplateElement(java.lang.String tagName,
int nodeId,
java.lang.String preFormattedText)
Create a template element. |
LazyElement |
createTemplateElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
int nodeId,
java.lang.String preFormattedText)
Create a template Element with namespace. |
LazyEntity |
createTemplateEntity(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String notationName,
int nodeId)
Create a template Entity. |
LazyEntityReference |
createTemplateEntityReference(java.lang.String name,
int nodeId)
Create a template EntityReference. |
LazyNotation |
createTemplateNotation(java.lang.String name,
int nodeId)
Create a template Notation. |
LazyProcessingInstruction |
createTemplateProcessingInstruction(java.lang.String target,
java.lang.String data,
int nodeId)
Create a template ProcessingInstruction. |
LazyText |
createTemplateTextNode(java.lang.String data,
int nodeId,
java.lang.String preFormattedText)
Create a template text node. |
LazyText |
createTextNode(int nodeId)
Create a text node from a template given its id. |
Text |
createTextNode(java.lang.String data)
Factory method; creates a Text node having this Document as its OwnerDoc. |
protected void |
doExpandChildren(LazyParent node)
Do work of expanding the children of a node, if they are not already expanded. |
protected void |
doExpandParent(LazyParent node)
Do work of expanding the parent of a node, if it is not already expanded. |
protected void |
enterExpansion()
Flag that an expansion is in progress, which is used to detect recursion. |
NodeList |
getChildNodes()
A NodeList that contains all children of this node. |
DocumentType |
getDoctype()
For XML, this provides access to the Document Type Definition. |
Element |
getDocumentElement()
Convenience method, allowing direct access to the child node which is considered the root of the actual document content. |
LazyNode |
getExpandedNode(int nodeId)
Get a pointer to a node if its been expanded, otherwise return null. |
Node |
getFirstChild()
The first child of this node. |
DOMImplementation |
getImplementation()
Retrieve information describing the abilities of this particular DOM implementation. |
Node |
getLastChild()
The last child of this node. |
LazyNode |
getNodeById(int nodeId)
Get or create a lazy node, given its id. |
LazyNode |
getNodeFromTemplate(LazyNode template)
Get or create a node given, the template node. |
int |
getNodeId()
Get the node numeric id number. |
OutputOptions |
getPreFormatOutputOptions()
Get the OutputOption that were used to format the document. |
LazyDocument |
getTemplateDocument()
Get the template for this node. |
LazyNode |
getTemplateNode()
Get the template node as a LazyNode. |
LazyNode |
getTemplateNode(int nodeId)
Get a template node, given a node id. |
XMLObject |
getXMLObject()
Get the XMLC XMLObject that contains this document, or null it it's not associated with a XMLObject. |
boolean |
hasChildNodes()
Returns whether this node has any children. |
Node |
insertBefore(Node newChild,
Node refChild)
Inserts the node newChild before the existing child node
refChild . |
boolean |
isDocTypeExpanded()
Has the DocumentType been expanded? |
boolean |
isParentExpanded()
Is the parent of this node expanded? |
boolean |
isTemplateNode()
Check if this node is a template node. |
protected void |
leaveExpansion()
Flag that an expansion is complete. |
void |
makeTemplateNode(int nodeId)
|
void |
normalize()
Puts all Text nodes in the full depth of the sub-tree
underneath this Node , including attribute nodes, into a
"normal" form where only structure (e.g., elements, comments,
processing instructions, CDATA sections, and entity references)
separates Text nodes, i.e., there are neither adjacent
Text nodes nor empty Text nodes. |
Node |
removeChild(Node oldChild)
Removes the child node indicated by oldChild from the list
of children, and returns it. |
Node |
replaceChild(Node newChild,
Node oldChild)
Replaces the child node oldChild with newChild
in the list of children, and returns the oldChild node. |
void |
setChildrenExpanded()
Flag the children as being expanded. |
void |
setNodeValue(java.lang.String value)
Set the node value, invalidating the id. |
void |
setParentExpanded()
Flag the parent as being expanded. |
void |
setParentWhileExpanding(Node parent)
Set the parent of this node during expansion. |
void |
setPreFormatOutputOptions(OutputOptions outputOptions)
Set the output options that were used to preformat this document. |
void |
setXMLObject(XMLObject xmlObject)
Set the XMLC XMLObject that contains this document. |
LazyNode |
templateClone(Document ownerDocument)
Create a new node, using this node as the template. |
Methods inherited from class org.apache.xerces.dom.DocumentImpl |
addEventListener, createEvent, createNodeIterator, createNodeIterator, createRange, createTreeWalker, createTreeWalker, dispatchAggregateEvents, dispatchAggregateEvents, dispatchEvent, dispatchEventToSubtree, getEventListeners, getUserData, removeEventListener, saveEnclosingAttr, setEventListeners, setUserData |
Methods inherited from class org.apache.xerces.dom.CoreDocumentImpl |
adoptNode, changed, changes, clone, cloneNode, createDocumentFragment, createElementDefinition, getElementById, getElementsByTagName, getElementsByTagNameNS, getEncoding, getErrorChecking, getIdentifier, getIdentifiers, getNodeName, getNodeType, getOwnerDocument, getStandalone, getStrictErrorChecking, getVersion, importNode, isKidOK, isXMLName, putIdentifier, removeIdentifier, setEncoding, setErrorChecking, setStandalone, setStrictErrorChecking, setVersion |
Methods inherited from class org.apache.xerces.dom.ParentNode |
getChildNodesUnoptimized, getLength, item, setReadOnly, synchronizeChildren |
Methods inherited from class org.apache.xerces.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling |
Methods inherited from class org.apache.xerces.dom.NodeImpl |
addEventListener, dispatchEvent, getAttributes, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getUserData, hasAttributes, isSupported, removeEventListener, setPrefix, setUserData, synchronizeData, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
getAttributes, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, isSupported, setPrefix |
Constructor Detail |
public LazyDocument(DocumentType documentType, TemplateDOM templateDOM)
documentType
- Document type to associate with this document,
or null if no doctype or should be obtained from template.templateDOM
- Template DOM, with each node cotaining a node id.
Maybe null if no associated template.public LazyDocument()
Method Detail |
public Element getDocumentElement()
CoreDocumentImpl
getDocumentElement
in interface Document
getDocumentElement
in class CoreDocumentImpl
Document.getDocumentElement()
public DOMImplementation getImplementation()
DocumentImpl
getImplementation
in interface Document
getImplementation
in class DocumentImpl
Document#DOMImplementation
protected final void enterExpansion()
protected final void leaveExpansion()
public final LazyNode getNodeById(int nodeId)
public final LazyNode getNodeFromTemplate(LazyNode template)
getNodeById
protected void doExpandParent(LazyParent node)
protected void doExpandChildren(LazyParent node)
public final LazyNode getExpandedNode(int nodeId)
public final LazyNode getTemplateNode(int nodeId)
public boolean isDocTypeExpanded()
public LazyDocument getTemplateDocument()
LazyNode.getTemplateNode()
public Node cloneNode(boolean deep)
Node
parentNode
is null
.).
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.
EntityReference
clone are readonly
. In addition, clones of unspecified Attr
nodes are
specified. And, cloning Document
,
DocumentType
, Entity
, and
Notation
nodes is implementation dependent.
cloneNode
in interface Node
cloneNode
in class DocumentImpl
Node.cloneNode(boolean)
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(java.lang.String value)
setNodeValue
in interface Node
setNodeValue
in class NodeImpl
org.w3c.dom.Node.setNodeValue
public boolean isParentExpanded()
LazyParent
isParentExpanded
in interface LazyParent
LazyParent.isParentExpanded()
public void setParentExpanded()
LazyParent
setParentExpanded
in interface LazyParent
LazyParent.setParentExpanded()
public void setParentWhileExpanding(Node parent)
LazyParent
setParentWhileExpanding
in interface LazyParent
LazyParent.setParentWhileExpanding(org.w3c.dom.Node)
public boolean areChildrenExpanded()
LazyParent
areChildrenExpanded
in interface LazyParent
LazyParent.areChildrenExpanded()
public void setChildrenExpanded()
LazyParent
setChildrenExpanded
in interface LazyParent
LazyParent.setChildrenExpanded()
public void appendChildWhileExpanding(Node child)
LazyParent
appendChildWhileExpanding
in interface LazyParent
LazyParent.appendChildWhileExpanding(org.w3c.dom.Node)
public NodeList getChildNodes()
Node
NodeList
that contains all children of this node. If
there are no children, this is a NodeList
containing no
nodes.
getChildNodes
in interface Node
getChildNodes
in class ParentNode
Node.getChildNodes()
public Node getFirstChild()
Node
null
.
getFirstChild
in interface Node
getFirstChild
in class ParentNode
Node.getFirstChild()
public Node getLastChild()
Node
null
.
getLastChild
in interface Node
getLastChild
in class ParentNode
Node.getLastChild()
public Node insertBefore(Node newChild, Node refChild) throws DOMException
Node
newChild
before the existing child node
refChild
. If refChild
is null
,
insert newChild
at the end of the list of children.
newChild
is a DocumentFragment
object,
all of its children are inserted, in the same order, before
refChild
. If the newChild
is already in the
tree, it is first removed.
insertBefore
in interface Node
insertBefore
in class CoreDocumentImpl
DOMException
- HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
allow children of the type of the newChild
node, or if
the node to insert is one of this node's ancestors.
newChild
was created
from a different document than the one that created this node.
refChild
is not a child of
this node.Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
Node
oldChild
with newChild
in the list of children, and returns the oldChild
node.
newChild
is a DocumentFragment
object,
oldChild
is replaced by all of the
DocumentFragment
children, which are inserted in the
same order. If the newChild
is already in the tree, it
is first removed.
replaceChild
in interface Node
replaceChild
in class CoreDocumentImpl
DOMException
- HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
allow children of the type of the newChild
node, or if
the node to put in is one of this node's ancestors.
newChild
was created
from a different document than the one that created this node.
oldChild
is not a child of
this node.Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
public Node removeChild(Node oldChild) throws DOMException
Node
oldChild
from the list
of children, and returns it.
removeChild
in interface Node
removeChild
in class CoreDocumentImpl
DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
oldChild
is not a child of
this node.Node.removeChild(org.w3c.dom.Node)
public Node appendChild(Node newChild) throws DOMException
Node
newChild
to the end of the list of children
of this node. If the newChild
is already in the tree, it
is first removed.
appendChild
in interface Node
appendChild
in class NodeImpl
DOMException
- HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
allow children of the type of the newChild
node, or if
the node to append is one of this node's ancestors.
newChild
was created
from a different document than the one that created this node.
Node.appendChild(org.w3c.dom.Node)
public boolean hasChildNodes()
Node
hasChildNodes
in interface Node
hasChildNodes
in class ParentNode
true
if this node has any children,
false
otherwise.Node.hasChildNodes()
public void normalize()
Node
Text
nodes in the full depth of the sub-tree
underneath this Node
, including attribute nodes, into a
"normal" form where only structure (e.g., elements, comments,
processing instructions, CDATA sections, and entity references)
separates Text
nodes, i.e., there are neither adjacent
Text
nodes nor empty Text
nodes. This can
be used to ensure that the DOM view of a document is the same as if
it were saved and re-loaded, and is useful when operations (such as
XPointer lookups) that depend on a particular document tree
structure are to be used.In cases where the document contains
CDATASections
, the normalize operation alone may not be
sufficient, since XPointers do not differentiate between
Text
nodes and CDATASection
nodes.
normalize
in interface Node
normalize
in class ParentNode
Node.normalize()
public DocumentType getDoctype()
CoreDocumentImpl
getDoctype
in interface Document
getDoctype
in class CoreDocumentImpl
Document.getDoctype()
public Element createElement(java.lang.String tagName) throws DOMException
CoreDocumentImpl
createElement
in interface Document
createElement
in class CoreDocumentImpl
tagName
- The name of the element type to instantiate. For
XML, this is case-sensitive. For HTML, the tagName parameter may
be provided in any case, but it must be mapped to the canonical
uppercase form by the DOM implementation.
DOMException
Document.createElement(java.lang.String)
public Text createTextNode(java.lang.String data)
CoreDocumentImpl
createTextNode
in interface Document
createTextNode
in class CoreDocumentImpl
data
- The initial contents of the Text.Document.createTextNode(java.lang.String)
public Comment createComment(java.lang.String data)
CoreDocumentImpl
createComment
in interface Document
createComment
in class CoreDocumentImpl
data
- The initial contents of the Comment.Document.createComment(java.lang.String)
public CDATASection createCDATASection(java.lang.String data) throws DOMException
CoreDocumentImpl
createCDATASection
in interface Document
createCDATASection
in class CoreDocumentImpl
data
- The initial contents of the CDATA
DOMException
Document.createCDATASection(java.lang.String)
public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data)
CoreDocumentImpl
createProcessingInstruction
in interface Document
createProcessingInstruction
in class CoreDocumentImpl
target
- The target "processor channel"data
- Parameter string to be passed to the target.Document.createProcessingInstruction(java.lang.String, java.lang.String)
public Attr createAttribute(java.lang.String name) throws DOMException
CoreDocumentImpl
createAttribute
in interface Document
createAttribute
in class CoreDocumentImpl
name
- The name of the attribute. Note that the attribute's value
is _not_ established at the factory; remember to set it!
DOMException
Document.createAttribute(java.lang.String)
public Notation createNotation(java.lang.String name) throws DOMException
CoreDocumentImpl
createNotation
in class CoreDocumentImpl
name
- The name of the Notation we wish to describe
DOMException
org.w3c.dom.Document#createNotation
public EntityReference createEntityReference(java.lang.String name) throws DOMException
CoreDocumentImpl
createEntityReference
in interface Document
createEntityReference
in class CoreDocumentImpl
name
- The name of the Entity we wish to refer to
DOMException
Document.createEntityReference(java.lang.String)
public Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
CoreDocumentImpl
Creates an element of the given qualified name and namespace URI. If the given namespaceURI is null or an empty string and the qualifiedName has a prefix that is "xml", the created element is bound to the predefined namespace "http://www.w3.org/XML/1998/namespace" [Namespaces].
createElementNS
in interface Document
createElementNS
in class CoreDocumentImpl
namespaceURI
- The namespace URI of the element to
create.qualifiedName
- The qualified name of the element type to
instantiate.
DOMException
- NAMESPACE_ERR: Raised if the qualifiedName has a
prefix that is "xml" and the namespaceURI is
neither null nor an empty string nor
"http://www.w3.org/XML/1998/namespace", or
if the qualifiedName has a prefix different
from "xml" and the namespaceURI is null or an
empty string.Document.createElementNS(java.lang.String, java.lang.String)
public Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
CoreDocumentImpl
Creates an attribute of the given qualified name and namespace URI. If the given namespaceURI is null or an empty string and the qualifiedName has a prefix that is "xml", the created element is bound to the predefined namespace "http://www.w3.org/XML/1998/namespace" [Namespaces].
createAttributeNS
in interface Document
createAttributeNS
in class CoreDocumentImpl
namespaceURI
- The namespace URI of the attribute to
create. When it is null or an empty string,
this method behaves like createAttribute.qualifiedName
- The qualified name of the attribute to
instantiate.
DOMException
- INVALID_CHARACTER_ERR: Raised if the specified
name contains an invalid character.Document.createAttributeNS(java.lang.String, java.lang.String)
public DocumentType createDocumentType(java.lang.String qualifiedName, java.lang.String publicID, java.lang.String systemID, java.lang.String internalSubset) throws DOMException
DOMException
CoreDocumentImpl.createDocumentType(java.lang.String, java.lang.String, java.lang.String)
public DocumentType createDocumentType(java.lang.String qualifiedName, java.lang.String publicID, java.lang.String systemID) throws DOMException
createDocumentType
in class CoreDocumentImpl
DOMException
CoreDocumentImpl.createDocumentType(java.lang.String, java.lang.String, java.lang.String)
public Entity createEntity(java.lang.String name) throws DOMException
createEntity
in class CoreDocumentImpl
name
- The name of the Entity we wish to provide a value for.
DOMException
CoreDocumentImpl.createEntity(java.lang.String)
public LazyElement createElement(int nodeId) throws DOMException
DOMException
Document.createElement(java.lang.String)
public LazyText createTextNode(int nodeId)
Document.createTextNode(java.lang.String)
public LazyComment createComment(int nodeId)
Document.createComment(java.lang.String)
public LazyCDATASection createCDATASection(int nodeId) throws DOMException
DOMException
Document.createCDATASection(java.lang.String)
public LazyProcessingInstruction createProcessingInstruction(int nodeId)
Document.createProcessingInstruction(java.lang.String, java.lang.String)
public LazyAttr createAttribute(int nodeId) throws DOMException
DOMException
Document.createAttribute(java.lang.String)
public LazyNotation createNotation(int nodeId) throws DOMException
DOMException
org.w3c.dom.Document#createNotation
public LazyEntityReference createEntityReference(int nodeId) throws DOMException
DOMException
Document.createEntityReference(java.lang.String)
public LazyDocumentType createDocumentType(int nodeId) throws DOMException
DOMException
CoreDocumentImpl.createDocumentType(java.lang.String, java.lang.String, java.lang.String)
public LazyEntity createEntity(int nodeId) throws DOMException
DOMException
CoreDocumentImpl.createEntity(java.lang.String)
public LazyElement createTemplateElement(java.lang.String tagName, int nodeId, java.lang.String preFormattedText) throws DOMException
DOMException
createElement(String)
,
Document.createElement(java.lang.String)
public LazyText createTemplateTextNode(java.lang.String data, int nodeId, java.lang.String preFormattedText)
createTextNode(String)
,
Document.createTextNode(java.lang.String)
public LazyComment createTemplateComment(java.lang.String data, int nodeId)
createComment(String)
,
Document.createComment(java.lang.String)
public LazyCDATASection createTemplateCDATASection(java.lang.String data, int nodeId) throws DOMException
DOMException
#createCDataSection(String)
,
Document.createCDATASection(java.lang.String)
public LazyProcessingInstruction createTemplateProcessingInstruction(java.lang.String target, java.lang.String data, int nodeId)
createProcessingInstruction(String,String)
,
Document.createProcessingInstruction(java.lang.String, java.lang.String)
public LazyAttr createTemplateAttribute(java.lang.String name, int nodeId) throws DOMException
DOMException
createAttribute(String)
,
Document.createAttribute(java.lang.String)
public LazyAttr createTemplateAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, int nodeId) throws DOMException
DOMException
createAttributeNS(String,String)
,
Document.createAttributeNS(java.lang.String, java.lang.String)
public LazyNotation createTemplateNotation(java.lang.String name, int nodeId) throws DOMException
DOMException
createNotation(String)
,
org.w3c.dom.Document#createNotation
public LazyEntityReference createTemplateEntityReference(java.lang.String name, int nodeId) throws DOMException
DOMException
createEntityReference(String)
,
Document.createEntityReference(java.lang.String)
public LazyElement createTemplateElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName, int nodeId, java.lang.String preFormattedText) throws DOMException
DOMException
createElementNS(String,String)
,
Document.createElementNS(java.lang.String, java.lang.String)
public LazyAttr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, int nodeId) throws DOMException
DOMException
createAttributeNS(String,String)
,
Document.createAttributeNS(java.lang.String, java.lang.String)
public LazyDocumentType createTemplateDocumentType(java.lang.String qualifiedName, java.lang.String publicID, java.lang.String systemID, java.lang.String internalSubset, int nodeId) throws DOMException
DOMException
createDocumentType(String,String,String,String)
,
CoreDocumentImpl.createDocumentType(java.lang.String, java.lang.String, java.lang.String)
public LazyEntity createTemplateEntity(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notationName, int nodeId) throws DOMException
DOMException
createEntity(String)
,
CoreDocumentImpl.createEntity(java.lang.String)
public void setPreFormatOutputOptions(OutputOptions outputOptions)
outputOptions
- The output options; should be read-only.public OutputOptions getPreFormatOutputOptions()
PreFormattedTextDocument
getPreFormatOutputOptions
in interface PreFormattedTextDocument
PreFormattedTextDocument.getPreFormatOutputOptions()
public void setXMLObject(XMLObject xmlObject)
XMLObjectLink
setXMLObject
in interface XMLObjectLink
XMLObjectLink.setXMLObject(org.enhydra.xml.xmlc.XMLObject)
public XMLObject getXMLObject()
XMLObjectLink
getXMLObject
in interface XMLObjectLink
XMLObjectLink.getXMLObject()
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |