public class OMTextImpl extends OMNodeImpl implements org.apache.axiom.om.OMText, org.apache.axiom.om.OMConstants
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
charArray |
protected boolean |
isBinary |
protected String |
mimeType |
protected boolean |
optimize |
protected org.apache.axiom.om.OMNamespace |
textNS |
protected String |
value |
static org.apache.axiom.om.OMNamespace |
XOP_NS
Field nameSpace used when serializing Binary stuff as MTOM optimized.
|
nextSibling, nodeType, parent, previousSiblingbuilder, done, factoryCDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODEARRAY_ITEM_LOCALNAME, ARRAY_ITEM_NS_PREFIX, ARRAY_ITEM_NSURI, ARRAY_ITEM_QNAME, DATA_HANDLER, DEFAULT_CHAR_SET_ENCODING, DEFAULT_DEFAULT_NAMESPACE, DEFAULT_XML_VERSION, IS_BINARY, IS_DATA_HANDLERS_AWARE, PULL_TYPE_BUILDER, PUSH_TYPE_BUILDER, XMLATTRTYPE_CDATA, XMLATTRTYPE_ENTITIES, XMLATTRTYPE_ENTITY, XMLATTRTYPE_ID, XMLATTRTYPE_IDREF, XMLATTRTYPE_IDREFS, XMLATTRTYPE_NMTOKEN, XMLATTRTYPE_NMTOKENS, XMLATTRTYPE_NOTATION, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI| Constructor and Description |
|---|
OMTextImpl(Object dataHandler,
boolean optimize,
org.apache.axiom.om.OMFactory factory) |
OMTextImpl(Object dataHandler,
org.apache.axiom.om.OMFactory factory) |
OMTextImpl(org.apache.axiom.om.OMContainer parent,
char[] charArray,
int nodeType,
org.apache.axiom.om.OMFactory factory) |
OMTextImpl(org.apache.axiom.om.OMContainer parent,
OMTextImpl source,
org.apache.axiom.om.OMFactory factory)
Construct OMTextImpl that is a copy of the source OMTextImpl
|
OMTextImpl(org.apache.axiom.om.OMContainer parent,
QName text,
int nodeType,
org.apache.axiom.om.OMFactory factory) |
OMTextImpl(org.apache.axiom.om.OMContainer parent,
QName text,
org.apache.axiom.om.OMFactory factory) |
OMTextImpl(org.apache.axiom.om.OMContainer parent,
String text,
int nodeType,
org.apache.axiom.om.OMFactory factory) |
OMTextImpl(org.apache.axiom.om.OMContainer parent,
String text,
org.apache.axiom.om.OMFactory factory)
Constructor OMTextImpl.
|
OMTextImpl(org.apache.axiom.om.OMContainer parent,
String s,
String mimeType,
boolean optimize,
org.apache.axiom.om.OMFactory factory) |
OMTextImpl(String contentID,
org.apache.axiom.ext.stax.datahandler.DataHandlerProvider dataHandlerProvider,
boolean optimize,
org.apache.axiom.om.OMFactory factory)
Constructor.
|
OMTextImpl(String s,
int nodeType,
org.apache.axiom.om.OMFactory factory) |
OMTextImpl(String contentID,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMXMLParserWrapper builder,
org.apache.axiom.om.OMFactory factory) |
OMTextImpl(String s,
org.apache.axiom.om.OMFactory factory)
Constructor OMTextImpl.
|
OMTextImpl(String s,
String mimeType,
boolean optimize,
org.apache.axiom.om.OMFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildWithAttachments()
Parses this node and builds the object structure in memory.
|
void |
discard()
A slightly different implementation of the discard method.
|
String |
getContentID() |
Object |
getDataHandler()
Gets the datahandler.
|
InputStream |
getInputStream() |
org.apache.axiom.om.OMNamespace |
getNamespace() |
String |
getText()
Returns the value.
|
QName |
getTextAsQName()
Returns the value.
|
char[] |
getTextCharacters() |
void |
internalSerialize(XMLStreamWriter writer,
boolean cache)
Serializes the node.
|
boolean |
isBinary() |
boolean |
isCharacters() |
boolean |
isOptimized() |
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()....
|
void |
setContentID(String cid) |
void |
setOptimize(boolean value) |
detach, getNextOMSibling, getNextOMSiblingIfAvailable, getParent, getPreviousOMSibling, getType, importNode, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling, setTypebuild, close, getOMFactory, isComplete, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final org.apache.axiom.om.OMNamespace XOP_NS
protected String value
protected char[] charArray
protected org.apache.axiom.om.OMNamespace textNS
protected String mimeType
protected boolean optimize
protected boolean isBinary
public OMTextImpl(String s, org.apache.axiom.om.OMFactory factory)
s - public OMTextImpl(String s, int nodeType, org.apache.axiom.om.OMFactory factory)
s - nodeType - - OMText can handle CHARACTERS, SPACES, CDATA and ENTITY REFERENCES.
Constants for this can be found in OMNode.public OMTextImpl(org.apache.axiom.om.OMContainer parent,
String text,
org.apache.axiom.om.OMFactory factory)
parent - text - public OMTextImpl(org.apache.axiom.om.OMContainer parent,
OMTextImpl source,
org.apache.axiom.om.OMFactory factory)
parent - source - OMTextImplfactory - public OMTextImpl(org.apache.axiom.om.OMContainer parent,
String text,
int nodeType,
org.apache.axiom.om.OMFactory factory)
public OMTextImpl(org.apache.axiom.om.OMContainer parent,
char[] charArray,
int nodeType,
org.apache.axiom.om.OMFactory factory)
public OMTextImpl(org.apache.axiom.om.OMContainer parent,
QName text,
org.apache.axiom.om.OMFactory factory)
public OMTextImpl(org.apache.axiom.om.OMContainer parent,
QName text,
int nodeType,
org.apache.axiom.om.OMFactory factory)
public OMTextImpl(String s, String mimeType, boolean optimize, org.apache.axiom.om.OMFactory factory)
s - - base64 encoded String representation of BinarymimeType - of the Binarypublic OMTextImpl(org.apache.axiom.om.OMContainer parent,
String s,
String mimeType,
boolean optimize,
org.apache.axiom.om.OMFactory factory)
parent - s - - base64 encoded String representation of BinarymimeType - of the Binarypublic OMTextImpl(Object dataHandler, org.apache.axiom.om.OMFactory factory)
dataHandler - To send binary optimised content Created programatically.public OMTextImpl(Object dataHandler, boolean optimize, org.apache.axiom.om.OMFactory factory)
dataHandler - optimize - To send binary content. Created progrmatically.public OMTextImpl(String contentID, org.apache.axiom.ext.stax.datahandler.DataHandlerProvider dataHandlerProvider, boolean optimize, org.apache.axiom.om.OMFactory factory)
dataHandlerProvider - optimize - factory - public OMTextImpl(String contentID, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper builder, org.apache.axiom.om.OMFactory factory)
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 String getText() throws org.apache.axiom.om.OMException
getText in interface org.apache.axiom.om.OMTextorg.apache.axiom.om.OMExceptionpublic char[] getTextCharacters()
getTextCharacters in interface org.apache.axiom.om.OMTextpublic boolean isCharacters()
isCharacters in interface org.apache.axiom.om.OMTextpublic QName getTextAsQName() throws org.apache.axiom.om.OMException
getTextAsQName in interface org.apache.axiom.om.OMTextorg.apache.axiom.om.OMExceptionpublic org.apache.axiom.om.OMNamespace getNamespace()
getNamespace in interface org.apache.axiom.om.OMTextpublic boolean isOptimized()
isOptimized in interface org.apache.axiom.om.OMTextpublic void setOptimize(boolean value)
setOptimize in interface org.apache.axiom.om.OMTextpublic void setBinary(boolean value)
setBinary in interface org.apache.axiom.om.OMTextpublic boolean isBinary()
isBinary in interface org.apache.axiom.om.OMTextpublic Object getDataHandler()
getDataHandler in interface org.apache.axiom.om.OMTextpublic InputStream getInputStream() throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMExceptionpublic String getContentID()
getContentID in interface org.apache.axiom.om.OMTextpublic void internalSerialize(XMLStreamWriter writer, boolean cache) throws XMLStreamException
OMSerializableImplinternalSerialize in interface org.apache.axiom.om.impl.OMNodeExinternalSerialize in class OMSerializableImplXMLStreamExceptionpublic void discard()
throws org.apache.axiom.om.OMException
discard in interface org.apache.axiom.om.OMNodeorg.apache.axiom.om.OMExceptionpublic void buildWithAttachments()
OMNodeImplbuildWithAttachments in interface org.apache.axiom.om.OMNodebuildWithAttachments in class OMNodeImplpublic void setContentID(String cid)
setContentID in interface org.apache.axiom.om.OMTextCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.