net.sourceforge.jeuclid.dom
Class PartialTextImpl

java.lang.Object
  extended by net.sourceforge.jeuclid.dom.AbstractPartialNodeImpl
      extended by net.sourceforge.jeuclid.dom.PartialTextImpl
All Implemented Interfaces:
CharacterData, Node, Text

public class PartialTextImpl
extends AbstractPartialNodeImpl
implements Text

Partial implementation of org.w3c.dom.Text.

This implements only the functions necessary for MathElements. Feel free to implement whatever functions you need.

Version:
$Revision: 310 $
Author:
Max Berger

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sourceforge.jeuclid.dom.AbstractPartialNodeImpl
AbstractPartialNodeImpl.NodeList
 
Field Summary
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
PartialTextImpl(String text)
          Constructor.
 
Method Summary
 void appendData(String arg)
          
 void deleteData(int offset, int count)
          
 String getData()
          
 int getLength()
          
 String getNodeName()
          
 short getNodeType()
          
 String getNodeValue()
          
 String getTextContent()
          
 String getWholeText()
          
 void insertData(int offset, String arg)
          
 boolean isElementContentWhitespace()
          
 void replaceData(int offset, int count, String arg)
          
 Text replaceWholeText(String newContent)
          
 void setData(String data)
          
 void setTextContent(String newTextContent)
          
 Text splitText(int offset)
          
 String substringData(int offset, int count)
          
 
Methods inherited from class net.sourceforge.jeuclid.dom.AbstractPartialNodeImpl
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setUserData
 

Constructor Detail

PartialTextImpl

public PartialTextImpl(String text)
Constructor.

Parameters:
text - text content for this node.
Method Detail

getWholeText

public String getWholeText()

Specified by:
getWholeText in interface Text

isElementContentWhitespace

public boolean isElementContentWhitespace()

Specified by:
isElementContentWhitespace in interface Text

replaceWholeText

public Text replaceWholeText(String newContent)

Specified by:
replaceWholeText in interface Text

splitText

public Text splitText(int offset)

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

getNodeName

public String getNodeName()

Specified by:
getNodeName in interface Node

getNodeType

public short getNodeType()

Specified by:
getNodeType in interface Node

getNodeValue

public String getNodeValue()

Specified by:
getNodeValue in interface Node
Overrides:
getNodeValue in class AbstractPartialNodeImpl

setTextContent

public void setTextContent(String newTextContent)

Specified by:
setTextContent in interface Node
Overrides:
setTextContent in class AbstractPartialNodeImpl

getTextContent

public String getTextContent()

Specified by:
getTextContent in interface Node
Overrides:
getTextContent in class AbstractPartialNodeImpl


Copyright © 2002-2008 The JEuclid project. All Rights Reserved.