|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xml.utils.UnImplNode | +--weblogic.apache.xalan.stree.Child | +--weblogic.apache.xalan.stree.Parent | +--weblogic.apache.xalan.stree.DocImpl | +--weblogic.apache.xalan.stree.DocumentImpl
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 weblogic.apache.xalan.stree.DocImpl |
m_exceptionThrown |
Fields inherited from class weblogic.apache.xalan.stree.Parent |
m_childCount,
m_posInChildList |
Fields inherited from class weblogic.apache.xalan.stree.Child |
m_doc,
m_parent |
Constructor Summary | |
DocumentImpl(int charBufSize)
Constructor DocumentImpl |
Method Summary | |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
Append a child to the child list. |
org.w3c.dom.Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Unimplemented right now. |
org.w3c.dom.CDATASection |
createCDATASection(java.lang.String data)
Create a CDATASection node. |
org.w3c.dom.Comment |
createComment(java.lang.String data)
Create a Comment node. |
org.w3c.dom.DocumentFragment |
createDocumentFragment()
Create a DocumentFragment. |
org.w3c.dom.Element |
createElement(java.lang.String tagName)
Create a new Element. |
org.w3c.dom.Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Create a new namespaced element. |
org.w3c.dom.ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
Create a ProcessingInstruction node. |
org.w3c.dom.Text |
createTextNode(java.lang.String data)
Create a Text node. |
org.w3c.dom.DocumentType |
getDoctype()
For XML, this provides access to the Document Type Definition. |
org.w3c.dom.Element |
getDocumentElement()
Convenience method, allowing direct access to the child node which is considered the root of the actual document content. |
org.w3c.dom.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. |
org.w3c.dom.Node |
getNextSibling()
The node immediately following this node. |
java.lang.String |
getNodeName()
Returns the node name. |
short |
getNodeType()
Returns the node type. |
org.w3c.dom.Node |
importNode(org.w3c.dom.Node importedNode,
boolean deep)
Unimplemented, since this a read-only DOM. |
void |
setDoctype(org.w3c.dom.DocumentType docType)
|
void |
setIDAttribute(java.lang.String id,
org.w3c.dom.Element elem)
Set an ID string to node association in the ID table. |
Methods inherited from class weblogic.apache.xalan.stree.DocImpl |
getDocOrderCount,
getUseMultiThreading,
incrementDocOrderCount,
setUseMultiThreading |
Methods inherited from class weblogic.apache.xalan.stree.Parent |
dispatchCharactersEvent,
getChild,
getChildCount,
getChildUID,
getFirstChild,
getLastChild,
hasChildNodes,
isComplete,
setComplete,
throwParseError |
Methods inherited from class weblogic.apache.xalan.stree.Child |
getAttributes,
getLevel,
getNamespaceURI,
getOwnerDocument,
getParentNode,
getPrefix,
getPreviousSibling,
getTagName,
getTransformer,
getUid,
isNamespaceNode,
isSupported,
setAttribute,
setDoc,
setLevel,
setParent,
setUid,
throwIfParseError |
Methods inherited from class weblogic.apache.xml.utils.UnImplNode |
appendData,
cloneNode,
createAttribute,
createEntityReference,
deleteData,
error,
error,
getAttribute,
getAttributeNode,
getAttributeNodeNS,
getAttributeNS,
getChildNodes,
getElementsByTagName,
getElementsByTagNameNS,
getImplementation,
getLength,
getNodeValue,
getOwnerElement,
getSpecified,
hasAttribute,
hasAttributeNS,
hasAttributes,
insertBefore,
insertData,
item,
normalize,
removeAttribute,
removeAttributeNode,
removeAttributeNS,
removeChild,
replaceChild,
replaceData,
setAttributeNode,
setAttributeNodeNS,
setAttributeNS,
setData,
setNodeValue,
setPrefix,
setValue,
splitText,
substringData |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DocumentImpl(int charBufSize)
Method Detail |
public org.w3c.dom.DocumentType getDoctype()
public void setDoctype(org.w3c.dom.DocumentType docType)
public org.w3c.dom.Element getDocumentElement()
public java.util.Hashtable getIDAttributes()
public void setIDAttribute(java.lang.String id, org.w3c.dom.Element elem)
id
- The ID string.elem
- The associated ID.public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
newChild
- Must be a weblogic.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 org.w3c.dom.Element createElement(java.lang.String tagName) throws org.w3c.dom.DOMException
tagName
- The name of the element.public org.w3c.dom.DocumentFragment createDocumentFragment()
public org.w3c.dom.Text createTextNode(java.lang.String data)
data
- The character that this node holds.public org.w3c.dom.Comment createComment(java.lang.String data)
data
- The comment data that this node holds.public org.w3c.dom.CDATASection createCDATASection(java.lang.String data) throws org.w3c.dom.DOMException
data
- The character data that this node holds.public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws org.w3c.dom.DOMException
target
- The name of the PI.data
- The data for this PI.public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep) throws org.w3c.dom.DOMException
importedNode
- The node being imported.deep
- Tells if we should also import the subtree.public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.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 org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.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 org.w3c.dom.Element getElementById(java.lang.String elementId)
elementId
- A non-null string that may be a key in the ID table.public org.w3c.dom.Node getNextSibling()
null
.
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |