|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.om.impl.dom.NodeImpl
org.apache.axis2.om.impl.dom.ChildNode
org.apache.axis2.om.impl.dom.CharacterImpl
org.apache.axis2.om.impl.dom.TextImpl
Field Summary | |
protected OMAttribute |
attribute
Field attribute is used when serializing Binary stuff as MTOM optimized. |
protected String |
localName
Field localName is used when serializing Binary stuff as MTOM optimized. |
protected OMNamespace |
ns
Field nameSpace is used when serializing Binary stuff as MTOM optimized. |
Fields inherited from class org.apache.axis2.om.impl.dom.CharacterImpl |
textValue |
Fields inherited from class org.apache.axis2.om.impl.dom.ChildNode |
nextSibling, parentNode, previousSibling |
Fields inherited from class org.apache.axis2.om.impl.dom.NodeImpl |
builder, done, FIRSTCHILD, flags, nodeType, 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_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
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 |
Constructor Summary | |
TextImpl(DocumentImpl ownerNode)
|
|
TextImpl(DocumentImpl ownerNode,
String value)
|
|
TextImpl(DocumentImpl ownerNode,
String value,
String mimeType,
boolean optimize)
|
|
TextImpl(Object dataHandler,
boolean optimize)
|
|
TextImpl(String text)
Creates a text node with the given text required by the OMDOMFactory. |
|
TextImpl(String contentID,
OMElement parent,
OMXMLParserWrapper builder)
|
|
TextImpl(String text,
String mimeType,
boolean optimize)
|
|
TextImpl(String text,
String mimeType,
boolean optimize,
boolean isBinary)
|
Method Summary | |
Node |
cloneNode(boolean deep)
|
void |
discard()
Discards a node. |
String |
getContentID()
Gets the content id. |
Object |
getDataHandler()
Gets the datahandler. |
InputStream |
getInputStream()
|
String |
getNodeName()
|
short |
getNodeType()
|
String |
getNodeValue()
|
String |
getText()
Returns the text value of this node. |
int |
getType()
Returns the type of node. |
String |
getWholeText()
|
boolean |
isElementContentWhitespace()
|
boolean |
isOptimized()
|
Text |
replaceWholeText(String arg0)
|
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. |
void |
setType(int nodeType)
|
Text |
splitText(int offset)
Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings. |
String |
toString()
|
Methods inherited from class org.apache.axis2.om.impl.dom.CharacterImpl |
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData |
Methods inherited from class org.apache.axis2.om.impl.dom.ChildNode |
detach, getNextOMSibling, getNextSibling, getParent, getParentNode, getPreviousOMSibling, getPreviousSibling, insertSiblingAfter, insertSiblingBefore, setNextOMSibling, setParent, setPreviousOMSibling |
Methods inherited from class org.apache.axis2.om.impl.dom.NodeImpl |
appendChild, build, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeWithCache, setComplete, setNodeValue, setOwnerDocument, setPrefix, setTextContent, setUserData |
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, getData, getLength, insertData, replaceData, setData, substringData |
Methods inherited from interface org.w3c.dom.Node |
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from interface org.apache.axis2.om.OMNode |
build, detach, getNextOMSibling, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
Field Detail |
protected OMNamespace ns
protected String localName
protected OMAttribute attribute
Constructor Detail |
public TextImpl(String text)
text
- public TextImpl(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 messagespublic TextImpl(String text, String mimeType, boolean optimize)
public TextImpl(String text, String mimeType, boolean optimize, boolean isBinary)
public TextImpl(Object dataHandler, boolean optimize)
dataHandler
- optimize
- To send binary content. Created progrmatically.public TextImpl(DocumentImpl ownerNode)
ownerNode
- public TextImpl(DocumentImpl ownerNode, String value)
ownerNode
- value
- public TextImpl(DocumentImpl ownerNode, String value, String mimeType, boolean optimize)
ownerNode
- value
- Method Detail |
public Text splitText(int offset) throws DOMException
splitText
in interface Text
DOMException
public String getNodeName()
getNodeName
in interface Node
public short getNodeType()
getNodeType
in interface Node
public int getType() throws OMException
OMNode
getType
in interface OMNode
OMNode.ELEMENT_NODE
, OMNode.TEXT_NODE
, OMNode.CDATA_SECTION_NODE
, OMNode.COMMENT_NODE
,
OMNode.DTD_NODE
, OMNode.PI_NODE
, OMNode.ENTITY_REFERENCE_NODE
, OMNode.SPACE_NODE
,
or OMNode.TEXT_NODE
.
OMException
public void setType(int nodeType) throws OMException
setType
in interface OMNodeEx
OMException
public void serialize(OMOutputImpl omOutput) throws XMLStreamException
OMNodeEx
serialize
in interface OMNodeEx
omOutput
-
XMLStreamException
OMNodeEx.serialize(org.apache.axis2.om.impl.OMOutputImpl)
public void serializeAndConsume(OMOutputImpl omOutput) throws XMLStreamException
OMNodeEx
serializeAndConsume
in interface OMNodeEx
omOutput
-
XMLStreamException
public boolean isOptimized()
isOptimized
in interface OMText
public void setOptimize(boolean value)
OMText
setOptimize
in interface OMText
value
- public void discard() throws OMException
OMNode
Discard goes to the parser level and if the element is not completely built, then it will be completely skipped at the parser level.
discard
in interface OMNode
discard
in class ChildNode
OMException
public String getText()
OMText
getText
in interface OMText
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
getNodeValue
in class NodeImpl
DOMException
public String getContentID()
OMText
getContentID
in interface OMText
public Object getDataHandler()
OMText
getDataHandler
in interface OMText
public InputStream getInputStream() throws OMException
OMException
public Node cloneNode(boolean deep)
cloneNode
in interface Node
cloneNode
in class ChildNode
public String getWholeText()
public boolean isElementContentWhitespace()
public Text replaceWholeText(String arg0) throws DOMException
DOMException
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |