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()
          Returns the Namespace if this contains a QName Return null otherwise
 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, 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()

getNamespace

public OMNamespace getNamespace()
Returns the Namespace if this contains a QName Return null otherwise

Returns:
OMNamespace

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 -

isBinary

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

setBinary

public void setBinary(boolean value)
Sets the isBinary flag.

Parameters:
value -

getContentID

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

Returns:
Returns String.


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.