edu.ucsb.cs.jicos.services.external
Interface ExternalData

All Known Implementing Classes:
ExternalDataList, XmlDocument

public interface ExternalData


Method Summary
 java.lang.String[] getArray(java.lang.String xpathQuery)
          Get an individual value from the document.
 java.lang.String getValue(java.lang.String xpathQuery)
          Get an individual value from the document.
 ExternalData removeWrapper()
          Get the data out of the (optional) wrapper.
 

Method Detail

getArray

java.lang.String[] getArray(java.lang.String xpathQuery)
Get an individual value from the document. This supports a very limited subset of the XPath queries. Right now, it only supports paths, leaves, and attributes. Although it will return an array of nodes IFF they are the leaf nodes.

SOME Known Limitations:

Parameters:
xpathQuery - An XPath query.
Returns:
An individual node.

getValue

java.lang.String getValue(java.lang.String xpathQuery)
Get an individual value from the document. This supports a very limited subset of the XPath queries. Right now, it only supports paths, leaves, and attributes. SOME Known Limitations:
Selections:

Parameters:
xpathQuery - An XPath query.
Returns:
An individual string value.

removeWrapper

ExternalData removeWrapper()
Get the data out of the (optional) wrapper. This may return the same object.

Returns:
The data.


Jicos: http://cs.ucsb.edu/projects/jicos