package org.gcube.informationsystem.resourceregistry.schema; import java.util.List; import org.gcube.informationsystem.model.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.TypeBinder.TypeDefinition; /** * @author Luca Frosini (ISTI - CNR) */ public interface ResourceRegistrySchemaClient { public TypeDefinition create(Class clazz) throws SchemaException, ResourceRegistryException; public String create(String typeDefinitition) throws SchemaException, ResourceRegistryException; public List read(Class clazz, Boolean polymorphic) throws SchemaNotFoundException, ResourceRegistryException; public String read(String type, Boolean polymorphic) throws SchemaNotFoundException, ResourceRegistryException; }