|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.om.impl.llom.OMNodeImpl
org.apache.axis2.om.impl.llom.OMTextImpl
Field Summary | |
protected OMAttribute |
attribute
Field attributes used when serialising Binary stuff as MTOM optimised |
protected boolean |
isBinary
|
protected java.lang.String |
localName
Field localName used when serialising Binary stuff as MTOM optimised |
protected java.lang.String |
mimeType
|
protected OMNamespace |
ns
Field nameSpace used when serialising Binary stuff as MTOM optimised |
protected boolean |
optimize
|
protected java.lang.String |
value
|
Fields inherited from class org.apache.axis2.om.impl.llom.OMNodeImpl |
builder, done, nextSibling, nodeType, parent, previousSibling |
Fields inherited from interface org.apache.axis2.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.axis2.om.OMConstants |
ARRAY_ITEM_LOCALNAME, ARRAY_ITEM_NS_PREFIX, ARRAY_ITEM_NSURI, ARRAY_ITEM_QNAME, DEFAULT_CHAR_SET_ENCODING, DEFAULT_XML_VERSION, PULL_TYPE_BUILDER, PUSH_TYPE_BUILDER |
Constructor Summary | |
OMTextImpl(java.lang.Object dataHandler)
|
|
OMTextImpl(java.lang.Object dataHandler,
boolean optimize)
|
|
OMTextImpl(OMElement parent,
java.lang.String text)
Constructor OMTextImpl |
|
OMTextImpl(OMElement parent,
java.lang.String s,
java.lang.String mimeType,
boolean optimize)
|
|
OMTextImpl(java.lang.String s)
Constructor OMTextImpl |
|
OMTextImpl(java.lang.String s,
int nodeType)
|
|
OMTextImpl(java.lang.String contentID,
OMElement parent,
OMXMLParserWrapper builder)
|
|
OMTextImpl(java.lang.String s,
java.lang.String mimeType,
boolean optimize)
|
Method Summary | |
void |
discard()
Slightly different implementation of the discard method |
java.lang.String |
getContentID()
get the content id |
java.lang.Object |
getDataHandler()
To get the datahandler |
java.io.InputStream |
getInputStream()
|
java.lang.String |
getLocalName()
|
java.lang.String |
getText()
Returns the value |
boolean |
isComplete()
this will indicate whether parser has parsed this information item completely or not. |
boolean |
isOptimized()
|
void |
serialize(OMOutputImpl omOutput)
|
void |
serializeWithCache(OMOutputImpl omOutput)
|
void |
setOptimize(boolean value)
set the optimize flag |
Methods inherited from class org.apache.axis2.om.impl.llom.OMNodeImpl |
build, detach, getNextSibling, getParent, getPreviousSibling, getType, insertSiblingAfter, insertSiblingBefore, serialize, serializeWithCache, setComplete, setNextSibling, setParent, setPreviousSibling, 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.axis2.om.OMNode |
build, detach, getNextSibling, getParent, getPreviousSibling, getType, insertSiblingAfter, insertSiblingBefore, serialize, serializeWithCache |
Field Detail |
protected java.lang.String value
protected java.lang.String mimeType
protected boolean optimize
protected boolean isBinary
protected OMNamespace ns
protected java.lang.String localName
protected OMAttribute attribute
Constructor Detail |
public OMTextImpl(java.lang.String s)
s
- public OMTextImpl(java.lang.String s, int nodeType)
s
- nodeType
- - OMText can handler CHARACTERS, SPACES, CDATA and ENTITY REFERENCES.
Constants for this can be found in OMNode.public OMTextImpl(OMElement parent, java.lang.String text)
parent
- text
- public OMTextImpl(java.lang.String s, java.lang.String mimeType, boolean optimize)
s
- -
base64 encoded String representation of BinarymimeType
- of the Binarypublic OMTextImpl(OMElement parent, java.lang.String s, java.lang.String mimeType, boolean optimize)
parent
- s
- -
base64 encoded String representation of BinarymimeType
- of the Binarypublic OMTextImpl(java.lang.Object dataHandler)
dataHandler
- To send binary optimised content Created programatically.public OMTextImpl(java.lang.Object dataHandler, boolean optimize)
dataHandler
- optimize
- To send binary content. Created progrmatically.public OMTextImpl(java.lang.String contentID, OMElement parent, OMXMLParserWrapper builder)
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
deffered parsing of MIME messagesMethod Detail |
public void serializeWithCache(OMOutputImpl omOutput) throws XMLStreamException
serializeWithCache
in class OMNodeImpl
omOutput
-
XMLStreamException
#serializeWithCache(org.apache.axis2.om.impl.OMOutputImpl)
public java.lang.String getText() throws OMException
getText
in interface OMText
OMException
public boolean isOptimized()
isOptimized
in interface OMText
public void setOptimize(boolean value)
OMText
setOptimize
in interface OMText
value
- public java.lang.Object getDataHandler()
getDataHandler
in interface OMText
public java.lang.String getLocalName()
public java.io.InputStream getInputStream() throws OMException
OMException
public java.lang.String getContentID()
OMText
getContentID
in interface OMText
public boolean isComplete()
OMNode
isComplete
in interface OMNode
isComplete
in class OMNodeImpl
public void serialize(OMOutputImpl omOutput) throws XMLStreamException
serialize
in class OMNodeImpl
omOutput
-
XMLStreamException
#serialize(org.apache.axis2.om.impl.OMOutputImpl)
public void discard() throws OMException
discard
in interface OMNode
OMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |