|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.llom.OMSerializableImpl
org.apache.axiom.om.impl.llom.OMNodeImpl
org.apache.axiom.om.impl.llom.OMTextImpl
public class OMTextImpl
Field Summary | |
---|---|
protected char[] |
charArray
|
protected boolean |
isBinary
|
protected String |
mimeType
|
protected boolean |
optimize
|
protected OMNamespace |
textNS
|
protected String |
value
|
static OMNamespace |
XOP_NS
Field nameSpace used when serializing Binary stuff as MTOM optimized. |
Fields inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
---|
nextSibling, nodeType, parent, previousSibling |
Fields inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl |
---|
builder, done, factory |
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 |
Constructor Summary | |
---|---|
OMTextImpl(Object dataHandler,
boolean optimize,
OMFactory factory)
|
|
OMTextImpl(Object dataHandler,
OMFactory factory)
|
|
OMTextImpl(OMContainer parent,
char[] charArray,
int nodeType,
OMFactory factory)
|
|
OMTextImpl(OMContainer parent,
OMTextImpl source,
OMFactory factory)
Construct OMTextImpl that is a copy of the source OMTextImpl |
|
OMTextImpl(OMContainer parent,
QName text,
int nodeType,
OMFactory factory)
|
|
OMTextImpl(OMContainer parent,
QName text,
OMFactory factory)
|
|
OMTextImpl(OMContainer parent,
String text,
int nodeType,
OMFactory factory)
|
|
OMTextImpl(OMContainer parent,
String text,
OMFactory factory)
Constructor OMTextImpl. |
|
OMTextImpl(OMContainer parent,
String s,
String mimeType,
boolean optimize,
OMFactory factory)
|
|
OMTextImpl(String contentID,
DataHandlerProvider dataHandlerProvider,
boolean optimize,
OMFactory factory)
Constructor. |
|
OMTextImpl(String s,
int nodeType,
OMFactory factory)
|
|
OMTextImpl(String contentID,
OMContainer parent,
OMXMLParserWrapper builder,
OMFactory factory)
|
|
OMTextImpl(String s,
OMFactory factory)
Constructor OMTextImpl. |
|
OMTextImpl(String s,
String mimeType,
boolean optimize,
OMFactory factory)
|
Method Summary | |
---|---|
void |
buildWithAttachments()
Parses this node and builds the object structure in memory. |
void |
discard()
A slightly different implementation of the discard method. |
String |
getContentID()
Gets the content id. |
Object |
getDataHandler()
Gets the datahandler. |
InputStream |
getInputStream()
|
OMNamespace |
getNamespace()
Returns the Namespace if this contains a QName Return null otherwise |
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)
Set a specific content id |
void |
setOptimize(boolean value)
Sets the optimize flag. |
Methods inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
---|
detach, getNextOMSibling, getNextOMSiblingIfAvailable, getParent, getPreviousOMSibling, getType, importNode, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling, setType |
Methods inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl |
---|
build, close, getOMFactory, isComplete, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.axiom.om.OMNode |
---|
detach, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
Methods inherited from interface org.apache.axiom.om.OMSerializable |
---|
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume |
Field Detail |
---|
public static final OMNamespace XOP_NS
protected String value
protected char[] charArray
protected OMNamespace textNS
protected String mimeType
protected boolean optimize
protected boolean isBinary
Constructor Detail |
---|
public OMTextImpl(String s, OMFactory factory)
s
- public OMTextImpl(String s, int nodeType, OMFactory factory)
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)
parent
- text
- public OMTextImpl(OMContainer parent, OMTextImpl source, OMFactory factory)
parent
- source
- OMTextImplfactory
- 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, OMFactory factory)
public OMTextImpl(OMContainer parent, QName text, int nodeType, OMFactory factory)
public OMTextImpl(String s, String mimeType, boolean optimize, OMFactory factory)
s
- - base64 encoded String representation of BinarymimeType
- of the Binarypublic OMTextImpl(OMContainer parent, String s, String mimeType, boolean optimize, OMFactory factory)
parent
- s
- - base64 encoded String representation of BinarymimeType
- of the Binarypublic OMTextImpl(Object dataHandler, OMFactory factory)
dataHandler
- To send binary optimised content Created programatically.public OMTextImpl(Object dataHandler, boolean optimize, OMFactory factory)
dataHandler
- optimize
- To send binary content. Created progrmatically.public OMTextImpl(String contentID, DataHandlerProvider dataHandlerProvider, boolean optimize, OMFactory factory)
dataHandlerProvider
- optimize
- factory
- public OMTextImpl(String contentID, OMContainer parent, OMXMLParserWrapper builder, 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.Method Detail |
---|
public String getText() throws OMException
getText
in interface OMText
OMException
public char[] getTextCharacters()
getTextCharacters
in interface OMText
public boolean isCharacters()
isCharacters
in interface OMText
public QName getTextAsQName() throws OMException
getTextAsQName
in interface OMText
OMException
public OMNamespace getNamespace()
OMText
getNamespace
in interface OMText
public boolean isOptimized()
isOptimized
in interface OMText
public void setOptimize(boolean value)
OMText
setOptimize
in interface OMText
value
- true to optimize binary content (usually w/MTOM)public void setBinary(boolean value)
setBinary
in interface OMText
value
- true if the content is binarypublic boolean isBinary()
isBinary
in interface OMText
public Object getDataHandler()
getDataHandler
in interface OMText
public InputStream getInputStream() throws OMException
OMException
public String getContentID()
OMText
getContentID
in interface OMText
public void internalSerialize(XMLStreamWriter writer, boolean cache) throws XMLStreamException
OMSerializableImpl
internalSerialize
in interface OMNodeEx
internalSerialize
in class OMSerializableImpl
cache
- indicates if caching should be enabled
XMLStreamException
public void discard() throws OMException
discard
in interface OMNode
OMException
public void buildWithAttachments()
OMNodeImpl
buildWithAttachments
in interface OMNode
buildWithAttachments
in class OMNodeImpl
public void setContentID(String cid)
OMText
setContentID
in interface OMText
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |