package org.gcube.resources.discovery.client.api; import org.gcube.resources.discovery.client.queries.api.Query; /** * Transforms untyped results into typed results. * * @author Fabio Simeoni * * @param the result type * * @see DiscoveryClient * @see Query */ public interface ResultParser { /** * Transforms an untyped result. * * @param result the untyped results * @return the typed result * @throws Exception if the result cannot be typed */ R parse(String result) throws Exception; }