|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.openfoundation.xml.dom.XPNode com.plumtree.openfoundation.xml.dom.XPCharacterData
public abstract class XPCharacterData
The XPCharacterData
class is a wrapper for objects implementing
org.w3c.dom.CharacterData
interface.
Please refer to CharacterData (Java 2 Platform SE v1.4.2)
for detail information.
Field Summary |
---|
Fields inherited from class com.plumtree.openfoundation.xml.dom.XPNode |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
---|---|
XPCharacterData(org.w3c.dom.CharacterData cData)
Creates a new XPCharacterData object. |
Method Summary | |
---|---|
void |
AppendData(java.lang.String arg)
Append the string to the end of the character data of the node. |
void |
DeleteData(int offset,
int count)
Remove a range of 16-bit units from the node. |
java.lang.String |
GetData()
The character data of the node. |
int |
GetLength()
The number of 16-bit units that are available through data
and the substringData method below. |
org.w3c.dom.Node |
GetUnderlyingObject()
Retrieve the underlying Node object. |
void |
InsertData(int offset,
java.lang.String arg)
Insert a string at the specified 16-bit unit offset . |
void |
ReplaceData(int offset,
int count,
java.lang.String arg)
Replace the characters starting at the specified 16-bit unit offset
with the specified string. |
void |
SetData(java.lang.String data)
Set the character data of the node. |
java.lang.String |
SubStringData(int offset,
int count)
Extracts a range of data from the node. |
Methods inherited from class com.plumtree.openfoundation.xml.dom.XPNode |
---|
AppendChild, CloneNode, GetAttributes, GetChildNodes, GetFirstChild, GetLastChild, GetLocalName, GetNamespaceURI, GetNextSibling, GetNodeName, GetNodeType, GetNodeValue, GetOwnerDocument, GetParentNode, GetPrefix, GetPreviousSibling, HasAttributes, HasChildNodes, InsertBefore, IsAttributeNode, IsCDATASectionNode, IsCommentNode, IsDocumentFragmentNode, IsDocumentNode, IsDocumentTypeNode, IsElementNode, IsProcessingInstructionNode, IsSupported, IsTextNode, Normalize, RemoveChild, ReplaceChild, SetNodeValue, SetPrefix, StoreNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPCharacterData(org.w3c.dom.CharacterData cData)
cData
- - underlying characterdata objMethod Detail |
---|
public void AppendData(java.lang.String arg)
arg
- - string to appendpublic void DeleteData(int offset, int count)
offset
- - offset from which to start removingcount
- - number of 16-bit units to delete.public java.lang.String GetData()
public int GetLength()
data
and the substringData
method below.
public org.w3c.dom.Node GetUnderlyingObject()
Node
object.
GetUnderlyingObject
in class XPNode
CharacterData
object cast to Node
.public void InsertData(int offset, java.lang.String arg)
offset
.
offset
- - character offset at which to insert.arg
- - DOMString to insert.public void ReplaceData(int offset, int count, java.lang.String arg)
offset
with the specified string.
offset
- - offset from which to start replacing.count
- - number of 16-bit units to replacearg
- - DOMString with which the range must be replaced.public void SetData(java.lang.String data)
data
- - data to be setpublic java.lang.String SubStringData(int offset, int count)
offset
- - offset of substring to extract.count
- - number of 16-bit units to extract.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |