|
|
|
@ -13,17 +13,17 @@ import org.gcube.informationsystem.types.reference.Type;
|
|
|
|
|
*/
|
|
|
|
|
public interface ResourceRegistrySchemaClient {
|
|
|
|
|
|
|
|
|
|
public String create(String typeDefinitition) throws SchemaException, ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
public <E extends Element> Type create(Class<E> clz) throws SchemaException, ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
public String create(String typeDefinitition) throws SchemaException, ResourceRegistryException;
|
|
|
|
|
public boolean exist(String typeName) throws ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
public <E extends Element> boolean exist(Class<E> clz) throws ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
public boolean exist(String typeName) throws ResourceRegistryException;
|
|
|
|
|
public String read(String typeName, Boolean polymorphic) throws SchemaNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
public <E extends Element> List<Type> read(Class<E> clz, Boolean polymorphic)
|
|
|
|
|
throws SchemaNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
public String read(String typeName, Boolean polymorphic) throws SchemaNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|