public abstract class TextNodeImpl extends CharacterImpl implements org.w3c.dom.Text, OMText
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
charArray |
private java.lang.String |
contentID |
private java.lang.Object |
dataHandlerObject
Field dataHandler contains the DataHandler.
|
private boolean |
isBinary |
private java.lang.String |
mimeType |
private boolean |
optimize |
protected OMNamespace |
textNS |
textValuefactory, FIRSTCHILD, flags, HAS_PARENT, SPECIFIEDATTRIBUTE_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_NODECDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE| Constructor and Description |
|---|
TextNodeImpl(char[] value,
OMFactory factory) |
TextNodeImpl(java.lang.Object dataHandler,
boolean optimize,
OMFactory factory) |
TextNodeImpl(OMContainer parent,
javax.xml.namespace.QName text,
int nodeType,
OMFactory factory) |
TextNodeImpl(OMContainer parent,
javax.xml.namespace.QName text,
OMFactory factory) |
TextNodeImpl(OMFactory factory) |
TextNodeImpl(java.lang.String contentID,
DataHandlerProvider dataHandlerProvider,
boolean optimize,
OMFactory factory)
Constructor.
|
TextNodeImpl(java.lang.String text,
OMFactory factory)
Creates a text node with the given text required by the OMDOMFactory.
|
TextNodeImpl(java.lang.String text,
java.lang.String mimeType,
boolean optimize,
boolean isBinary,
OMFactory factory) |
TextNodeImpl(java.lang.String text,
java.lang.String mimeType,
boolean optimize,
OMFactory factory) |
TextNodeImpl(TextNodeImpl source,
OMFactory factory)
Construct TextImpl that is a copy of the source OMTextImpl
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
beforeClone(OMCloneOptions options) |
void |
buildWithAttachments()
Parses this node and builds the object structure in memory.
|
java.lang.String |
getContentID()
Gets the content id.
|
java.lang.String |
getData()
Returns the value of the data.
|
java.lang.Object |
getDataHandler()
Gets the datahandler.
|
OMNamespace |
getNamespace()
Returns the Namespace if this contains a QName Return null otherwise
|
java.lang.String |
getNodeName() |
short |
getNodeType() |
java.lang.String |
getNodeValue() |
java.lang.String |
getText()
Returns the text value of this node.
|
javax.xml.namespace.QName |
getTextAsQName() |
char[] |
getTextCharacters() |
private java.lang.String |
getTextFromProperPlace() |
private java.lang.String |
getTextString() |
java.lang.String |
getWholeText() |
void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean cache)
Serializes the node.
|
boolean |
isBinary() |
boolean |
isCharacters() |
boolean |
isElementContentWhitespace() |
boolean |
isOptimized() |
org.w3c.dom.Text |
replaceWholeText(java.lang.String content) |
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(java.lang.String cid)
Set a specific content id
|
void |
setOptimize(boolean value)
Sets the optimize flag.
|
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.
|
appendData, deleteData, getLength, insertData, replaceData, setData, substringDataappendChild, build, clone, createClone, discard, getBuilder, getChildNodes, getIParentNode, getNextOMSibling, getNextSibling, insertBefore, internalGetNextSibling, internalGetOwnerNode, internalGetPreviousSibling, internalSetNextSibling, internalSetOwnerNode, internalSetPreviousSibling, isComplete, lookupNamespaceURI, removeChild, replaceChild, setCompletecheckSameOwnerDocument, clone, cloneNode, close, compareDocumentPosition, detach, detach, getAttributes, getBaseURI, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextOMSiblingIfAvailable, getOMFactory, getOwnerDocument, getParent, getParentNode, getPrefix, getPreviousOMSibling, getPreviousSibling, getTextContent, getTextContent, getUserData, hasAttributes, hasChildNodes, hasParent, hasParent, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, isDefaultNamespace, isEqualNode, isFirstChild, isFirstChild, isSameNode, isSpecified, isSpecified, isSupported, lookupPrefix, normalize, normalize, ownerDocument, parentNode, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setNextOMSibling, setNodeValue, setOwnerDocument, setParent, setParent, setPrefix, setPreviousOMSibling, setTextContent, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendData, deleteData, getLength, insertData, replaceData, setData, substringDataappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatadetach, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumebuild, close, isComplete, serialize, serialize, serializeAndConsumeclone, getOMFactorygetNextOMSiblingIfAvailable, internalSerialize, internalSerializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSiblingprivate java.lang.String mimeType
private boolean optimize
private boolean isBinary
private java.lang.String contentID
protected OMNamespace textNS
protected char[] charArray
private java.lang.Object dataHandlerObject
public TextNodeImpl(java.lang.String text,
OMFactory factory)
text - public TextNodeImpl(TextNodeImpl source, OMFactory factory)
parent - source - TextImplfactory - public TextNodeImpl(java.lang.String text,
java.lang.String mimeType,
boolean optimize,
OMFactory factory)
public TextNodeImpl(java.lang.String text,
java.lang.String mimeType,
boolean optimize,
boolean isBinary,
OMFactory factory)
public TextNodeImpl(java.lang.Object dataHandler,
boolean optimize,
OMFactory factory)
dataHandler - optimize - To send binary content. Created progrmatically.public TextNodeImpl(java.lang.String contentID,
DataHandlerProvider dataHandlerProvider,
boolean optimize,
OMFactory factory)
contentID - dataHandlerProvider - optimize - factory - public TextNodeImpl(OMFactory factory)
ownerNode - public TextNodeImpl(char[] value,
OMFactory factory)
public TextNodeImpl(OMContainer parent, javax.xml.namespace.QName text, OMFactory factory)
public TextNodeImpl(OMContainer parent, javax.xml.namespace.QName text, int nodeType, OMFactory factory)
public org.w3c.dom.Text splitText(int offset)
throws org.w3c.dom.DOMException
splitText in interface org.w3c.dom.Textorg.w3c.dom.DOMExceptionpublic java.lang.String getNodeName()
getNodeName in interface org.w3c.dom.Nodepublic short getNodeType()
getNodeType in interface org.w3c.dom.Nodepublic boolean isOptimized()
isOptimized in interface OMTextpublic void setOptimize(boolean value)
OMTextsetOptimize in interface OMTextvalue - true to optimize binary content (usually w/MTOM)private void writeOutput(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
writer - javax.xml.stream.XMLStreamExceptionpublic java.lang.String getText()
OMTextpublic java.lang.String getData()
throws org.w3c.dom.DOMException
CharacterImplgetData in interface org.w3c.dom.CharacterDatagetData in class CharacterImplorg.w3c.dom.DOMExceptionpublic char[] getTextCharacters()
getTextCharacters in interface OMTextpublic boolean isCharacters()
isCharacters in interface OMTextprivate java.lang.String getTextFromProperPlace()
private java.lang.String getTextString()
public javax.xml.namespace.QName getTextAsQName()
getTextAsQName in interface OMTextpublic java.lang.String getNodeValue()
throws org.w3c.dom.DOMException
getNodeValue in interface org.w3c.dom.NodegetNodeValue in class NodeImplorg.w3c.dom.DOMExceptionpublic java.lang.String getContentID()
OMTextgetContentID in interface OMTextpublic java.lang.Object getDataHandler()
OMTextgetDataHandler in interface OMTextpublic void internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean cache)
throws javax.xml.stream.XMLStreamException
OMNodeExOMSerializable.serialize(XMLStreamWriter, boolean) instead.internalSerialize in interface OMNodeExinternalSerialize in class NodeImplcache - indicates if caching should be enabledjavax.xml.stream.XMLStreamExceptionpublic java.lang.String getWholeText()
getWholeText in interface org.w3c.dom.Textpublic boolean isElementContentWhitespace()
isElementContentWhitespace in interface org.w3c.dom.Textpublic org.w3c.dom.Text replaceWholeText(java.lang.String content)
throws org.w3c.dom.DOMException
replaceWholeText in interface org.w3c.dom.Textorg.w3c.dom.DOMExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void buildWithAttachments()
NodeImplbuildWithAttachments in interface OMNodebuildWithAttachments in class NodeImplpublic boolean isBinary()
public void setBinary(boolean value)
public OMNamespace getNamespace()
OMTextgetNamespace in interface OMTextpublic void setContentID(java.lang.String cid)
OMTextsetContentID in interface OMTextvoid beforeClone(OMCloneOptions options)
beforeClone in class LeafNode