public abstract class TextNodeImpl extends CharacterImpl implements Text, OMText
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
charArray |
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(Object dataHandler,
boolean optimize,
OMFactory factory) |
TextNodeImpl(OMContainer parent,
QName text,
int nodeType,
OMFactory factory) |
TextNodeImpl(OMContainer parent,
QName text,
OMFactory factory) |
TextNodeImpl(OMFactory factory) |
TextNodeImpl(String contentID,
DataHandlerProvider dataHandlerProvider,
boolean optimize,
OMFactory factory)
Constructor.
|
TextNodeImpl(String text,
OMFactory factory)
Creates a text node with the given text required by the OMDOMFactory.
|
TextNodeImpl(String text,
String mimeType,
boolean optimize,
boolean isBinary,
OMFactory factory) |
TextNodeImpl(String text,
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 |
|---|---|
void |
buildWithAttachments()
Parses this node and builds the object structure in memory.
|
String |
getContentID()
Gets the content id.
|
String |
getData()
Returns the value of the data.
|
Object |
getDataHandler()
Gets the datahandler.
|
OMNamespace |
getNamespace()
Returns the Namespace if this contains a QName Return null otherwise
|
String |
getNodeName() |
short |
getNodeType() |
String |
getNodeValue() |
String |
getText()
Returns the text value of this node.
|
QName |
getTextAsQName() |
char[] |
getTextCharacters() |
String |
getWholeText() |
void |
internalSerialize(XMLStreamWriter writer,
boolean cache)
Serializes the node.
|
boolean |
isBinary() |
boolean |
isCharacters() |
boolean |
isElementContentWhitespace() |
boolean |
isOptimized() |
Text |
replaceWholeText(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(String cid)
Set a specific content id
|
void |
setOptimize(boolean value)
Sets the optimize flag.
|
Text |
splitText(int offset)
Breaks this node into two nodes at the specified offset, keeping both in the tree as
siblings.
|
String |
toString() |
appendData, deleteData, getLength, insertData, replaceData, setData, substringDataappendChild, build, discard, getBuilder, getChildNodes, getIParentNode, getNextOMSibling, getNextSibling, insertBefore, isComplete, lookupNamespaceURI, removeChild, replaceChild, setCompleteclone, cloneNode, close, compareDocumentPosition, detach, getAttributes, getBaseURI, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextOMSiblingIfAvailable, getOMFactory, getOwnerDocument, getParent, getParentNode, getPrefix, getPreviousOMSibling, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupPrefix, normalize, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setNextOMSibling, setNodeValue, 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, setPreviousOMSiblingprotected OMNamespace textNS
protected char[] charArray
public TextNodeImpl(String text, OMFactory factory)
text - public TextNodeImpl(TextNodeImpl source, OMFactory factory)
parent - source - TextImplfactory - public TextNodeImpl(String text, String mimeType, boolean optimize, boolean isBinary, OMFactory factory)
public TextNodeImpl(Object dataHandler, boolean optimize, OMFactory factory)
dataHandler - optimize - To send binary content. Created progrmatically.public TextNodeImpl(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, QName text, OMFactory factory)
public TextNodeImpl(OMContainer parent, QName text, int nodeType, OMFactory factory)
public Text splitText(int offset) throws DOMException
splitText in interface TextDOMExceptionpublic String getNodeName()
getNodeName in interface Nodepublic short getNodeType()
getNodeType in interface Nodepublic boolean isOptimized()
isOptimized in interface OMTextpublic void setOptimize(boolean value)
OMTextsetOptimize in interface OMTextvalue - true to optimize binary content (usually w/MTOM)public String getText()
OMTextpublic String getData() throws DOMException
CharacterImplgetData in interface CharacterDatagetData in class CharacterImplDOMExceptionpublic char[] getTextCharacters()
getTextCharacters in interface OMTextpublic boolean isCharacters()
isCharacters in interface OMTextpublic QName getTextAsQName()
getTextAsQName in interface OMTextpublic String getNodeValue() throws DOMException
getNodeValue in interface NodegetNodeValue in class NodeImplDOMExceptionpublic String getContentID()
OMTextgetContentID in interface OMTextpublic Object getDataHandler()
OMTextgetDataHandler in interface OMTextpublic void internalSerialize(XMLStreamWriter writer, boolean cache) throws XMLStreamException
OMNodeExOMSerializable.serialize(XMLStreamWriter, boolean) instead.internalSerialize in interface OMNodeExinternalSerialize in class NodeImplcache - indicates if caching should be enabledXMLStreamExceptionpublic String getWholeText()
getWholeText in interface Textpublic boolean isElementContentWhitespace()
isElementContentWhitespace in interface Textpublic Text replaceWholeText(String content) throws DOMException
replaceWholeText in interface TextDOMExceptionpublic 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(String cid)
OMTextsetContentID in interface OMTextCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.