org.apache.cocoon.components.jxdom
Class DocumentAdapter.TextAdapter

java.lang.Object
  extended byorg.apache.cocoon.components.jxdom.DocumentAdapter.NodeAdapter
      extended byorg.apache.cocoon.components.jxdom.DocumentAdapter.TextAdapter
All Implemented Interfaces:
CharacterData, Node, Text
Enclosing class:
DocumentAdapter

public class DocumentAdapter.TextAdapter
extends DocumentAdapter.NodeAdapter
implements Text


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
 
Method Summary
 void appendData(String arg)
           
 short compareDocumentPosition(Node other)
           
 void deleteData(int offset, int count)
           
 String getBaseURI()
           
 String getData()
           
 Object getFeature(String feature, String version)
           
 int getLength()
           
 String getNodeName()
           
 short getNodeType()
           
 String getNodeValue()
           
 Node getParentNode()
           
 String getTextContent()
           
 Object getUserData(String key)
           
 String getWholeText()
           
 void insertData(int offset, String arg)
           
 boolean isDefaultNamespace(String namespaceURI)
           
 boolean isElementContentWhitespace()
           
 boolean isEqualNode(Node arg)
           
 boolean isSameNode(Node other)
           
 String lookupNamespaceURI(String prefix)
           
 String lookupPrefix(String namespaceURI)
           
 void replaceData(int offset, int count, String arg)
           
 Text replaceWholeText(String content)
           
 void setData(String data)
           
 void setTextContent(String textContent)
           
 Object setUserData(String key, Object value, UserDataHandler handler)
           
 Text splitText(int offset)
           
 String substringData(int offset, int count)
           
 Object unwrap()
           
 
Methods inherited from class org.apache.cocoon.components.jxdom.DocumentAdapter.NodeAdapter
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 
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, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Method Detail

unwrap

public Object unwrap()
Overrides:
unwrap in class DocumentAdapter.NodeAdapter

getParentNode

public Node getParentNode()
Specified by:
getParentNode in interface Node
Overrides:
getParentNode in class DocumentAdapter.NodeAdapter

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface Node
Specified by:
getNodeType in class DocumentAdapter.NodeAdapter

getNodeName

public String getNodeName()
Specified by:
getNodeName in interface Node
Specified by:
getNodeName in class DocumentAdapter.NodeAdapter

getNodeValue

public String getNodeValue()
Specified by:
getNodeValue in interface Node
Overrides:
getNodeValue in class DocumentAdapter.NodeAdapter

getData

public String getData()
               throws DOMException
Specified by:
getData in interface CharacterData
Throws:
DOMException

setData

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

getLength

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

substringData

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

appendData

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

insertData

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

deleteData

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

replaceData

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

splitText

public Text splitText(int offset)
               throws DOMException
Specified by:
splitText in interface Text
Throws:
DOMException

getUserData

public Object getUserData(String key)
Since:
DOM Level 3

setUserData

public Object setUserData(String key,
                          Object value,
                          UserDataHandler handler)
Since:
DOM Level 3

getFeature

public Object getFeature(String feature,
                         String version)
Since:
DOM Level 3

compareDocumentPosition

public short compareDocumentPosition(Node other)
                              throws DOMException
Throws:
DOMException
Since:
DOM Level 3

getBaseURI

public String getBaseURI()
Since:
DOM Level 3

getTextContent

public String getTextContent()
                      throws DOMException
Throws:
DOMException
Since:
DOM Level 3

isDefaultNamespace

public boolean isDefaultNamespace(String namespaceURI)
Since:
DOM Level 3

isEqualNode

public boolean isEqualNode(Node arg)
Since:
DOM Level 3

isSameNode

public boolean isSameNode(Node other)
Since:
DOM Level 3

lookupNamespaceURI

public String lookupNamespaceURI(String prefix)
Since:
DOM Level 3

lookupPrefix

public String lookupPrefix(String namespaceURI)
Since:
DOM Level 3

setTextContent

public void setTextContent(String textContent)
                    throws DOMException
Throws:
DOMException
Since:
DOM Level 3

getWholeText

public String getWholeText()
Since:
DOM Level 3

isElementContentWhitespace

public boolean isElementContentWhitespace()
Since:
DOM Level 3

replaceWholeText

public Text replaceWholeText(String content)
                      throws DOMException
Throws:
DOMException
Since:
DOM Level 3


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.