org.apache.axiom.om
Interface OMText

All Superinterfaces:
OMNode

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.
 OMNamespace getNamespace()
          Deprecated. This API is going away. Please use getTextAsQName() instead.
 java.lang.String getText()
          Returns the text value of this node.
 javax.xml.namespace.QName getTextAsQName()
           
 char[] getTextCharacters()
           
 boolean isBinary()
           
 boolean isCharacters()
           
 boolean isOptimized()
           
 void setBinary(boolean value)
          Sets the isBinary flag.
 void setOptimize(boolean value)
          Sets the optimize flag.
 
Methods inherited from interface org.apache.axiom.om.OMNode
build, buildWithAttachments, close, detach, discard, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
 

Method Detail

getText

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

Returns:
Returns String.

getTextCharacters

char[] getTextCharacters()

isCharacters

boolean isCharacters()

getTextAsQName

javax.xml.namespace.QName getTextAsQName()

getNamespace

OMNamespace getNamespace()
Deprecated. This API is going away. Please use getTextAsQName() instead.

Returns the Namespace if this contains a QName Return null otherwise

Returns:
OMNamespace

getDataHandler

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

Returns:
Returns datahandler.

isOptimized

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

setOptimize

void setOptimize(boolean value)
Sets the optimize flag.

Parameters:
value - true to optimize binary content (usually w/MTOM)

isBinary

boolean isBinary()
Returns:
Returns boolean flag saying whether the node contains binary or not.

setBinary

void setBinary(boolean value)
Sets the isBinary flag.

Parameters:
value - true if the content is binary

getContentID

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

Returns:
Returns String.