|
|||||||||||
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 serializing Binary stuff as MTOM optimized. |
protected boolean |
isBinary
|
protected String |
localName
Field localName used when serializing Binary stuff as MTOM optimized. |
protected String |
mimeType
|
protected OMNamespace |
ns
Field nameSpace used when serializing Binary stuff as MTOM optimized. |
protected boolean |
optimize
|
protected 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, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI |
Constructor Summary | |
OMTextImpl(Object dataHandler)
|
|
OMTextImpl(Object dataHandler,
boolean optimize)
|
|
OMTextImpl(OMElement parent,
String text)
Constructor OMTextImpl. |
|
OMTextImpl(OMElement parent,
String text,
int nodeType)
|
|
OMTextImpl(OMElement parent,
String s,
String mimeType,
boolean optimize)
|
|
OMTextImpl(String s)
Constructor OMTextImpl. |
|
OMTextImpl(String s,
int nodeType)
|
|
OMTextImpl(String contentID,
OMElement parent,
OMXMLParserWrapper builder)
|
|
OMTextImpl(String s,
String mimeType,
boolean optimize)
|
Method Summary | |
void |
discard()
A slightly different implementation of the discard method. |
String |
getContentID()
Gets the content id. |
Object |
getDataHandler()
Gets the datahandler. |
InputStream |
getInputStream()
|
String |
getLocalName()
|
String |
getText()
Returns the value. |
boolean |
isComplete()
Indicates whether parser has parsed this information item completely or not. |
boolean |
isOptimized()
|
void |
serialize(OMOutputImpl omOutput)
Serializes the node with caching. |
void |
serializeAndConsume(OMOutputImpl omOutput)
Serializes the node without caching. |
void |
setOptimize(boolean value)
Sets the optimize flag. |
Methods inherited from class org.apache.axis2.om.impl.llom.OMNodeImpl |
build, detach, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, 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.axis2.om.OMNode |
build, detach, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
Field Detail |
protected String value
protected String mimeType
protected boolean optimize
protected boolean isBinary
protected OMNamespace ns
protected String localName
protected OMAttribute attribute
Constructor Detail |
public OMTextImpl(String s)
s
- public OMTextImpl(String s, int nodeType)
s
- nodeType
- - OMText can handle CHARACTERS, SPACES, CDATA and ENTITY REFERENCES.
Constants for this can be found in OMNode.public OMTextImpl(OMElement parent, String text)
parent
- text
- public OMTextImpl(OMElement parent, String text, int nodeType)
public OMTextImpl(String s, String mimeType, boolean optimize)
s
- - base64 encoded String representation of BinarymimeType
- of the Binarypublic OMTextImpl(OMElement parent, String s, String mimeType, boolean optimize)
parent
- s
- -
base64 encoded String representation of BinarymimeType
- of the Binarypublic OMTextImpl(Object dataHandler)
dataHandler
- To send binary optimised content Created programatically.public OMTextImpl(Object dataHandler, boolean optimize)
dataHandler
- optimize
- To send binary content. Created progrmatically.public OMTextImpl(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
deferred parsing of MIME messages.Method Detail |
public void serialize(OMOutputImpl omOutput) throws XMLStreamException
OMNodeImpl
serialize
in interface OMNodeEx
serialize
in class OMNodeImpl
omOutput
-
XMLStreamException
OMNodeImpl.serialize(org.apache.axis2.om.impl.OMOutputImpl)
public 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 Object getDataHandler()
getDataHandler
in interface OMText
public String getLocalName()
public InputStream getInputStream() throws OMException
OMException
public String getContentID()
OMText
getContentID
in interface OMText
public boolean isComplete()
OMNode
isComplete
in interface OMNode
isComplete
in class OMNodeImpl
public void serializeAndConsume(OMOutputImpl omOutput) throws XMLStreamException
OMNodeImpl
serializeAndConsume
in interface OMNodeEx
serializeAndConsume
in class OMNodeImpl
omOutput
-
XMLStreamException
OMNodeImpl.serializeAndConsume(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 |