29 lines
1.0 KiB
Java
29 lines
1.0 KiB
Java
package org.gcube.informationsystem.resourceregistry.schema;
|
|
|
|
import java.util.List;
|
|
|
|
import org.gcube.informationsystem.base.reference.Element;
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException;
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException;
|
|
import org.gcube.informationsystem.types.reference.Type;
|
|
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
*/
|
|
public interface ResourceRegistrySchemaClient {
|
|
|
|
public <E extends Element> Type create(Class<E> clz)
|
|
throws SchemaException, ResourceRegistryException;
|
|
|
|
public String create(String typeDefinitition)
|
|
throws SchemaException, 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;
|
|
|
|
}
|