org.gcube.common.core.informationsystem.client
Interface XMLResult

All Known Subinterfaces:
RPDocument
All Known Implementing Classes:
AbstractXMLResult

public interface XMLResult

Models arbitrary XML results and exposes a simple XPath-based query interface over them.

Author:
Fabio Simeoni (University of Strathclyde), Manuele Simi (CNR)

Nested Class Summary
static class XMLResult.ISResultEvaluationException
          An exception returned during xpath evaluation.
static class XMLResult.ISResultInitialisationException
          An exception returned during result initialisation.
 
Method Summary
 List<String> evaluate(String xpath)
          Returns the values of an XPath query against the result.
 String toString()
          Returns the result serialisation.
 

Method Detail

toString

String toString()
Returns the result serialisation.

Overrides:
toString in class Object
Returns:
the serialisation.

evaluate

List<String> evaluate(String xpath)
                      throws XMLResult.ISResultEvaluationException
Returns the values of an XPath query against the result.

Parameters:
xpath - the XPath expression.
Returns:
the values.
Throws:
XMLResult.ISResultEvaluationException


Copyright © 2012. All Rights Reserved.