|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.llom.OMNodeImpl
org.apache.axiom.om.impl.llom.OMTextImpl
Field Summary | |
protected org.apache.axiom.om.OMAttribute |
attribute
Field attributes used when serializing Binary stuff as MTOM optimized. |
protected char[] |
charArray
|
protected boolean |
isBinary
|
protected java.lang.String |
localName
Field localName used when serializing Binary stuff as MTOM optimized. |
protected java.lang.String |
mimeType
|
protected boolean |
optimize
|
protected org.apache.axiom.om.OMNamespace |
textNS
|
protected java.lang.String |
value
|
static org.apache.axiom.om.OMNamespace |
XOP_NS
Field nameSpace used when serializing Binary stuff as MTOM optimized. |
Fields inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
builder, done, factory, nextSibling, nodeType, parent, previousSibling |
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 |
Fields inherited from interface org.apache.axiom.om.OMConstants |
ARRAY_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, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI |
Constructor Summary | |
OMTextImpl(java.lang.Object dataHandler,
boolean optimize,
org.apache.axiom.om.OMFactory factory)
|
|
OMTextImpl(java.lang.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,
javax.xml.namespace.QName text,
int nodeType,
org.apache.axiom.om.OMFactory factory)
|
|
OMTextImpl(org.apache.axiom.om.OMContainer parent,
javax.xml.namespace.QName text,
org.apache.axiom.om.OMFactory factory)
|
|
OMTextImpl(org.apache.axiom.om.OMContainer parent,
java.lang.String text,
int nodeType,
org.apache.axiom.om.OMFactory factory)
|
|
OMTextImpl(org.apache.axiom.om.OMContainer parent,
java.lang.String text,
org.apache.axiom.om.OMFactory factory)
Constructor OMTextImpl. |
|
OMTextImpl(org.apache.axiom.om.OMContainer parent,
java.lang.String s,
java.lang.String mimeType,
boolean optimize,
org.apache.axiom.om.OMFactory factory)
|
|
OMTextImpl(java.lang.String s,
int nodeType,
org.apache.axiom.om.OMFactory factory)
|
|
OMTextImpl(java.lang.String contentID,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMXMLParserWrapper builder,
org.apache.axiom.om.OMFactory factory)
|
|
OMTextImpl(java.lang.String s,
org.apache.axiom.om.OMFactory factory)
Constructor OMTextImpl. |
|
OMTextImpl(java.lang.String s,
java.lang.String mimeType,
boolean optimize,
org.apache.axiom.om.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. |
java.lang.String |
getContentID()
|
java.lang.Object |
getDataHandler()
Gets the datahandler. |
java.io.InputStream |
getInputStream()
|
java.lang.String |
getLocalName()
|
org.apache.axiom.om.OMNamespace |
getNamespace()
|
java.lang.String |
getText()
Returns the value. |
javax.xml.namespace.QName |
getTextAsQName()
Returns the value. |
char[] |
getTextCharacters()
|
void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer)
Serializes the node with caching. |
void |
internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
Serializes the node without caching. |
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 |
setOptimize(boolean value)
|
Methods inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
build, detach, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, importNode, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling, setType |
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 |
build, detach, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
Field Detail |
public static final org.apache.axiom.om.OMNamespace XOP_NS
protected java.lang.String value
protected char[] charArray
protected org.apache.axiom.om.OMNamespace textNS
protected java.lang.String mimeType
protected boolean optimize
protected boolean isBinary
protected java.lang.String localName
protected org.apache.axiom.om.OMAttribute attribute
Constructor Detail |
public OMTextImpl(java.lang.String s, org.apache.axiom.om.OMFactory factory)
s
- public OMTextImpl(java.lang.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, java.lang.String text, org.apache.axiom.om.OMFactory factory)
parent
- text
- public OMTextImpl(org.apache.axiom.om.OMContainer parent, java.lang.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, javax.xml.namespace.QName text, org.apache.axiom.om.OMFactory factory)
public OMTextImpl(org.apache.axiom.om.OMContainer parent, javax.xml.namespace.QName text, int nodeType, org.apache.axiom.om.OMFactory factory)
public OMTextImpl(java.lang.String s, java.lang.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, java.lang.String s, java.lang.String mimeType, boolean optimize, org.apache.axiom.om.OMFactory factory)
parent
- s
- - base64 encoded String representation of BinarymimeType
- of the Binarypublic OMTextImpl(java.lang.Object dataHandler, org.apache.axiom.om.OMFactory factory)
dataHandler
- To send binary optimised content Created programatically.public OMTextImpl(java.lang.Object dataHandler, boolean optimize, org.apache.axiom.om.OMFactory factory)
dataHandler
- optimize
- To send binary content. Created progrmatically.public OMTextImpl(java.lang.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.Method Detail |
public void internalSerialize(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
OMNodeImpl
internalSerialize
in interface org.apache.axiom.om.impl.OMNodeEx
internalSerialize
in class OMNodeImpl
writer
-
javax.xml.stream.XMLStreamException
public java.lang.String getText() throws org.apache.axiom.om.OMException
getText
in interface org.apache.axiom.om.OMText
org.apache.axiom.om.OMException
public char[] getTextCharacters()
getTextCharacters
in interface org.apache.axiom.om.OMText
public boolean isCharacters()
isCharacters
in interface org.apache.axiom.om.OMText
public javax.xml.namespace.QName getTextAsQName() throws org.apache.axiom.om.OMException
getTextAsQName
in interface org.apache.axiom.om.OMText
org.apache.axiom.om.OMException
public org.apache.axiom.om.OMNamespace getNamespace()
getNamespace
in interface org.apache.axiom.om.OMText
public boolean isOptimized()
isOptimized
in interface org.apache.axiom.om.OMText
public void setOptimize(boolean value)
setOptimize
in interface org.apache.axiom.om.OMText
public void setBinary(boolean value)
setBinary
in interface org.apache.axiom.om.OMText
public boolean isBinary()
isBinary
in interface org.apache.axiom.om.OMText
public java.lang.Object getDataHandler()
getDataHandler
in interface org.apache.axiom.om.OMText
public java.lang.String getLocalName()
public java.io.InputStream getInputStream() throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMException
public java.lang.String getContentID()
getContentID
in interface org.apache.axiom.om.OMText
public void internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
OMNodeImpl
internalSerializeAndConsume
in interface org.apache.axiom.om.impl.OMNodeEx
internalSerializeAndConsume
in class OMNodeImpl
writer
-
javax.xml.stream.XMLStreamException
public void discard() throws org.apache.axiom.om.OMException
discard
in interface org.apache.axiom.om.OMNode
org.apache.axiom.om.OMException
public void buildWithAttachments()
OMNodeImpl
buildWithAttachments
in interface org.apache.axiom.om.OMNode
buildWithAttachments
in class OMNodeImpl
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |