Save This Page
Home » axiom-1.2.8-src » org.apache.axiom.om.impl.llom » [javadoc | source]
org.apache.axiom.om.impl.llom
public class: OMTextImpl [javadoc | source]
java.lang.Object
   org.apache.axiom.om.impl.llom.OMNodeImpl
      org.apache.axiom.om.impl.llom.OMTextImpl

All Implemented Interfaces:
    OMText, OMConstants, OMNode, OMNodeEx

Field Summary
public static final  OMNamespace XOP_NS    Field nameSpace used when serializing Binary stuff as MTOM optimized. 
protected  String value     
protected  char[] charArray     
protected  OMNamespace textNS     
protected  String mimeType     
protected  boolean optimize     
protected  boolean isBinary     
protected  String localName    Field localName used when serializing Binary stuff as MTOM optimized. 
protected  OMAttribute attribute    Field attributes used when serializing Binary stuff as MTOM optimized. 
Fields inherited from org.apache.axiom.om.impl.llom.OMNodeImpl:
parent,  nextSibling,  previousSibling,  builder,  done,  nodeType,  factory
Constructor:
 public OMTextImpl(String s,
    OMFactory factory) 
    Constructor OMTextImpl.
    Parameters:
    s -
 public OMTextImpl(Object dataHandler,
    OMFactory factory) 
    Parameters:
    dataHandler - To send binary optimised content Created programatically.
 public OMTextImpl(String s,
    int nodeType,
    OMFactory factory) 
    Parameters:
    s -
    nodeType - - OMText can handle CHARACTERS, SPACES, CDATA and ENTITY REFERENCES. Constants for this can be found in OMNode.
 public OMTextImpl(OMContainer parent,
    String text,
    OMFactory factory) 
    Constructor OMTextImpl.
    Parameters:
    parent -
    text -
 public OMTextImpl(OMContainer parent,
    OMTextImpl source,
    OMFactory factory) 
    Construct OMTextImpl that is a copy of the source OMTextImpl
    Parameters:
    parent -
    source - OMTextImpl
    factory -
 public OMTextImpl(OMContainer parent,
    QName text,
    OMFactory factory) 
 public OMTextImpl(Object dataHandler,
    boolean optimize,
    OMFactory factory) 
    Parameters:
    dataHandler -
    optimize - To send binary content. Created progrmatically.
 public OMTextImpl(OMContainer parent,
    String text,
    int nodeType,
    OMFactory factory) 
 public OMTextImpl(OMContainer parent,
    char[] charArray,
    int nodeType,
    OMFactory factory) 
 public OMTextImpl(OMContainer parent,
    QName text,
    int nodeType,
    OMFactory factory) 
 public OMTextImpl(String s,
    String mimeType,
    boolean optimize,
    OMFactory factory) 
    Parameters:
    s - - base64 encoded String representation of Binary
    mimeType - of the Binary
 public OMTextImpl(String contentID,
    OMContainer parent,
    OMXMLParserWrapper builder,
    OMFactory factory) 
    Parameters:
    contentID -
    parent -
    builder - Used when the builder is encountered with a XOP:Include tag Stores a reference to the builder and the content-id. Supports deferred parsing of MIME messages.
 public OMTextImpl(OMContainer parent,
    String s,
    String mimeType,
    boolean optimize,
    OMFactory factory) 
    Parameters:
    parent -
    s - - base64 encoded String representation of Binary
    mimeType - of the Binary
Method from org.apache.axiom.om.impl.llom.OMTextImpl Summary:
buildWithAttachments,   discard,   getContentID,   getDataHandler,   getInputStream,   getLocalName,   getNamespace,   getText,   getTextAsQName,   getTextCharacters,   internalSerialize,   internalSerializeAndConsume,   isBinary,   isCharacters,   isOptimized,   serializeAttribute,   serializeNamespace,   setBinary,   setContentID,   setOptimize
Methods from org.apache.axiom.om.impl.llom.OMNodeImpl:
build,   buildWithAttachments,   close,   detach,   getNextOMSibling,   getOMFactory,   getParent,   getPreviousOMSibling,   getType,   importNode,   insertSiblingAfter,   insertSiblingBefore,   internalSerialize,   internalSerializeAndConsume,   isComplete,   serialize,   serialize,   serialize,   serialize,   serialize,   serializeAndConsume,   serializeAndConsume,   serializeAndConsume,   serializeAndConsume,   serializeAndConsume,   setComplete,   setNextOMSibling,   setParent,   setPreviousOMSibling,   setType
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.axiom.om.impl.llom.OMTextImpl Detail:
 public  void buildWithAttachments() 
 public  void discard() throws OMException 
    A slightly different implementation of the discard method.
 public String getContentID() 
 public Object getDataHandler() 
    Gets the datahandler.
 public InputStream getInputStream() throws OMException 
 public String getLocalName() 
 public OMNamespace getNamespace() 
 public String getText() throws OMException 
    Returns the value.
 public QName getTextAsQName() throws OMException 
    Returns the value.
 public char[] getTextCharacters() 
 public  void internalSerialize(XMLStreamWriter writer) throws XMLStreamException 
 public  void internalSerializeAndConsume(XMLStreamWriter writer) throws XMLStreamException 
 public boolean isBinary() 
 public boolean isCharacters() 
 public boolean isOptimized() 
 static  void serializeAttribute(OMAttribute attr,
    XMLStreamWriter writer) throws XMLStreamException 
    Method serializeAttribute.
 static  void serializeNamespace(OMNamespace namespace,
    XMLStreamWriter writer) throws XMLStreamException 
    Method serializeNamespace.
 public  void setBinary(boolean value) 
    Receiving binary can happen as either MTOM attachments or as Base64 Text In the case of Base64 user has to explicitly specify that the content is binary, before calling getDataHandler(), getInputStream()....
 public  void setContentID(String cid) 
 public  void setOptimize(boolean value)