|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.informationsystem.client.impl.AbstractXMLResult
public class AbstractXMLResult
Partial implementation of XMLResult.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.gcube.common.core.informationsystem.client.XMLResult |
|---|
XMLResult.ISResultEvaluationException, XMLResult.ISResultInitialisationException |
| Field Summary | |
|---|---|
protected Node |
dom
The result dom source. |
protected static DocumentBuilderFactory |
domFactory
|
protected static XPath |
engine
|
protected String |
result
The result serialisation. |
protected static Transformer |
transformer
Transformation engine. |
| Constructor Summary | |
|---|---|
AbstractXMLResult(String result)
Creates and instance from its XML serialisation. |
|
| Method Summary | |
|---|---|
List<String> |
evaluate(String xpath)
Returns the values of an XPath query against the result. |
protected void |
parse(String result)
Parses the result into a DOM structure. |
String |
toString()
Returns the result serialisation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static XPath engine
protected static DocumentBuilderFactory domFactory
protected static Transformer transformer
protected String result
protected Node dom
| Constructor Detail |
|---|
public AbstractXMLResult(String result)
throws XMLResult.ISResultInitialisationException
XMLResult.ISResultInitialisationException| Method Detail |
|---|
protected void parse(String result)
throws ISClient.ISMalformedResultException
result - the result.
ISClient.ISMalformedResultException - if the result could not be parsed.public String toString()
toString in interface XMLResulttoString in class Object
public List<String> evaluate(String xpath)
throws XMLResult.ISResultEvaluationException
evaluate in interface XMLResultxpath - the XPath expression.
XMLResult.ISResultEvaluationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||