|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.dom.NodeImpl
org.apache.axiom.om.impl.dom.ChildNode
org.apache.axiom.om.impl.dom.CharacterImpl
org.apache.axiom.om.impl.dom.TextImpl
public class TextImpl
Field Summary | |
---|---|
protected org.apache.axiom.om.OMAttribute |
attribute
Field attribute is used when serializing Binary stuff as MTOM optimized. |
protected char[] |
charArray
|
private java.lang.String |
contentID
|
private java.lang.Object |
dataHandlerObject
Field dataHandler contains the DataHandler. |
private boolean |
isBinary
|
protected java.lang.String |
localName
Field localName is used when serializing Binary stuff as MTOM optimized. |
private java.lang.String |
mimeType
|
protected org.apache.axiom.om.OMNamespace |
ns
Field nameSpace is used when serializing Binary stuff as MTOM optimized. |
private boolean |
optimize
|
protected org.apache.axiom.om.OMNamespace |
textNS
|
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.dom.CharacterImpl |
---|
textValue |
Fields inherited from class org.apache.axiom.om.impl.dom.ChildNode |
---|
nextSibling, parentNode, previousSibling |
Fields inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
---|
builder, done, factory, FIRSTCHILD, flags, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
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 | |
---|---|
TextImpl(DocumentImpl ownerNode,
char[] value,
org.apache.axiom.om.OMFactory factory)
|
|
TextImpl(DocumentImpl ownerNode,
java.lang.Object dataHandler,
boolean optimize,
org.apache.axiom.om.OMFactory factory)
|
|
TextImpl(DocumentImpl ownerNode,
org.apache.axiom.om.OMFactory factory)
|
|
TextImpl(DocumentImpl ownerNode,
java.lang.String value,
org.apache.axiom.om.OMFactory factory)
|
|
TextImpl(DocumentImpl ownerNode,
java.lang.String value,
java.lang.String mimeType,
boolean optimize,
org.apache.axiom.om.OMFactory factory)
|
|
TextImpl(org.apache.axiom.om.OMContainer parent,
javax.xml.namespace.QName text,
int nodeType,
org.apache.axiom.om.OMFactory factory)
|
|
TextImpl(org.apache.axiom.om.OMContainer parent,
javax.xml.namespace.QName text,
org.apache.axiom.om.OMFactory factory)
|
|
TextImpl(org.apache.axiom.om.OMContainer parent,
TextImpl source,
org.apache.axiom.om.OMFactory factory)
Construct TextImpl that is a copy of the source OMTextImpl |
|
TextImpl(java.lang.String contentID,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMXMLParserWrapper builder,
org.apache.axiom.om.OMFactory factory)
|
|
TextImpl(java.lang.String text,
org.apache.axiom.om.OMFactory factory)
Creates a text node with the given text required by the OMDOMFactory. |
|
TextImpl(java.lang.String text,
java.lang.String mimeType,
boolean optimize,
boolean isBinary,
org.apache.axiom.om.OMFactory factory)
|
|
TextImpl(java.lang.String text,
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. |
org.w3c.dom.Node |
cloneNode(boolean deep)
|
void |
discard()
|
java.lang.String |
getContentID()
|
java.lang.String |
getData()
Returns the value of the data. |
java.lang.Object |
getDataHandler()
|
java.io.InputStream |
getInputStream()
|
java.lang.String |
getLocalName()
|
org.apache.axiom.om.OMNamespace |
getNamespace()
|
java.lang.String |
getNodeName()
|
short |
getNodeType()
|
java.lang.String |
getNodeValue()
|
java.lang.String |
getText()
|
javax.xml.namespace.QName |
getTextAsQName()
|
char[] |
getTextCharacters()
|
private java.lang.String |
getTextFromProperPlace()
|
private java.lang.String |
getTextString()
|
int |
getType()
|
java.lang.String |
getWholeText()
|
void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer)
|
void |
internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
|
private void |
internalSerializeLocal(javax.xml.stream.XMLStreamWriter writer2)
|
boolean |
isBinary()
|
boolean |
isCharacters()
|
boolean |
isElementContentWhitespace()
|
boolean |
isOptimized()
|
org.w3c.dom.Text |
replaceWholeText(java.lang.String arg0)
|
(package private) static void |
serializeAttribute(org.apache.axiom.om.OMAttribute attr,
javax.xml.stream.XMLStreamWriter writer)
Method serializeAttribute. |
(package private) static void |
serializeNamespace(org.apache.axiom.om.OMNamespace namespace,
javax.xml.stream.XMLStreamWriter writer)
Method serializeNamespace. |
private void |
serializeStartpart(javax.xml.stream.XMLStreamWriter writer)
|
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)
|
void |
setType(int nodeType)
|
org.w3c.dom.Text |
splitText(int offset)
Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings. |
java.lang.String |
toString()
|
private void |
writeOutput(javax.xml.stream.XMLStreamWriter writer)
Writes the relevant output. |
Methods inherited from class org.apache.axiom.om.impl.dom.CharacterImpl |
---|
appendData, deleteData, getLength, insertData, replaceData, setData, substringData |
Methods inherited from class org.apache.axiom.om.impl.dom.ChildNode |
---|
detach, getNextOMSibling, getNextSibling, getParent, getParentNode, getPreviousOMSibling, getPreviousSibling, insertSiblingAfter, insertSiblingBefore, setNextOMSibling, setParent, setPreviousOMSibling |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.CharacterData |
---|
appendData, deleteData, getLength, insertData, replaceData, setData, substringData |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
Methods inherited from interface org.apache.axiom.om.OMNode |
---|
build, close, detach, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
Field Detail |
---|
private java.lang.String mimeType
private boolean optimize
private boolean isBinary
private java.lang.String contentID
protected org.apache.axiom.om.OMNamespace textNS
protected char[] charArray
private java.lang.Object dataHandlerObject
protected org.apache.axiom.om.OMNamespace ns
protected java.lang.String localName
protected org.apache.axiom.om.OMAttribute attribute
public static final org.apache.axiom.om.OMNamespace XOP_NS
Constructor Detail |
---|
public TextImpl(java.lang.String text, org.apache.axiom.om.OMFactory factory)
text
- public TextImpl(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 deffered parsing of
MIME messagespublic TextImpl(org.apache.axiom.om.OMContainer parent, TextImpl source, org.apache.axiom.om.OMFactory factory)
parent
- source
- TextImplfactory
- public TextImpl(java.lang.String text, java.lang.String mimeType, boolean optimize, org.apache.axiom.om.OMFactory factory)
public TextImpl(java.lang.String text, java.lang.String mimeType, boolean optimize, boolean isBinary, org.apache.axiom.om.OMFactory factory)
public TextImpl(DocumentImpl ownerNode, java.lang.Object dataHandler, boolean optimize, org.apache.axiom.om.OMFactory factory)
dataHandler
- optimize
- To send binary content. Created progrmatically.public TextImpl(DocumentImpl ownerNode, org.apache.axiom.om.OMFactory factory)
ownerNode
- public TextImpl(DocumentImpl ownerNode, java.lang.String value, org.apache.axiom.om.OMFactory factory)
ownerNode
- value
- public TextImpl(DocumentImpl ownerNode, char[] value, org.apache.axiom.om.OMFactory factory)
public TextImpl(DocumentImpl ownerNode, java.lang.String value, java.lang.String mimeType, boolean optimize, org.apache.axiom.om.OMFactory factory)
ownerNode
- value
- public TextImpl(org.apache.axiom.om.OMContainer parent, javax.xml.namespace.QName text, org.apache.axiom.om.OMFactory factory)
public TextImpl(org.apache.axiom.om.OMContainer parent, javax.xml.namespace.QName text, int nodeType, org.apache.axiom.om.OMFactory factory)
Method Detail |
---|
public org.w3c.dom.Text splitText(int offset) throws org.w3c.dom.DOMException
splitText
in interface org.w3c.dom.Text
org.w3c.dom.DOMException
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
public int getType() throws org.apache.axiom.om.OMException
getType
in interface org.apache.axiom.om.OMNode
org.apache.axiom.om.OMException
public void setType(int nodeType) throws org.apache.axiom.om.OMException
setType
in interface org.apache.axiom.om.impl.OMNodeEx
org.apache.axiom.om.OMException
public void internalSerialize(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
internalSerialize
in interface org.apache.axiom.om.impl.OMNodeEx
javax.xml.stream.XMLStreamException
public void internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
internalSerializeAndConsume
in interface org.apache.axiom.om.impl.OMNodeEx
javax.xml.stream.XMLStreamException
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 discard() throws org.apache.axiom.om.OMException
discard
in interface org.apache.axiom.om.OMNode
discard
in class ChildNode
org.apache.axiom.om.OMException
private void writeOutput(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
writer
-
javax.xml.stream.XMLStreamException
public java.lang.String getText()
getText
in interface org.apache.axiom.om.OMText
public java.lang.String getData() throws org.w3c.dom.DOMException
CharacterImpl
getData
in interface org.w3c.dom.CharacterData
getData
in class CharacterImpl
org.w3c.dom.DOMException
public char[] getTextCharacters()
getTextCharacters
in interface org.apache.axiom.om.OMText
public boolean isCharacters()
isCharacters
in interface org.apache.axiom.om.OMText
private java.lang.String getTextFromProperPlace()
private java.lang.String getTextString()
public javax.xml.namespace.QName getTextAsQName()
getTextAsQName
in interface org.apache.axiom.om.OMText
public java.lang.String getNodeValue() throws org.w3c.dom.DOMException
getNodeValue
in interface org.w3c.dom.Node
getNodeValue
in class NodeImpl
org.w3c.dom.DOMException
public java.lang.String getContentID()
getContentID
in interface org.apache.axiom.om.OMText
public java.lang.Object getDataHandler()
getDataHandler
in interface org.apache.axiom.om.OMText
public java.io.InputStream getInputStream() throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMException
private void internalSerializeLocal(javax.xml.stream.XMLStreamWriter writer2) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
private void serializeStartpart(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
static void serializeAttribute(org.apache.axiom.om.OMAttribute attr, javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
attr
- writer
-
javax.xml.stream.XMLStreamException
static void serializeNamespace(org.apache.axiom.om.OMNamespace namespace, javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
namespace
- writer
-
javax.xml.stream.XMLStreamException
public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
cloneNode
in class ChildNode
public java.lang.String getLocalName()
getLocalName
in interface org.w3c.dom.Node
getLocalName
in class NodeImpl
public java.lang.String getWholeText()
getWholeText
in interface org.w3c.dom.Text
public boolean isElementContentWhitespace()
isElementContentWhitespace
in interface org.w3c.dom.Text
public org.w3c.dom.Text replaceWholeText(java.lang.String arg0) throws org.w3c.dom.DOMException
replaceWholeText
in interface org.w3c.dom.Text
org.w3c.dom.DOMException
public java.lang.String toString()
toString
in class java.lang.Object
public void buildWithAttachments()
NodeImpl
buildWithAttachments
in interface org.apache.axiom.om.OMNode
buildWithAttachments
in class NodeImpl
public boolean isBinary()
isBinary
in interface org.apache.axiom.om.OMText
public void setBinary(boolean value)
setBinary
in interface org.apache.axiom.om.OMText
public org.apache.axiom.om.OMNamespace getNamespace()
getNamespace
in interface org.apache.axiom.om.OMText
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |