Methods Summary |
---|
public java.lang.String | getData()The character data of the node that implements this interface. The DOM
implementation may not put arbitrary limits on the amount of data
that may be stored in a CharacterData 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.
return fData;
|
public int | getLength()The number of 16-bit units that are available through data
and the substringData method below. This may have the
value zero, i.e., CharacterData nodes may be empty.
if(fData == null) return 0;
return fData.length();
|
public org.w3c.dom.Node | getNextSibling()
if (fCol == fSchemaDOM.relations[fRow].length-1) {
return null;
}
return fSchemaDOM.relations[fRow][fCol+1];
|
public org.w3c.dom.Node | getParentNode()
return fSchemaDOM.relations[fRow][0];
|
public org.w3c.dom.Node | getPreviousSibling()
if (fCol == 1) {
return null;
}
return fSchemaDOM.relations[fRow][fCol-1];
|
public java.lang.String | substringData(int offset, int count)Extracts a range of data from the node.
if(fData == null) return null;
if(count < 0 || offset < 0 || offset > fData.length())
throw new DOMException(DOMException.INDEX_SIZE_ERR, "parameter error");
if(offset+count >= fData.length())
return fData.substring(offset);
return fData.substring(offset, offset+count);
|