org.apache.batik.dom

Class AbstractAttrNS

public abstract class AbstractAttrNS extends AbstractAttr

This class implements the {@link org.w3c.dom.Attr} interface with support for namespaces.
Field Summary
protected StringnamespaceURI
The namespace URI
Constructor Summary
protected AbstractAttrNS()
Creates a new Attr object.
protected AbstractAttrNS(String nsURI, String qname, AbstractDocument owner)
Creates a new Attr object.
Method Summary
protected NodecopyInto(Node n)
Copy the fields of the current node into the given node.
protected NodedeepCopyInto(Node n)
Deeply copy the fields of the current node into the given node.
protected NodedeepExport(Node n, AbstractDocument d)
Deeply exports this node to the given document.
protected Nodeexport(Node n, AbstractDocument d)
Exports this node to the given document.
StringgetNamespaceURI()
DOM: Implements {@link org.w3c.dom.Node#getNamespaceURI()}.

Field Detail

namespaceURI

protected String namespaceURI
The namespace URI

Constructor Detail

AbstractAttrNS

protected AbstractAttrNS()
Creates a new Attr object.

AbstractAttrNS

protected AbstractAttrNS(String nsURI, String qname, AbstractDocument owner)
Creates a new Attr object.

Parameters: nsURI The element namespace URI. qname The attribute qualified name for validation purposes. owner The owner document.

Throws: DOMException INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the qualifiedName has a prefix and the namespaceURI is null or an empty string, if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from "http://www.w3.org/XML/1998/namespace", if the qualifiedName has a prefix that is "xmlns" and the namespaceURI is different from "http://www.w3.org/2000/xmlns/", or if the qualifiedName is "xmlns" and the namespaceURI is different from "http://www.w3.org/2000/xmlns/".

Method Detail

copyInto

protected Node copyInto(Node n)
Copy the fields of the current node into the given node.

Parameters: n a node of the type of this.

deepCopyInto

protected Node deepCopyInto(Node n)
Deeply copy the fields of the current node into the given node.

Parameters: n a node of the type of this.

deepExport

protected Node deepExport(Node n, AbstractDocument d)
Deeply exports this node to the given document.

export

protected Node export(Node n, AbstractDocument d)
Exports this node to the given document.

getNamespaceURI

public String getNamespaceURI()
DOM: Implements {@link org.w3c.dom.Node#getNamespaceURI()}.

Returns: {@link #namespaceURI}.

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.