package org.gcube.informationsystem.resourceregistry.schema; import java.util.List; import org.gcube.informationsystem.base.reference.ISManageable; import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException; import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException; import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException; import org.gcube.informationsystem.types.reference.TypeDefinition; /** * @author Luca Frosini (ISTI - CNR) */ public interface ResourceRegistrySchemaClient { public TypeDefinition create(Class clz) throws SchemaException, ResourceRegistryException; public String create(String baseType, String typeDefinitition) throws SchemaException, ResourceRegistryException; public List> read(Class clz, Boolean polymorphic) throws SchemaNotFoundException, ResourceRegistryException; public String read(String type, Boolean polymorphic) throws SchemaNotFoundException, ResourceRegistryException; }