Package com.google.gwt.xml.client
Interface CharacterData
- All Superinterfaces:
- Node
- All Known Subinterfaces:
- CDATASection,- Comment,- Text
This interface describes 
CharacterData XML nodes. These can be
 either Text, CDATASection or
 Comment nodes.- 
Field SummaryFields inherited from interface com.google.gwt.xml.client.NodeATTRIBUTE_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
- 
Method SummaryModifier and TypeMethodDescriptionvoidappendData(String appendedData) This method appendsdatato the data in thisCharacterData.voiddeleteData(int offset, int count) This method deletes data, starting atoffset, and deletingcountcharacters.getData()This method retrieves the data.intThis method retrieves the length of the data.voidinsertData(int offset, String insertedData) This method inserts data at the specified offset.voidreplaceData(int offset, int count, String replacementData) This method replaces the substring of data indicated byoffsetandcountwithreplacementData.voidThis method sets the data todata.substringData(int offset, int count) This method gets a substring of the character data.Methods inherited from interface com.google.gwt.xml.client.NodeappendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue
- 
Method Details- 
appendDataThis method appendsdatato the data in thisCharacterData.- Parameters:
- appendedData- the data to be appended to the end
 
- 
deleteDatavoid deleteData(int offset, int count) This method deletes data, starting atoffset, and deletingcountcharacters.- Parameters:
- offset- how far from the beginning to start deleting
- count- how many characters to delete
 
- 
getDataString getData()This method retrieves the data.- Returns:
- the data of this CharacterData
 
- 
getLengthint getLength()This method retrieves the length of the data.- Returns:
- the length of the data contained in this CharacterData
 
- 
insertDataThis method inserts data at the specified offset.- Parameters:
- offset- how far from the beginning to start inserting
- insertedData- the data to be inserted
 
- 
replaceDataThis method replaces the substring of data indicated byoffsetandcountwithreplacementData.- Parameters:
- offset- how far from the beginning to start the replacement
- count- how many characters to delete before inserting- replacementData
- replacementData- the data that will replace the deleted data
 
- 
setDataThis method sets the data todata.- Parameters:
- data- the new data
 
- 
substringDataThis method gets a substring of the character data.- Parameters:
- offset- the place to start the substring
- count- how many characters to return
- Returns:
- the specified substring
 
 
-