|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.utils.UnImplNode | +--org.apache.xalan.stree.Child | +--org.apache.xalan.stree.Parent | +--org.apache.xalan.stree.DocImpl | +--org.apache.xalan.stree.DocumentImpl
**For internal use only** This is the implementation of the DOM2 Document interface. It rules over the tree, and may contain common information for the tree.
Fields inherited from class org.apache.xalan.stree.DocImpl |
m_exceptionThrown |
Constructor Summary | |
DocumentImpl(int charBufSize)
Constructor DocumentImpl |
Method Summary | |
Node |
appendChild(Node newChild)
Append a child to the child list. |
Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Unimplemented right now. |
CDATASection |
createCDATASection(java.lang.String data)
Create a CDATASection node. |
Comment |
createComment(java.lang.String data)
Create a Comment node. |
DocumentFragment |
createDocumentFragment()
Create a DocumentFragment. |
Element |
createElement(java.lang.String tagName)
Create a new Element. |
Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Create a new namespaced element. |
ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
Create a ProcessingInstruction node. |
Text |
createTextNode(java.lang.String data)
Create a Text 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. |
Element |
getElementById(java.lang.String elementId)
Given an ID, return the element. |
java.util.Hashtable |
getIDAttributes()
Get the table that holds the ID string to node associations, for looking up XML IDs. |
java.lang.String |
getLocalName()
Returns the local part of the qualified name of this node. |
Node |
getNextSibling()
The node immediately following this node. |
java.lang.String |
getNodeName()
Returns the node name. |
short |
getNodeType()
Returns the node type. |
Node |
importNode(Node importedNode,
boolean deep)
Unimplemented, since this a read-only DOM. |
void |
setDoctype(DocumentType docType)
|
void |
setIDAttribute(java.lang.String id,
Element elem)
Set an ID string to node association in the ID table. |
Methods inherited from class org.apache.xalan.stree.DocImpl |
getUseMultiThreading,
setUseMultiThreading |
Methods inherited from class org.apache.xalan.stree.Parent |
dispatchCharactersEvent,
getChild,
getChildCount,
getChildUID,
getFirstChild,
getLastChild,
hasChildNodes,
isComplete,
setComplete |
Methods inherited from class org.apache.xalan.stree.Child |
getAttributes,
getLevel,
getNamespaceURI,
getOwnerDocument,
getParentNode,
getPrefix,
getPreviousSibling,
getTagName,
getUid,
isNamespaceNode,
isSupported,
setAttribute,
setLevel |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DocumentImpl(int charBufSize)
Method Detail |
public DocumentType getDoctype()
public void setDoctype(DocumentType docType)
public Element getDocumentElement()
public java.util.Hashtable getIDAttributes()
public void setIDAttribute(java.lang.String id, Element elem)
id
- The ID string.elem
- The associated ID.public Node appendChild(Node newChild) throws DOMException
newChild
- Must be a org.apache.xalan.stree.Child.public short getNodeType()
public java.lang.String getNodeName()
public java.lang.String getLocalName()
createElement
from the Document
interface,
it is null
.public Element createElement(java.lang.String tagName) throws DOMException
tagName
- The name of the element.public DocumentFragment createDocumentFragment()
public Text createTextNode(java.lang.String data)
data
- The character that this node holds.public Comment createComment(java.lang.String data)
data
- The comment data that this node holds.public CDATASection createCDATASection(java.lang.String data) throws DOMException
data
- The character data that this node holds.public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws DOMException
target
- The name of the PI.data
- The data for this PI.public Node importNode(Node importedNode, boolean deep) throws DOMException
importedNode
- The node being imported.deep
- Tells if we should also import the subtree.public Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
namespaceURI
- The namespace URI (NEEDTOREVIEW: Handling of "" vs. null. -sb)qualifiedName
- The qualified name of the element type to
instantiate.Element
object with the following
attributes: Attribute ValueNode.nodeName
qualifiedName
Node.namespaceURI
namespaceURI
Node.prefix
prefix, extracted
from qualifiedName
, or null
if there is no
prefixNode.localName
local name , extracted from
qualifiedName
Element.tagName
qualifiedName
public Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
namespaceURI
- The namespace URI of the attribute to create.qualifiedName
- The qualified name of the attribute to
instantiate.Attr
object with the following attributes:
Attribute ValueNode.nodeName
qualifiedName
Node.namespaceURI
namespaceURI
Node.prefix
prefix, extracted from
qualifiedName
, or null
if there is no
prefixNode.localName
local name , extracted from
qualifiedName
Attr.name
qualifiedName
public Element getElementById(java.lang.String elementId)
elementId
- A non-null string that may be a key in the ID table.public Node getNextSibling()
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |