org.apache.batik.dom

Class AbstractCharacterData

public abstract class AbstractCharacterData extends AbstractChildNode implements CharacterData

This class implements the {@link org.w3c.dom.CharacterData} interface.
Field Summary
protected StringnodeValue
The value of this node.
Method Summary
voidappendData(String arg)
DOM: Implements {@link org.w3c.dom.CharacterData#appendData(String)}.
protected voidcheckOffsetCount(int offset, int count)
Checks the given offset and count validity.
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.
voiddeleteData(int offset, int count)
DOM: Implements {@link org.w3c.dom.CharacterData#deleteData(int,int)}.
protected Nodeexport(Node n, AbstractDocument d)
Exports this node to the given document.
StringgetData()
DOM: Implements {@link org.w3c.dom.CharacterData#getData()}.
intgetLength()
DOM: Implements {@link org.w3c.dom.CharacterData#getLength()}.
StringgetNodeValue()
DOM: Implements {@link org.w3c.dom.Node#getNodeValue()}.
voidinsertData(int offset, String arg)
DOM: Implements {@link org.w3c.dom.CharacterData#insertData(int,String)}.
voidreplaceData(int offset, int count, String arg)
DOM: Implements {@link org.w3c.dom.CharacterData#replaceData(int,int,String)}.
voidsetData(String data)
DOM: Implements {@link org.w3c.dom.CharacterData#setData(String)}.
voidsetNodeValue(String nodeValue)
DOM: Implements {@link org.w3c.dom.Node#setNodeValue(String)}.
StringsubstringData(int offset, int count)
DOM: Implements {@link org.w3c.dom.CharacterData#substringData(int,int)}.

Field Detail

nodeValue

protected String nodeValue
The value of this node.

Method Detail

appendData

public void appendData(String arg)
DOM: Implements {@link org.w3c.dom.CharacterData#appendData(String)}.

checkOffsetCount

protected void checkOffsetCount(int offset, int count)
Checks the given offset and count validity.

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.

deleteData

public void deleteData(int offset, int count)
DOM: Implements {@link org.w3c.dom.CharacterData#deleteData(int,int)}.

export

protected Node export(Node n, AbstractDocument d)
Exports this node to the given document.

getData

public String getData()
DOM: Implements {@link org.w3c.dom.CharacterData#getData()}.

Returns: {@link #getNodeValue()}.

getLength

public int getLength()
DOM: Implements {@link org.w3c.dom.CharacterData#getLength()}.

Returns: {@link #nodeValue}.length().

getNodeValue

public String getNodeValue()
DOM: Implements {@link org.w3c.dom.Node#getNodeValue()}.

Returns: {@link #nodeValue}.

insertData

public void insertData(int offset, String arg)
DOM: Implements {@link org.w3c.dom.CharacterData#insertData(int,String)}.

replaceData

public void replaceData(int offset, int count, String arg)
DOM: Implements {@link org.w3c.dom.CharacterData#replaceData(int,int,String)}.

setData

public void setData(String data)
DOM: Implements {@link org.w3c.dom.CharacterData#setData(String)}.

setNodeValue

public void setNodeValue(String nodeValue)
DOM: Implements {@link org.w3c.dom.Node#setNodeValue(String)}.

substringData

public String substringData(int offset, int count)
DOM: Implements {@link org.w3c.dom.CharacterData#substringData(int,int)}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.