org.apache.axiom.om
Interface OMText

All Superinterfaces:
OMNode
All Known Implementing Classes:
OMTextImpl, TextImpl

public interface OMText
extends OMNode

Interface OMText. OMText can contain data as a String, char[] or a DataHandler.


Field Summary
 
Fields inherited from interface org.apache.axiom.om.OMNode
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
 
Method Summary
 java.lang.String getContentID()
          Gets the content id.
 java.lang.Object getDataHandler()
          Gets the datahandler.
 java.lang.String getText()
          Returns the text value of this node.
 javax.xml.namespace.QName getTextAsQName()
           
 char[] getTextCharacters()
           
 boolean isCharacters()
           
 boolean isOptimized()
           
 void setOptimize(boolean value)
          Sets the optimize flag.
 
Methods inherited from interface org.apache.axiom.om.OMNode
build, detach, discard, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
 

Method Detail

getText

public java.lang.String getText()
Returns the text value of this node.

Returns:
Returns String.

getTextCharacters

public char[] getTextCharacters()

isCharacters

public boolean isCharacters()

getTextAsQName

public javax.xml.namespace.QName getTextAsQName()

getDataHandler

public java.lang.Object getDataHandler()
Gets the datahandler.

Returns:
Returns datahandler.

isOptimized

public boolean isOptimized()
Returns:
Returns boolean flag saying whether the node contains an optimized text or not.

setOptimize

public void setOptimize(boolean value)
Sets the optimize flag.

Parameters:
value -

getContentID

public java.lang.String getContentID()
Gets the content id.

Returns:
Returns String.