org.inria.ns.reflex.processor.asl
Class TextCandidate.Text

java.lang.Object
  extended by org.inria.ns.reflex.processor.asl.CandidateNode
      extended by org.inria.ns.reflex.processor.asl.TextCandidate
          extended by org.inria.ns.reflex.processor.asl.TextCandidate.Text
All Implemented Interfaces:
Unwrappable, CharacterData, Node, Text
Enclosing class:
TextCandidate

public static class TextCandidate.Text
extends TextCandidate
implements Text, Unwrappable

A candidate text for which comments and processing instructions have been ignored and adjacent text nodes merged.

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.asl.TextCandidate
TextCandidate.Attr, TextCandidate.Text
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.structures.Unwrappable
Unwrappable.Unwrapper
 
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
 
Fields inherited from interface org.inria.ns.reflex.structures.Unwrappable
UNWRAPPER
 
Method Summary
 void appendData(String str)
           
 void deleteData(int param, int param1)
           
 boolean equals(Object obj)
           
 String getData()
           
 int getLength()
           
 String getLocalName()
           
 String getNamespaceURI()
           
 String getNodeName()
           
 short getNodeType()
           
 String getPrefix()
           
 String getWholeText()
           
 int hashCode()
           
 void insertData(int param, String str)
           
 boolean isElementContentWhitespace()
           
 void replaceData(int param, int param1, String str)
           
 Text replaceWholeText(String content)
           
 void setData(String str)
           
 Text splitText(int param)
           
 String substringData(int param, int param1)
           
 Object unwrap()
          Return the object wrapped.
 
Methods inherited from class org.inria.ns.reflex.processor.asl.TextCandidate
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, isWhitespace, newTextCandidate, newTextCandidate, newTextCandidate, newTextCandidate, newTextCandidate, normalize, removeChild, replaceChild, setNodeValue, setPrefix, toString
 
Methods inherited from class org.inria.ns.reflex.processor.asl.CandidateNode
compareDocumentPosition, getBaseURI, getFeature, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getNodeType

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

getNodeName

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

getLocalName

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

getNamespaceURI

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

getPrefix

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

splitText

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

appendData

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

deleteData

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

getData

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

getLength

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

insertData

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

replaceData

public void replaceData(int param,
                        int param1,
                        String str)
                 throws DOMException
Specified by:
replaceData in interface CharacterData
Throws:
DOMException

setData

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

substringData

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

unwrap

public Object unwrap()
Description copied from interface: Unwrappable
Return the object wrapped. The object wrapped must be of the same type of the wrapper.

Specified by:
unwrap in interface Unwrappable

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 content)
                      throws DOMException
Specified by:
replaceWholeText in interface Text
Throws:
DOMException