org.apache.batik.dom

Class GenericElementNS

public class GenericElementNS extends AbstractElementNS

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 GenericElementNS()
Creates a new Element object.
GenericElementNS(String nsURI, 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

GenericElementNS

protected GenericElementNS()
Creates a new Element object.

GenericElementNS

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

Parameters: nsURI The element namespace URI. name The element qualified name. 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, or if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from "http://www.w3.org/XML/1998/namespace" .

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.