org.apache.batik.dom

Class GenericAttr

public class GenericAttr extends AbstractAttr

This class implements the {@link org.w3c.dom.Attr} interface.
Field Summary
protected booleanreadonly
Is this attribute immutable?
Constructor Summary
protected GenericAttr()
Creates a new Attr object.
GenericAttr(String name, 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

GenericAttr

protected GenericAttr()
Creates a new Attr object.

GenericAttr

public GenericAttr(String name, AbstractDocument owner)
Creates a new Attr object.

Parameters: name The attribute name for validation purposes. owner The owner document.

Throws: DOMException INVALID_CHARACTER_ERR: if name contains invalid characters,

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) 2007 Apache Software Foundation. All Rights Reserved.