org.apache.batik.dom

Class GenericElement

public class GenericElement extends AbstractElement

This class implements the org.w3c.dom.Element interface.
Field Summary
protected StringnodeName
The node name.
protected booleanreadonly
Is this element immutable?
Constructor Summary
protected GenericElement()
Creates a new Element object.
GenericElement(String name, AbstractDocument owner)
Creates a new Element 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.
StringgetNodeName()
DOM: Implements org.w3c.dom.Node#getNodeName().
booleanisReadonly()
Tests whether this node is readonly.
protected NodenewNode()
Returns a new uninitialized instance of this object's class.
voidsetNodeName(String v)
Sets the name of this node.
voidsetReadonly(boolean v)
Sets this node readonly attribute.

Field Detail

nodeName

protected String nodeName
The node name.

readonly

protected boolean readonly
Is this element immutable?

Constructor Detail

GenericElement

protected GenericElement()
Creates a new Element object.

GenericElement

public GenericElement(String name, AbstractDocument owner)
Creates a new Element object.

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

Throws: DOMException INVALID_CHARACTER_ERR: if name contains invalid characters,

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.

getNodeName

public String getNodeName()
DOM: Implements org.w3c.dom.Node#getNodeName().

Returns: nodeName

isReadonly

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

newNode

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

setNodeName

public void setNodeName(String v)
Sets the name of this node.

setReadonly

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