org.apache.xml.dtm.ref
Class DTMNodeProxy

java.lang.Object
  extended byorg.apache.xml.dtm.ref.DTMNodeProxy
All Implemented Interfaces:
org.w3c.dom.Attr, org.w3c.dom.CharacterData, org.w3c.dom.Comment, org.w3c.dom.Document, org.w3c.dom.DocumentFragment, org.w3c.dom.Element, org.w3c.dom.Node, org.w3c.dom.ProcessingInstruction, org.w3c.dom.Text

public class DTMNodeProxy
extends Object
implements org.w3c.dom.Node, org.w3c.dom.Document, org.w3c.dom.Text, org.w3c.dom.Element, org.w3c.dom.Attr, org.w3c.dom.ProcessingInstruction, org.w3c.dom.Comment, org.w3c.dom.DocumentFragment

DTMNodeProxy presents a DOM Node API front-end to the DTM model.

It does _not_ attempt to address the "node identity" question; no effort is made to prevent the creation of multiple proxies referring to a single DTM node. Users can create a mechanism for managing this, or relinquish the use of "==" and use the .sameNodeAs() mechanism, which is under consideration for future versions of the DOM.

DTMNodeProxy may be subclassed further to present specific DOM node types.

See Also:
org.w3c.dom

Nested Class Summary
(package private) static class DTMNodeProxy.DTMNodeProxyImplementation
          Inner class to support getDOMImplementation.
 
Field Summary
 DTM dtm
          The DTM for this node.
(package private) static org.w3c.dom.DOMImplementation implementation
          The DOMImplementation object
(package private)  int node
          The DTM node handle.
 
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
(package private) DTMNodeProxy(DTM dtm, int node)
          Create a DTMNodeProxy Node representing a specific Node in a DTM
 
Method Summary
 org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
          NEEDSDOC Method adoptNode NEEDSDOC @param source NEEDSDOC (adoptNode) @return
 org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
           
 void appendData(String arg)
           
 org.w3c.dom.Node cloneNode(boolean deep)
           
 org.w3c.dom.Attr createAttribute(String name)
           
 org.w3c.dom.Attr createAttributeNS(String namespaceURI, String qualifiedName)
           
 org.w3c.dom.CDATASection createCDATASection(String data)
           
 org.w3c.dom.Comment createComment(String data)
           
 org.w3c.dom.DocumentFragment createDocumentFragment()
           
 org.w3c.dom.Element createElement(String tagName)
           
 org.w3c.dom.Element createElementNS(String namespaceURI, String qualifiedName)
           
 org.w3c.dom.EntityReference createEntityReference(String name)
           
 org.w3c.dom.ProcessingInstruction createProcessingInstruction(String target, String data)
           
 org.w3c.dom.Text createTextNode(String data)
           
 void deleteData(int offset, int count)
           
 boolean equals(org.w3c.dom.Node node)
          Test for equality based on node number.
 boolean equals(Object node)
          Test for equality based on node number.
 String getAttribute(String name)
           
 org.w3c.dom.Attr getAttributeNode(String name)
           
 org.w3c.dom.Attr getAttributeNodeNS(String namespaceURI, String localName)
           
 String getAttributeNS(String namespaceURI, String localName)
           
 org.w3c.dom.NamedNodeMap getAttributes()
           
 org.w3c.dom.NodeList getChildNodes()
           
 String getData()
           
 org.w3c.dom.DocumentType getDoctype()
           
 org.w3c.dom.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.
 DTM getDTM()
          NON-DOM: Return the DTM model
 int getDTMNodeNumber()
          NON-DOM: Return the DTM node number
 org.w3c.dom.Element getElementById(String elementId)
           
 org.w3c.dom.NodeList getElementsByTagName(String tagname)
           
 org.w3c.dom.NodeList getElementsByTagNameNS(String namespaceURI, String localName)
           
 String getEncoding()
          EXPERIMENTAL!
 org.w3c.dom.Node getFirstChild()
           
 org.w3c.dom.DOMImplementation getImplementation()
           
 org.w3c.dom.Node getLastChild()
           
 int getLength()
           
 String getLocalName()
           
 String getName()
           
 String getNamespaceURI()
           
 org.w3c.dom.Node getNextSibling()
           
 String getNodeName()
           
 short getNodeType()
           
 String getNodeValue()
           
 org.w3c.dom.Document getOwnerDocument()
           
 org.w3c.dom.Element getOwnerElement()
          Get the owner element of an attribute.
 org.w3c.dom.Node getOwnerNode()
           
 org.w3c.dom.Node getParentNode()
           
 String getPrefix()
           
 org.w3c.dom.Node getPreviousSibling()
           
 boolean getSpecified()
           
 boolean getStandalone()
          EXPERIMENTAL!
 boolean getStrictErrorChecking()
          EXPERIMENTAL!
 String getStringValue()
           
 String getTagName()
           
 String getTarget()
          A PI's "target" states what processor channel the PI's data should be directed to.
 String getValue()
           
 String getVersion()
          EXPERIMENTAL!
 boolean hasAttribute(String name)
          Method hasAttribute
 boolean hasAttributeNS(String name, String x)
          Method hasAttributeNS
 boolean hasAttributes()
          Introduced in DOM Level 2.
 boolean hasChildNodes()
           
 org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep)
           
 org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild)
           
 void insertData(int offset, String arg)
           
 boolean isSupported(String feature, String version)
          Ask whether we support a given DOM feature.
 void normalize()
           
 void removeAttribute(String name)
           
 org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr)
           
 void removeAttributeNS(String namespaceURI, String localName)
           
 org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
           
 org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild)
           
 void replaceData(int offset, int count, String arg)
           
 boolean sameNodeAs(org.w3c.dom.Node other)
          FUTURE DOM: Test node identity, in lieu of Node==Node
 void setAttribute(String name, String value)
           
 org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr)
           
 org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr newAttr)
           
 void setAttributeNS(String namespaceURI, String qualifiedName, String value)
           
 void setData(String data)
           
 void setEncoding(String encoding)
          EXPERIMENTAL!
 void setNodeValue(String nodeValue)
           
 void setPrefix(String prefix)
           
 void setStandalone(boolean standalone)
          EXPERIMENTAL!
 void setStrictErrorChecking(boolean strictErrorChecking)
          EXPERIMENTAL!
 void setValue(String value)
           
 void setVersion(String version)
          EXPERIMENTAL!
 org.w3c.dom.Text splitText(int offset)
           
 String substringData(int offset, int count)
           
 boolean supports(String feature, String version)
          Ask whether we support a given DOM feature.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dtm

public DTM dtm
The DTM for this node.


node

int node
The DTM node handle.


implementation

static final org.w3c.dom.DOMImplementation implementation
The DOMImplementation object

Constructor Detail

DTMNodeProxy

DTMNodeProxy(DTM dtm,
             int node)
Create a DTMNodeProxy Node representing a specific Node in a DTM

Parameters:
dtm - The DTM Reference, must be non-null.
node - The DTM node handle.
Method Detail

getDTM

public final DTM getDTM()
NON-DOM: Return the DTM model

Returns:
The DTM that this proxy is a representative for.

getDTMNodeNumber

public final int getDTMNodeNumber()
NON-DOM: Return the DTM node number

Returns:
The DTM node handle.

equals

public final boolean equals(org.w3c.dom.Node node)
Test for equality based on node number.

Parameters:
node - A DTM node proxy reference.
Returns:
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.

Overrides:
equals in class Object
Parameters:
node - A DTM node proxy reference.
Returns:
true if the given node has the same handle as this node.
See Also:
Object.hashCode(), Hashtable

sameNodeAs

public final boolean sameNodeAs(org.w3c.dom.Node other)
FUTURE DOM: Test node identity, in lieu of Node==Node

Parameters:
other -
Returns:
true if the given node has the same handle as this node.

getNodeName

public final String getNodeName()
Specified by:
getNodeName in interface org.w3c.dom.Node
Returns:
See Also:
Node

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 " In HTML, target is always null.

Note that getNodeName is aliased to getTarget.

Specified by:
getTarget in interface org.w3c.dom.ProcessingInstruction
Returns:

getLocalName

public final String getLocalName()
Specified by:
getLocalName in interface org.w3c.dom.Node
Returns:
See Also:
as of DOM Level 2

getPrefix

public final String getPrefix()
Specified by:
getPrefix in interface org.w3c.dom.Node
Returns:
The prefix for this node.
See Also:
as of DOM Level 2

setPrefix

public final void setPrefix(String prefix)
                     throws org.w3c.dom.DOMException
Specified by:
setPrefix in interface org.w3c.dom.Node
Parameters:
prefix -
Throws:
org.w3c.dom.DOMException
See Also:
as of DOM Level 2 -- DTMNodeProxy is read-only

getNamespaceURI

public final String getNamespaceURI()
Specified by:
getNamespaceURI in interface org.w3c.dom.Node
Returns:
See Also:
as of DOM Level 2

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.

Parameters:
feature -
version -
Returns:
false

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.

Specified by:
isSupported in interface org.w3c.dom.Node
Parameters:
feature -
version -
Returns:
false
See Also:
as of DOM Level 2

getNodeValue

public final String getNodeValue()
                          throws org.w3c.dom.DOMException
Specified by:
getNodeValue in interface org.w3c.dom.Node
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
Node

getStringValue

public final String getStringValue()
                            throws org.w3c.dom.DOMException
Returns:
The string value of the node
Throws:
org.w3c.dom.DOMException

setNodeValue

public final void setNodeValue(String nodeValue)
                        throws org.w3c.dom.DOMException
Specified by:
setNodeValue in interface org.w3c.dom.Node
Parameters:
nodeValue -
Throws:
org.w3c.dom.DOMException
See Also:
-- DTMNodeProxy is read-only

getNodeType

public final short getNodeType()
Specified by:
getNodeType in interface org.w3c.dom.Node
Returns:
See Also:
Node

getParentNode

public final org.w3c.dom.Node getParentNode()
Specified by:
getParentNode in interface org.w3c.dom.Node
Returns:
See Also:
Node

getOwnerNode

public final org.w3c.dom.Node getOwnerNode()
Returns:
See Also:
Node

getChildNodes

public final org.w3c.dom.NodeList getChildNodes()
Specified by:
getChildNodes in interface org.w3c.dom.Node
Returns:
See Also:
Node

getFirstChild

public final org.w3c.dom.Node getFirstChild()
Specified by:
getFirstChild in interface org.w3c.dom.Node
Returns:
See Also:
Node

getLastChild

public final org.w3c.dom.Node getLastChild()
Specified by:
getLastChild in interface org.w3c.dom.Node
Returns:
See Also:
Node

getPreviousSibling

public final org.w3c.dom.Node getPreviousSibling()
Specified by:
getPreviousSibling in interface org.w3c.dom.Node
Returns:
See Also:
Node

getNextSibling

public final org.w3c.dom.Node getNextSibling()
Specified by:
getNextSibling in interface org.w3c.dom.Node
Returns:
See Also:
Node

getAttributes

public final org.w3c.dom.NamedNodeMap getAttributes()
Specified by:
getAttributes in interface org.w3c.dom.Node
Returns:
See Also:
Node

hasAttribute

public boolean hasAttribute(String name)
Method hasAttribute

Specified by:
hasAttribute in interface org.w3c.dom.Element
Parameters:
name - (hasAttribute) @return

hasAttributeNS

public boolean hasAttributeNS(String name,
                              String x)
Method hasAttributeNS

Specified by:
hasAttributeNS in interface org.w3c.dom.Element
Parameters:
name -
x - (hasAttributeNS) @return

getOwnerDocument

public final org.w3c.dom.Document getOwnerDocument()
Specified by:
getOwnerDocument in interface org.w3c.dom.Node
Returns:
See Also:
Node

insertBefore

public final org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
                                           org.w3c.dom.Node refChild)
                                    throws org.w3c.dom.DOMException
Specified by:
insertBefore in interface org.w3c.dom.Node
Parameters:
newChild -
refChild -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
-- DTMNodeProxy is read-only

replaceChild

public final org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
                                           org.w3c.dom.Node oldChild)
                                    throws org.w3c.dom.DOMException
Specified by:
replaceChild in interface org.w3c.dom.Node
Parameters:
newChild -
oldChild -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
-- DTMNodeProxy is read-only

removeChild

public final org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
                                   throws org.w3c.dom.DOMException
Specified by:
removeChild in interface org.w3c.dom.Node
Parameters:
oldChild -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
-- DTMNodeProxy is read-only

appendChild

public final org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
                                   throws org.w3c.dom.DOMException
Specified by:
appendChild in interface org.w3c.dom.Node
Parameters:
newChild -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
-- DTMNodeProxy is read-only

hasChildNodes

public final boolean hasChildNodes()
Specified by:
hasChildNodes in interface org.w3c.dom.Node
Returns:
See Also:
Node

cloneNode

public final org.w3c.dom.Node cloneNode(boolean deep)
Specified by:
cloneNode in interface org.w3c.dom.Node
Parameters:
deep -
Returns:
See Also:
-- DTMNodeProxy is read-only

getDoctype

public final org.w3c.dom.DocumentType getDoctype()
Specified by:
getDoctype in interface org.w3c.dom.Document
Returns:
See Also:
Document

getImplementation

public final org.w3c.dom.DOMImplementation getImplementation()
Specified by:
getImplementation in interface org.w3c.dom.Document
Returns:
See Also:
Document

getDocumentElement

public final org.w3c.dom.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?

Specified by:
getDocumentElement in interface org.w3c.dom.Document
Returns:
See Also:
Document

createElement

public final org.w3c.dom.Element createElement(String tagName)
                                        throws org.w3c.dom.DOMException
Specified by:
createElement in interface org.w3c.dom.Document
Parameters:
tagName -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
Document

createDocumentFragment

public final org.w3c.dom.DocumentFragment createDocumentFragment()
Specified by:
createDocumentFragment in interface org.w3c.dom.Document
Returns:
See Also:
Document

createTextNode

public final org.w3c.dom.Text createTextNode(String data)
Specified by:
createTextNode in interface org.w3c.dom.Document
Parameters:
data -
Returns:
See Also:
Document

createComment

public final org.w3c.dom.Comment createComment(String data)
Specified by:
createComment in interface org.w3c.dom.Document
Parameters:
data -
Returns:
See Also:
Document

createCDATASection

public final org.w3c.dom.CDATASection createCDATASection(String data)
                                                  throws org.w3c.dom.DOMException
Specified by:
createCDATASection in interface org.w3c.dom.Document
Parameters:
data -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
Document

createProcessingInstruction

public final org.w3c.dom.ProcessingInstruction createProcessingInstruction(String target,
                                                                           String data)
                                                                    throws org.w3c.dom.DOMException
Specified by:
createProcessingInstruction in interface org.w3c.dom.Document
Parameters:
target -
data -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
Document

createAttribute

public final org.w3c.dom.Attr createAttribute(String name)
                                       throws org.w3c.dom.DOMException
Specified by:
createAttribute in interface org.w3c.dom.Document
Parameters:
name -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
Document

createEntityReference

public final org.w3c.dom.EntityReference createEntityReference(String name)
                                                        throws org.w3c.dom.DOMException
Specified by:
createEntityReference in interface org.w3c.dom.Document
Parameters:
name -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
Document

getElementsByTagName

public final org.w3c.dom.NodeList getElementsByTagName(String tagname)
Specified by:
getElementsByTagName in interface org.w3c.dom.Document
Parameters:
tagname -
Returns:
See Also:
Document

importNode

public final org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode,
                                         boolean deep)
                                  throws org.w3c.dom.DOMException
Specified by:
importNode in interface org.w3c.dom.Document
Parameters:
importedNode -
deep -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
as of DOM Level 2 -- DTMNodeProxy is read-only

createElementNS

public final org.w3c.dom.Element createElementNS(String namespaceURI,
                                                 String qualifiedName)
                                          throws org.w3c.dom.DOMException
Specified by:
createElementNS in interface org.w3c.dom.Document
Parameters:
namespaceURI -
qualifiedName -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
as of DOM Level 2

createAttributeNS

public final org.w3c.dom.Attr createAttributeNS(String namespaceURI,
                                                String qualifiedName)
                                         throws org.w3c.dom.DOMException
Specified by:
createAttributeNS in interface org.w3c.dom.Document
Parameters:
namespaceURI -
qualifiedName -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
as of DOM Level 2

getElementsByTagNameNS

public final org.w3c.dom.NodeList getElementsByTagNameNS(String namespaceURI,
                                                         String localName)
Specified by:
getElementsByTagNameNS in interface org.w3c.dom.Document
Parameters:
namespaceURI -
localName -
Returns:
See Also:
as of DOM Level 2

getElementById

public final org.w3c.dom.Element getElementById(String elementId)
Specified by:
getElementById in interface org.w3c.dom.Document
Parameters:
elementId -
Returns:
See Also:
as of DOM Level 2

splitText

public final org.w3c.dom.Text splitText(int offset)
                                 throws org.w3c.dom.DOMException
Specified by:
splitText in interface org.w3c.dom.Text
Parameters:
offset -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
Text

getData

public final String getData()
                     throws org.w3c.dom.DOMException
Specified by:
getData in interface org.w3c.dom.CharacterData
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
CharacterData

setData

public final void setData(String data)
                   throws org.w3c.dom.DOMException
Specified by:
setData in interface org.w3c.dom.CharacterData
Parameters:
data -
Throws:
org.w3c.dom.DOMException
See Also:
CharacterData

getLength

public final int getLength()
Specified by:
getLength in interface org.w3c.dom.CharacterData
Returns:
See Also:
CharacterData

substringData

public final String substringData(int offset,
                                  int count)
                           throws org.w3c.dom.DOMException
Specified by:
substringData in interface org.w3c.dom.CharacterData
Parameters:
offset -
count -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
CharacterData

appendData

public final void appendData(String arg)
                      throws org.w3c.dom.DOMException
Specified by:
appendData in interface org.w3c.dom.CharacterData
Parameters:
arg -
Throws:
org.w3c.dom.DOMException
See Also:
CharacterData

insertData

public final void insertData(int offset,
                             String arg)
                      throws org.w3c.dom.DOMException
Specified by:
insertData in interface org.w3c.dom.CharacterData
Parameters:
offset -
arg -
Throws:
org.w3c.dom.DOMException
See Also:
CharacterData

deleteData

public final void deleteData(int offset,
                             int count)
                      throws org.w3c.dom.DOMException
Specified by:
deleteData in interface org.w3c.dom.CharacterData
Parameters:
offset -
count -
Throws:
org.w3c.dom.DOMException
See Also:
CharacterData

replaceData

public final void replaceData(int offset,
                              int count,
                              String arg)
                       throws org.w3c.dom.DOMException
Specified by:
replaceData in interface org.w3c.dom.CharacterData
Parameters:
offset -
count -
arg -
Throws:
org.w3c.dom.DOMException
See Also:
CharacterData

getTagName

public final String getTagName()
Specified by:
getTagName in interface org.w3c.dom.Element
Returns:
See Also:
Element

getAttribute

public final String getAttribute(String name)
Specified by:
getAttribute in interface org.w3c.dom.Element
Parameters:
name -
Returns:
See Also:
Element

setAttribute

public final void setAttribute(String name,
                               String value)
                        throws org.w3c.dom.DOMException
Specified by:
setAttribute in interface org.w3c.dom.Element
Parameters:
name -
value -
Throws:
org.w3c.dom.DOMException
See Also:
Element

removeAttribute

public final void removeAttribute(String name)
                           throws org.w3c.dom.DOMException
Specified by:
removeAttribute in interface org.w3c.dom.Element
Parameters:
name -
Throws:
org.w3c.dom.DOMException
See Also:
Element

getAttributeNode

public final org.w3c.dom.Attr getAttributeNode(String name)
Specified by:
getAttributeNode in interface org.w3c.dom.Element
Parameters:
name -
Returns:
See Also:
Element

setAttributeNode

public final org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr)
                                        throws org.w3c.dom.DOMException
Specified by:
setAttributeNode in interface org.w3c.dom.Element
Parameters:
newAttr -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
Element

removeAttributeNode

public final org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr)
                                           throws org.w3c.dom.DOMException
Specified by:
removeAttributeNode in interface org.w3c.dom.Element
Parameters:
oldAttr -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
Element

hasAttributes

public boolean hasAttributes()
Introduced in DOM Level 2.

Specified by:
hasAttributes in interface org.w3c.dom.Node
Returns:

normalize

public final void normalize()
Specified by:
normalize in interface org.w3c.dom.Node
See Also:
Element

getAttributeNS

public final String getAttributeNS(String namespaceURI,
                                   String localName)
Specified by:
getAttributeNS in interface org.w3c.dom.Element
Parameters:
namespaceURI -
localName -
Returns:
See Also:
Element

setAttributeNS

public final void setAttributeNS(String namespaceURI,
                                 String qualifiedName,
                                 String value)
                          throws org.w3c.dom.DOMException
Specified by:
setAttributeNS in interface org.w3c.dom.Element
Parameters:
namespaceURI -
qualifiedName -
value -
Throws:
org.w3c.dom.DOMException
See Also:
Element

removeAttributeNS

public final void removeAttributeNS(String namespaceURI,
                                    String localName)
                             throws org.w3c.dom.DOMException
Specified by:
removeAttributeNS in interface org.w3c.dom.Element
Parameters:
namespaceURI -
localName -
Throws:
org.w3c.dom.DOMException
See Also:
Element

getAttributeNodeNS

public final org.w3c.dom.Attr getAttributeNodeNS(String namespaceURI,
                                                 String localName)
Specified by:
getAttributeNodeNS in interface org.w3c.dom.Element
Parameters:
namespaceURI -
localName -
Returns:
See Also:
Element

setAttributeNodeNS

public final org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr newAttr)
                                          throws org.w3c.dom.DOMException
Specified by:
setAttributeNodeNS in interface org.w3c.dom.Element
Parameters:
newAttr -
Returns:
Throws:
org.w3c.dom.DOMException
See Also:
Element

getName

public final String getName()
Specified by:
getName in interface org.w3c.dom.Attr
Returns:
See Also:
Attr

getSpecified

public final boolean getSpecified()
Specified by:
getSpecified in interface org.w3c.dom.Attr
Returns:
See Also:
Attr

getValue

public final String getValue()
Specified by:
getValue in interface org.w3c.dom.Attr
Returns:
See Also:
Attr

setValue

public final void setValue(String value)
Specified by:
setValue in interface org.w3c.dom.Attr
Parameters:
value -
See Also:
Attr

getOwnerElement

public final org.w3c.dom.Element getOwnerElement()
Get the owner element of an attribute.

Specified by:
getOwnerElement in interface org.w3c.dom.Attr
Returns:
See Also:
as of DOM Level 2

adoptNode

public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
                           throws org.w3c.dom.DOMException
NEEDSDOC Method adoptNode NEEDSDOC @param source NEEDSDOC (adoptNode) @return

Throws:
org.w3c.dom.DOMException

getEncoding

public String getEncoding()

EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..

An attribute specifying, as part of the XML declaration, the encoding of this document. This is null when unspecified.

Since:
DOM Level 3 NEEDSDOC ($objectName$) @return

setEncoding

public void setEncoding(String encoding)

EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..

An attribute specifying, as part of the XML declaration, the encoding of this document. This is null when unspecified.

Since:
DOM Level 3 NEEDSDOC @param encoding

getStandalone

public boolean getStandalone()

EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..

An attribute specifying, as part of the XML declaration, whether this document is standalone.

Since:
DOM Level 3 NEEDSDOC ($objectName$) @return

setStandalone

public void setStandalone(boolean standalone)

EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..

An attribute specifying, as part of the XML declaration, whether this document is standalone.

Since:
DOM Level 3 NEEDSDOC @param standalone

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.

Since:
DOM Level 3 NEEDSDOC ($objectName$) @return

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.

Since:
DOM Level 3 NEEDSDOC @param strictErrorChecking

getVersion

public String getVersion()

EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..

An attribute specifying, as part of the XML declaration, the version number of this document. This is null when unspecified.

Since:
DOM Level 3 NEEDSDOC ($objectName$) @return

setVersion

public void setVersion(String version)

EXPERIMENTAL! Based on the Document Object Model (DOM) Level 3 Core Working Draft of 5 June 2001..

An attribute specifying, as part of the XML declaration, the version number of this document. This is null when unspecified.

Since:
DOM Level 3 NEEDSDOC @param version