adoptNode
public Node adoptNode(Node source)
throws DOMException
NEEDSDOC Method adoptNode
NEEDSDOC @param source
appendChild
public final Node appendChild(Node newChild)
throws DOMException
-- DTMNodeProxy is read-only
appendData
public final void appendData(String arg)
throws DOMException
org.w3c.dom.CharacterData
cloneNode
public final Node cloneNode(boolean deep)
-- DTMNodeProxy is read-only
compareDocumentPosition
public short compareDocumentPosition(Node other)
throws DOMException
createAttribute
public final Attr createAttribute(String name)
throws DOMException
createAttributeNS
public final Attr createAttributeNS(String namespaceURI,
String qualifiedName)
throws DOMException
namespaceURI
- qualifiedName
-
createCDATASection
public final CDATASection createCDATASection(String data)
throws DOMException
createComment
public final Comment createComment(String data)
createDocumentFragment
public final DocumentFragment createDocumentFragment()
createElement
public final Element createElement(String tagName)
throws DOMException
createElementNS
public final Element createElementNS(String namespaceURI,
String qualifiedName)
throws DOMException
namespaceURI
- qualifiedName
-
createEntityReference
public final EntityReference createEntityReference(String name)
throws DOMException
createProcessingInstruction
public final ProcessingInstruction createProcessingInstruction(String target,
String data)
throws DOMException
createTextNode
public final Text createTextNode(String data)
deleteData
public final void deleteData(int offset,
int count)
throws DOMException
org.w3c.dom.CharacterData
equals
public final boolean equals(Node node)
Test for equality based on node number.
node
- A DTM node proxy reference.
- true if the given node has the same handle as this node.
equals
public final boolean equals(Object node)
Test for equality based on node number.
node
- A DTM node proxy reference.
- true if the given node has the same handle as this node.
getAttribute
public final String getAttribute(String name)
getAttributeNS
public final String getAttributeNS(String namespaceURI,
String localName)
namespaceURI
- localName
-
getAttributeNode
public final Attr getAttributeNode(String name)
getAttributeNodeNS
public final Attr getAttributeNodeNS(String namespaceURI,
String localName)
namespaceURI
- localName
-
getAttributes
public final NamedNodeMap getAttributes()
getBaseURI
public String getBaseURI()
getChildNodes
public final NodeList getChildNodes()
getDTM
public final DTM getDTM()
NON-DOM: Return the DTM model
- The DTM that this proxy is a representative for.
getDTMNodeNumber
public final int getDTMNodeNumber()
NON-DOM: Return the DTM node number
getData
public final String getData()
throws DOMException
org.w3c.dom.CharacterData
getDoctype
public final DocumentType getDoctype()
getDocumentElement
public final Element getDocumentElement()
This is a bit of a problem in DTM, since a DTM may be a Document
Fragment and hence not have a clear-cut Document Element. We can
make it work in the well-formed cases but would that be confusing for others?
getDocumentURI
public String getDocumentURI()
getDomConfig
public DOMConfiguration getDomConfig()
getElementById
public final Element getElementById(String elementId)
getElementsByTagName
public final NodeList getElementsByTagName(String tagname)
getElementsByTagNameNS
public final NodeList getElementsByTagNameNS(String namespaceURI,
String localName)
namespaceURI
- localName
-
getEncoding
public String getEncoding()
getFeature
public Object getFeature(String feature,
String version)
getFirstChild
public final Node getFirstChild()
getImplementation
public final DOMImplementation getImplementation()
getInputEncoding
public String getInputEncoding()
getLastChild
public final Node getLastChild()
getLength
public final int getLength()
org.w3c.dom.CharacterData
getLocalName
public final String getLocalName()
getName
public final String getName()
getNamespaceURI
public final String getNamespaceURI()
getNextSibling
public final Node getNextSibling()
getNodeName
public final String getNodeName()
getNodeType
public final short getNodeType()
getNodeValue
public final String getNodeValue()
throws DOMException
getOwnerDocument
public final Document getOwnerDocument()
getOwnerElement
public final Element getOwnerElement()
Get the owner element of an attribute.
getOwnerNode
public final Node getOwnerNode()
getParentNode
public final Node getParentNode()
getPrefix
public final String getPrefix()
- The prefix for this node.
getPreviousSibling
public final Node getPreviousSibling()
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
getSpecified
public final boolean getSpecified()
getStandalone
public boolean getStandalone()
getStrictErrorChecking
public boolean getStrictErrorChecking()
EXPERIMENTAL! Based on the
Document
Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying whether errors checking is enforced or not.
When set to
false
, the implementation is free to not
test every possible error case normally defined on DOM operations,
and not raise any
DOMException
. In case of error, the
behavior is undefined. This attribute is
true
by
defaults.
getStringValue
public final String getStringValue()
throws DOMException
- The string value of the node
getTagName
public final String getTagName()
getTarget
public final String getTarget()
A PI's "target" states what processor channel the PI's data
should be directed to. It is defined differently in HTML and XML.
In XML, a PI's "target" is the first (whitespace-delimited) token
following the "<?" token that begins the PI.
In HTML, target is always null.
Note that getNodeName is aliased to getTarget.
getTextContent
public String getTextContent()
throws DOMException
getUserData
public Object getUserData(String key)
getValue
public final String getValue()
getVersion
public String getVersion()
getWholeText
public String getWholeText()
getXmlEncoding
public String getXmlEncoding()
getXmlStandalone
public boolean getXmlStandalone()
getXmlVersion
public String getXmlVersion()
hasAttribute
public boolean hasAttribute(String name)
Method hasAttribute
hasAttributeNS
public boolean hasAttributeNS(String name,
String x)
Method hasAttributeNS
hasAttributes
public boolean hasAttributes()
Introduced in DOM Level 2.
hasChildNodes
public final boolean hasChildNodes()
importNode
public final Node importNode(Node importedNode,
boolean deep)
throws DOMException
as of DOM Level 2 -- DTMNodeProxy is read-only
insertBefore
public final Node insertBefore(Node newChild,
Node refChild)
throws DOMException
-- DTMNodeProxy is read-only
insertData
public final void insertData(int offset,
String arg)
throws DOMException
org.w3c.dom.CharacterData
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
isElementContentWhitespace
public boolean isElementContentWhitespace()
isEqualNode
public boolean isEqualNode(Node arg)
isId
public boolean isId()
isSameNode
public boolean isSameNode(Node other)
isSupported
public final boolean isSupported(String feature,
String version)
Ask whether we support a given DOM feature.
In fact, we do not _fully_ support any DOM feature -- we're a
read-only subset -- so arguably we should always return false.
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
lookupPrefix
public String lookupPrefix(String namespaceURI)
normalize
public final void normalize()
normalizeDocument
public void normalizeDocument()
removeAttribute
public final void removeAttribute(String name)
throws DOMException
removeAttributeNS
public final void removeAttributeNS(String namespaceURI,
String localName)
throws DOMException
namespaceURI
- localName
-
removeAttributeNode
public final Attr removeAttributeNode(Attr oldAttr)
throws DOMException
removeChild
public final Node removeChild(Node oldChild)
throws DOMException
-- DTMNodeProxy is read-only
renameNode
public Node renameNode(Node node,
String namespaceURI,
String qualifiedName)
throws DOMException
replaceChild
public final Node replaceChild(Node newChild,
Node oldChild)
throws DOMException
-- DTMNodeProxy is read-only
replaceData
public final void replaceData(int offset,
int count,
String arg)
throws DOMException
org.w3c.dom.CharacterData
replaceWholeText
public Text replaceWholeText(String content)
throws DOMException
sameNodeAs
public final boolean sameNodeAs(Node other)
FUTURE DOM: Test node identity, in lieu of Node==Node
- true if the given node has the same handle as this node.
setAttribute
public final void setAttribute(String name,
String value)
throws DOMException
setAttributeNS
public final void setAttributeNS(String namespaceURI,
String qualifiedName,
String value)
throws DOMException
namespaceURI
- qualifiedName
- value
-
setAttributeNode
public final Attr setAttributeNode(Attr newAttr)
throws DOMException
setAttributeNodeNS
public final Attr setAttributeNodeNS(Attr newAttr)
throws DOMException
setData
public final void setData(String data)
throws DOMException
org.w3c.dom.CharacterData
setDocumentURI
public void setDocumentURI(String documentURI)
setEncoding
public void setEncoding(String encoding)
- DOM Level 3
NEEDSDOC @param encoding
setIdAttribute
public void setIdAttribute(String name,
boolean isId)
throws DOMException
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI,
String localName,
boolean isId)
throws DOMException
setIdAttributeNode
public void setIdAttributeNode(Attr idAttr,
boolean isId)
throws DOMException
setNodeValue
public final void setNodeValue(String nodeValue)
throws DOMException
-- DTMNodeProxy is read-only
setPrefix
public final void setPrefix(String prefix)
throws DOMException
as of DOM Level 2 -- DTMNodeProxy is read-only
setStandalone
public void setStandalone(boolean standalone)
- DOM Level 3
NEEDSDOC @param standalone
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking)
EXPERIMENTAL! Based on the
Document
Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..
An attribute specifying whether errors checking is enforced or not.
When set to
false
, the implementation is free to not
test every possible error case normally defined on DOM operations,
and not raise any
DOMException
. In case of error, the
behavior is undefined. This attribute is
true
by
defaults.
- DOM Level 3
NEEDSDOC @param strictErrorChecking
setTextContent
public void setTextContent(String textContent)
throws DOMException
setUserData
public Object setUserData(String key,
Object data,
UserDataHandler handler)
setValue
public final void setValue(String value)
setVersion
public void setVersion(String version)
- DOM Level 3
NEEDSDOC @param version
setXmlStandalone
public void setXmlStandalone(boolean xmlStandalone)
throws DOMException
setXmlVersion
public void setXmlVersion(String xmlVersion)
throws DOMException
splitText
public final Text splitText(int offset)
throws DOMException
substringData
public final String substringData(int offset,
int count)
throws DOMException
org.w3c.dom.CharacterData
supports
public final boolean supports(String feature,
String version)
Ask whether we support a given DOM feature.
In fact, we do not _fully_ support any DOM feature -- we're a
read-only subset -- so arguably we should always return false.
Or we could say that we support DOM Core Level 2 but all nodes
are read-only. Unclear which answer is least misleading.
NON-DOM method. This was present in early drafts of DOM Level 2,
but was renamed isSupported. It's present here only because it's
cheap, harmless, and might help some poor fool who is still trying
to use an early Working Draft of the DOM.