|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectelectric.xml.Node
electric.xml.Child
electric.xml.CharacterData
CharacterData.
| Field Summary | |
protected java.lang.String |
string
|
| Fields inherited from class electric.xml.Child |
parent |
| Fields inherited from class electric.xml.Node |
list, next, prev |
| 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 electric.xml.IXMLConstants |
ATTLIST_START, ATTLIST_STOP, CDATA, CDATA_START, CDATA_STOP, CLOSE_TAG, COLON, COMMENT_START, COMMENT_STOP, DOCTYPE_START, DOCTYPE_STOP, ELEMENTDECL_START, ELEMENTDECL_STOP, ENCODING, ENTITYDECL_START, ENTITYDECL_STOP, ID, ID_CASE, INSTRUCTION_START, INSTRUCTION_STOP, NEGATIVE_INFINITY, NOT_A_NUMBER, NOTATIONDECL_START, NOTATIONDECL_STOP, NULL, OPEN_TAG, POSITIVE_INFINITY, PUBLIC, SPECIALS, STANDALONE, SUBSTITUTES, SYSTEM, UNDEFINED, VERSION, XML, XML_NAMESPACE, XMLDECL_START, XMLDECL_STOP, XMLNS, XMLNS_NAMESPACE |
| Fields inherited from interface electric.xml.IDOMConstants |
CDATA_SECTION_NAME, COMMENT_NAME, CORE, DOCUMENT_FRAGMENT_NAME, DOCUMENT_NAME, HIERARCHY_REQUEST_ERR, TEXT_NAME |
| Constructor Summary | |
CharacterData(Parent parent)
Construct a CharacterData with the specified parent. |
|
CharacterData(java.lang.String string)
Construct a CharacterData with the specified string. |
|
| Method Summary | |
void |
appendData(java.lang.String arg)
Append the string to the end of the character data of this node. |
void |
deleteData(int offset,
int count)
Remove a range of characters from the node. |
java.lang.String |
getData()
Return my string. |
int |
getLength()
Return the length of the string. |
java.lang.String |
getNodeValue()
Return the string. |
void |
insertData(int offset,
java.lang.String arg)
Insert a string at the specified offset. |
void |
replaceData(int offset,
int count,
java.lang.String arg)
Replace the characters starting at the specified offset with the specified string. |
void |
setData(java.lang.String string)
Set the new string. |
void |
setNodeValue(java.lang.String nodeValue)
Set the string to the specified value. |
int |
size()
|
java.lang.String |
substringData(int offset,
int count)
Return the specified substring. |
| Methods inherited from class electric.xml.Child |
clone, cloneNode, getByteArray, getByteArray, getByteArray, getBytes, getBytes, getBytes, getDocument, getNextSiblingChild, getOwnerDocument, getParent, getParentNode, getPreviousSiblingChild, getRoot, replaceWith, setNextSiblingChild, setParent, setPreviousSiblingChild, toString, toString, write, write, write |
| Methods inherited from class electric.xml.Node |
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNextSiblingNode, getNode, getNode, getNodeName, getNodes, getNodeType, getPrefix, getPreviousSibling, getPreviousSiblingNode, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, read, remove, removeChild, replaceChild, setNextSiblingNode, setPrefix, setPreviousSiblingNode, write |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setPrefix |
| Field Detail |
protected java.lang.String string
| Constructor Detail |
public CharacterData(Parent parent)
parent - The parent.public CharacterData(java.lang.String string)
string - The string.| Method Detail |
public int size()
size in class Nodepublic java.lang.String getNodeValue()
getNodeValue in interface org.w3c.dom.NodegetNodeValue in class Nodepublic void setNodeValue(java.lang.String nodeValue)
setNodeValue in interface org.w3c.dom.NodesetNodeValue in class NodenodeValue - The new string.public java.lang.String getData()
getData in interface org.w3c.dom.CharacterDatapublic int getLength()
getLength in interface org.w3c.dom.CharacterDatapublic void setData(java.lang.String string)
setData in interface org.w3c.dom.CharacterDatastring - The new string.public void appendData(java.lang.String arg)
appendData in interface org.w3c.dom.CharacterDataarg - The string to append.
public void deleteData(int offset,
int count)
throws org.w3c.dom.DOMException
deleteData in interface org.w3c.dom.CharacterDataoffset - The offset from which to start removing.count - The number of characters to delete. If the sum of offset
and count exceeds length then all characters units from offset to the end
of the data are deleted.
org.w3c.dom.DOMException - If the specified offset is negative or greater than
the number of characters, or if the specified count is negative.
public void insertData(int offset,
java.lang.String arg)
throws org.w3c.dom.DOMException
insertData in interface org.w3c.dom.CharacterDataoffset - The character offset at which to insert.arg - The string to insert.
org.w3c.dom.DOMException - If the specified offset is negative or greater
than the length of the data.
public void replaceData(int offset,
int count,
java.lang.String arg)
throws org.w3c.dom.DOMException
replaceData in interface org.w3c.dom.CharacterDataoffset - The offset from which to start replacing.count - The number of characters to replace. If the sum of offset and
count exceeds length, then all characters to the end of the data are
replaced; (i.e., the effect is the same as a remove method call with the
same range, followed by an append method invocation).arg - The string with which the range must be replaced.
org.w3c.dom.DOMException - If the specified offset is negative or greater than
the number of characters in data, or if the specified count is negative.
public java.lang.String substringData(int offset,
int count)
throws org.w3c.dom.DOMException
substringData in interface org.w3c.dom.CharacterDataoffset - The offset of substring to extract.count - The number of characters to extract.
org.w3c.dom.DOMException - If the specified offset is negative or greater
than the number of characters in data, or if the specified count is negative.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||