|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
oracle.xml.parser.v2.XMLText
This class implements the DOM Text interface.
Text
,
NodeFactory
,
DOMParser.setNodeFactory(oracle.xml.parser.v2.NodeFactory)
, Serialized FormFields inherited from interface oracle.xml.comp.CXMLConstants |
ATTR_DEF,
ATTR_TOKEN,
ATTRDECL_DEF,
CDATA_DEF,
CHAR_DEF,
COMMENT_DEF,
CXML_VERSION,
cXMLFILE,
cXMLFILE_LEN,
DEBUG,
DTD_DEF,
ELEMENTDECL_DEF,
END,
ENTITY_DEF,
ENTITYREF_DEF,
META_ID_MAX,
names,
NOTATION_DEF,
NS_DEF,
NULLSTR,
PI_DEF,
PREFIX_DEF,
TAG_DEF,
TAG_TOKEN,
TOKEN_ONLY,
XMLDECL_DEF |
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 |
Constructor Summary |
XMLText()
Deprecated. use createTextNode(String) of XMLDocument |
XMLText(java.lang.String text)
Deprecated. use createTextNode(String) method of XMLDocument |
Method Summary |
Type | Method |
---|---|
void |
addText(char[] ch,
int start,
int length)
Adds text to the data of the text node, similar to appendData |
java.lang.String |
getData()
The character data of the node that implements this interface. |
java.lang.String |
getNodeName()
Gets the name of the XMLText |
short |
getNodeType()
Gets a code representing the type of the underlying object |
java.lang.String |
getNodeValue()
Gets a value of this text node |
boolean |
isWhiteSpaceNode()
Check is the text node is a whitespace node |
void |
readExternal(java.io.ObjectInput inArg)
This method reads the information written in the compressed stream by writeExternal method and restores the object correspondingly. |
void |
readExternal(oracle.xml.io.XMLObjectInput in,
oracle.xml.comp.CXMLContext cxmlContext)
This method reads the information written in the compressed stream by writeExternal method and restores the object correspondingly. |
void |
reportSAXEvents(ContentHandler cntHandler)
Report SAX Events from a DOM Tree |
Text |
splitText(int offset)
Breaks Text node into two Text nodes at specified offset,
so they are both siblings, and the node only contains content up to the
offset. |
void |
writeExternal(java.io.ObjectOutput outArg)
This method saves the state of the object by creating a binary compressed stream with information about this object. |
Constructor Detail |
public XMLText()
public XMLText(java.lang.String text)
Method Detail |
public Text splitText(int offset) throws DOMException
Text
node into two Text nodes at specified offset,
so they are both siblings, and the node only contains content up to the
offset. New node inserted as next sibling contains all content at and
after the offset point.offset
- Offset at which to split, starting from 0Text
nodedata
.
public java.lang.String getNodeName()
public short getNodeType()
public java.lang.String getNodeValue() throws DOMException
public boolean isWhiteSpaceNode()
public void addText(char[] ch, int start, int length)
ch
- char array to be appendedstart
- start indexlength
- length of the char arraypublic java.lang.String getData() throws DOMException
Text
node. However,
implementation limits may mean that the entirety of a node's data may
not fit into a single DOMString
. In such cases, the user
may call substringData
to retrieve the data in
appropriately sized pieces.DOMString
variable on the implementation
platform.public void reportSAXEvents(ContentHandler cntHandler) throws SAXException
ContentHandler
- cntHandlerpublic void writeExternal(java.io.ObjectOutput outArg) throws java.io.IOException
out
- The ObjectOutput stream used to write the compressed
stream.public void readExternal(java.io.ObjectInput inArg) throws java.io.IOException, java.lang.ClassNotFoundException
in
- The ObjectInput stream used for reading the compressed
streampublic void readExternal(oracle.xml.io.XMLObjectInput in, oracle.xml.comp.CXMLContext cxmlContext) throws java.io.IOException, java.lang.ClassNotFoundException
in
- The XMLObjectInput stream used for reading the compressed
stream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |