org.apache.batik.dom

Class AbstractText

public abstract class AbstractText extends AbstractCharacterData implements Text

This class implements the {@link org.w3c.dom.Text} interface.
Method Summary
protected abstract TextcreateTextNode(String text)
Creates a text node of the current type.
protected NodegetNextLogicallyAdjacentTextNode(Node n)
protected NodegetPreviousLogicallyAdjacentTextNode(Node n)
Get the previous logically adjacent text node.
StringgetTextContent()
DOM: Implements {@link org.w3c.dom.Node#getTextContent()}.
StringgetWholeText()
DOM: Implements {@link org.w3c.dom.Text#getWholeText()}.
booleanisElementContentWhitespace()
DOM: Implements {@link org.w3c.dom.Text#isElementContentWhitespace()}.
TextreplaceWholeText(String s)
DOM: Implements {@link org.w3c.dom.Text#replaceWholeText(String)}.
TextsplitText(int offset)
DOM: Implements {@link org.w3c.dom.Text#splitText(int)}.

Method Detail

createTextNode

protected abstract Text createTextNode(String text)
Creates a text node of the current type.

getNextLogicallyAdjacentTextNode

protected Node getNextLogicallyAdjacentTextNode(Node n)
Get the next logically adjacent text node.

getPreviousLogicallyAdjacentTextNode

protected Node getPreviousLogicallyAdjacentTextNode(Node n)
Get the previous logically adjacent text node.

getTextContent

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

getWholeText

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

isElementContentWhitespace

public boolean isElementContentWhitespace()
DOM: Implements {@link org.w3c.dom.Text#isElementContentWhitespace()}.

replaceWholeText

public Text replaceWholeText(String s)
DOM: Implements {@link org.w3c.dom.Text#replaceWholeText(String)}.

splitText

public Text splitText(int offset)
DOM: Implements {@link org.w3c.dom.Text#splitText(int)}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.