Class JAXBParser<R>
- java.lang.Object
-
- org.gcube.resources.discovery.client.impl.JAXBParser<R>
-
- Type Parameters:
R- the type of parsed results
- All Implemented Interfaces:
ResultParser<R>
public class JAXBParser<R> extends Object implements ResultParser<R>
AResultParserthat parses query results into JAXB annotated classes.- Author:
- Fabio Simeoni
-
-
Constructor Summary
Constructors Constructor Description JAXBParser(Class<R> type)Creates an instance with a JAXB-annotated class.
-
-
-
Method Detail
-
parse
public R parse(String result) throws Exception
Description copied from interface:ResultParserTransforms an untyped result.- Specified by:
parsein interfaceResultParser<R>- Parameters:
result- the untyped results- Returns:
- the typed result
- Throws:
Exception- if the result cannot be typed
-
-