org.apache.batik.dom

Class AbstractEntityReference

public abstract class AbstractEntityReference extends AbstractParentChildNode implements EntityReference

This class implements the org.w3c.dom.EntityReference interface.
Field Summary
protected StringnodeName
The node name.
Constructor Summary
protected AbstractEntityReference()
Creates a new EntityReference object.
protected AbstractEntityReference(String name, AbstractDocument owner)
Creates a new EntityReference object.
Method Summary
protected voidcheckChildType(Node n, boolean replace)
Checks the validity of a node to be inserted.
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().
shortgetNodeType()
DOM: Implements org.w3c.dom.Node#getNodeType().
voidsetNodeName(String v)
Sets the name of this node.

Field Detail

nodeName

protected String nodeName
The node name.

Constructor Detail

AbstractEntityReference

protected AbstractEntityReference()
Creates a new EntityReference object.

AbstractEntityReference

protected AbstractEntityReference(String name, AbstractDocument owner)
Creates a new EntityReference object.

Parameters: name The entity name. owner The owner document.

Throws: DOMException INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.

Method Detail

checkChildType

protected void checkChildType(Node n, boolean replace)
Checks the validity of a node to be inserted.

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.

getNodeType

public short getNodeType()
DOM: Implements org.w3c.dom.Node#getNodeType().

Returns: org.w3c.dom.Node#ENTITY_REFERENCE_NODE

setNodeName

public void setNodeName(String v)
Sets the name of this node.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.