com.redspr.beanldom.stree
Class TextImpl

java.lang.Object
  |
  +--com.redspr.beanldom.stree.NodeImpl
        |
        +--com.redspr.beanldom.stree.TextImpl
All Implemented Interfaces:
CharacterData, Node, Text

public final class TextImpl
extends NodeImpl
implements Text

Text Node Used for arrays of strings e.g. Some string when ElementImpl discovers it represents a value

Author:
Sam Hough

Field Summary
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
TextImpl(NodeImpl parent, String text2)
           
 
Method Summary
 void appendData(String arg)
           
 void deleteData(int offset, int count)
           
 String getData()
           
 int getLength()
           
 String getNodeName()
           
 short getNodeType()
           
 String getNodeValue()
           
 Document getOwnerDocument()
           
 Node getParentNode()
           
 void insertData(int offset, String arg)
           
 void replaceData(int offset, int count, String arg)
           
 void setData(String data)
           
 Text splitText(int i)
           
 String substringData(int offset, int count)
           
 
Methods inherited from class com.redspr.beanldom.stree.NodeImpl
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Constructor Detail

TextImpl

public TextImpl(NodeImpl parent,
                String text2)
Method Detail

getNodeName

public String getNodeName()
Specified by:
getNodeName in interface Node

getNodeValue

public String getNodeValue()
Specified by:
getNodeValue in interface Node
Overrides:
getNodeValue in class NodeImpl

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface Node

getOwnerDocument

public Document getOwnerDocument()
Specified by:
getOwnerDocument in interface Node

getParentNode

public final Node getParentNode()
Specified by:
getParentNode in interface Node
Overrides:
getParentNode in class NodeImpl

splitText

public Text splitText(int i)
Specified by:
splitText in interface Text

appendData

public void appendData(String arg)
Specified by:
appendData in interface CharacterData

deleteData

public void deleteData(int offset,
                       int count)
Specified by:
deleteData in interface CharacterData

getData

public String getData()
Specified by:
getData in interface CharacterData

getLength

public int getLength()
Specified by:
getLength in interface CharacterData

insertData

public void insertData(int offset,
                       String arg)
Specified by:
insertData in interface CharacterData

replaceData

public void replaceData(int offset,
                        int count,
                        String arg)
Specified by:
replaceData in interface CharacterData

setData

public void setData(String data)
Specified by:
setData in interface CharacterData

substringData

public String substringData(int offset,
                            int count)
Specified by:
substringData in interface CharacterData