|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.batik.dom.AbstractNode
|
+--org.apache.batik.dom.AbstractChildNode
|
+--org.apache.batik.dom.AbstractCharacterData
This class implements the CharacterData interface.
| Field Summary | |
protected java.lang.String |
nodeValue
The value of this node. |
| Fields inherited from class org.apache.batik.dom.AbstractChildNode |
nextSibling, parentNode, previousSibling |
| Fields inherited from class org.apache.batik.dom.AbstractNode |
EMPTY_NODE_LIST, eventSupport, ownerDocument |
| 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 | |
AbstractCharacterData()
|
|
| Method Summary | |
void |
appendData(java.lang.String arg)
DOM: Implements CharacterData.appendData(String). |
protected void |
checkOffsetCount(int offset,
int count)
Checks the given offset and count validity. |
protected Node |
copyInto(Node n)
Copy the fields of the current node into the given node. |
protected Node |
deepCopyInto(Node n)
Deeply copy the fields of the current node into the given node. |
protected Node |
deepExport(Node n,
AbstractDocument d)
Deeply exports this node to the given document. |
void |
deleteData(int offset,
int count)
DOM: Implements CharacterData.deleteData(int,int). |
protected Node |
export(Node n,
AbstractDocument d)
Exports this node to the given document. |
java.lang.String |
getData()
DOM: Implements CharacterData.getData(). |
int |
getLength()
DOM: Implements CharacterData.getLength(). |
java.lang.String |
getNodeValue()
DOM: Implements Node.getNodeValue(). |
void |
insertData(int offset,
java.lang.String arg)
DOM: Implements CharacterData.insertData(int,String). |
void |
replaceData(int offset,
int count,
java.lang.String arg)
DOM: Implements CharacterData.replaceData(int,int,String). |
void |
setData(java.lang.String data)
DOM: Implements CharacterData.setData(String). |
void |
setNodeValue(java.lang.String nodeValue)
DOM: Implements Node.setNodeValue(String). |
java.lang.String |
substringData(int offset,
int count)
DOM: Implements CharacterData.substringData(int,int). |
| Methods inherited from class org.apache.batik.dom.AbstractChildNode |
getNextSibling, getParentNode, getPreviousSibling, setNextSibling, setParentNode, setPreviousSibling |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 |
| Methods inherited from interface org.apache.batik.dom.ExtendedNode |
isReadonly, setReadonly |
| Field Detail |
protected java.lang.String nodeValue
| Constructor Detail |
public AbstractCharacterData()
| Method Detail |
public java.lang.String getNodeValue()
throws DOMException
Node.getNodeValue().getNodeValue in interface NodegetNodeValue in class AbstractNodenodeValue.
public void setNodeValue(java.lang.String nodeValue)
throws DOMException
Node.setNodeValue(String).setNodeValue in interface NodesetNodeValue in class AbstractNode
public java.lang.String getData()
throws DOMException
CharacterData.getData().getData in interface CharacterDatagetNodeValue().
public void setData(java.lang.String data)
throws DOMException
CharacterData.setData(String).setData in interface CharacterDatapublic int getLength()
CharacterData.getLength().getLength in interface CharacterDatanodeValue.length().
public java.lang.String substringData(int offset,
int count)
throws DOMException
CharacterData.substringData(int,int).substringData in interface CharacterDataorg.w3c.dom.CharacterDataoffsetStart - offset of substring to extract.countThe - number of 16-bit units to extract.offset and
count exceeds the length, then all 16-bit
units to the end of the data are returned.DOMException - INDEX_SIZE_ERR: Raised if the specified offset is
negative or greater than the number of 16-bit units in
data, or if the specified count is
negative.
DOMString.
public void appendData(java.lang.String arg)
throws DOMException
CharacterData.appendData(String).appendData in interface CharacterDataorg.w3c.dom.CharacterDataargThe - DOMString to append.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
public void insertData(int offset,
java.lang.String arg)
throws DOMException
CharacterData.insertData(int,String).insertData in interface CharacterDataorg.w3c.dom.CharacterDataoffsetThe - character offset at which to insert.argThe - DOMString to insert.DOMException - INDEX_SIZE_ERR: Raised if the specified offset is
negative or greater than the number of 16-bit units in
data.
public void deleteData(int offset,
int count)
throws DOMException
CharacterData.deleteData(int,int).deleteData in interface CharacterDataorg.w3c.dom.CharacterDataoffsetThe - offset from which to start removing.countThe - number of 16-bit units to delete. If the sum of
offset and count exceeds
length then all 16-bit units from offset
to the end of the data are deleted.DOMException - INDEX_SIZE_ERR: Raised if the specified offset is
negative or greater than the number of 16-bit units in
data, or if the specified count is
negative.
public void replaceData(int offset,
int count,
java.lang.String arg)
throws DOMException
CharacterData.replaceData(int,int,String).replaceData in interface CharacterDataorg.w3c.dom.CharacterDataoffsetThe - offset from which to start replacing.countThe - number of 16-bit units to replace. If the sum of
offset and count exceeds
length, then all 16-bit units 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).argThe - DOMString with which the range must be
replaced.DOMException - INDEX_SIZE_ERR: Raised if the specified offset is
negative or greater than the number of 16-bit units in
data, or if the specified count is
negative.
protected void checkOffsetCount(int offset,
int count)
throws DOMException
protected Node export(Node n,
AbstractDocument d)
export in class AbstractNode
protected Node deepExport(Node n,
AbstractDocument d)
deepExport in class AbstractNodeprotected Node copyInto(Node n)
copyInto in class AbstractNoden - a node of the type of this.protected Node deepCopyInto(Node n)
deepCopyInto in class AbstractNoden - a node of the type of this.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||