org.apache.batik.dom

Class GenericAttrNS

public class GenericAttrNS extends AbstractAttrNS

This class implements the org.w3c.dom.Attr interface with support for namespaces.
Field Summary
protected booleanreadonly
Is this attribute immutable?
Constructor Summary
protected GenericAttrNS()
Creates a new Attr object.
GenericAttrNS(String nsURI, String qname, AbstractDocument owner)
Creates a new Attr object.
Method Summary
booleanisReadonly()
Tests whether this node is readonly.
protected NodenewNode()
Returns a new uninitialized instance of this object's class.
voidsetReadonly(boolean v)
Sets this node readonly attribute.

Field Detail

readonly

protected boolean readonly
Is this attribute immutable?

Constructor Detail

GenericAttrNS

protected GenericAttrNS()
Creates a new Attr object.

GenericAttrNS

public GenericAttrNS(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

isReadonly

public boolean isReadonly()
Tests whether this node is readonly.

newNode

protected Node newNode()
Returns a new uninitialized instance of this object's class.

setReadonly

public void setReadonly(boolean v)
Sets this node readonly attribute.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.