org.apache.batik.dom

Class GenericText

public class GenericText extends AbstractText

This class provides a generic implementation of the org.w3c.dom.Text interface.
Field Summary
protected booleanreadonly
Is this element immutable?
Constructor Summary
protected GenericText()
Creates a new uninitialized Text object.
GenericText(String value, AbstractDocument owner)
Creates a new Text object.
Method Summary
protected TextcreateTextNode(String text)
Creates a text node of the current type.
StringgetNodeName()
DOM: Implements org.w3c.dom.Node#getNodeName().
shortgetNodeType()
DOM: Implements org.w3c.dom.Node#getNodeType().
booleanisReadonly()
Tests whether this node is readonly.
protected NodenewNode()
Returns a new uninitialized instance of this object's class.
voidsetReadonly(boolean v)
Sets this node readonly attribute.

Field Detail

readonly

protected boolean readonly
Is this element immutable?

Constructor Detail

GenericText

protected GenericText()
Creates a new uninitialized Text object.

GenericText

public GenericText(String value, AbstractDocument owner)
Creates a new Text object.

Method Detail

createTextNode

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

getNodeName

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

Returns: getNodeName.

getNodeType

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

Returns: org.w3c.dom.Node#TEXT_NODE

isReadonly

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

newNode

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

setReadonly

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