2017-12-18 15:37:22 +01:00
|
|
|
package org.gcube.informationsystem.resourceregistry.schema;
|
2017-12-18 15:34:25 +01:00
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
2020-01-30 11:04:58 +01:00
|
|
|
import org.gcube.informationsystem.base.reference.Element;
|
2017-12-18 15:34:25 +01:00
|
|
|
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;
|
2020-02-03 10:52:50 +01:00
|
|
|
import org.gcube.informationsystem.types.reference.Type;
|
2017-12-18 15:34:25 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
*/
|
|
|
|
public interface ResourceRegistrySchemaClient {
|
|
|
|
|
2020-02-03 10:52:50 +01:00
|
|
|
public <E extends Element> Type create(Class<E> clz)
|
2017-12-18 15:34:25 +01:00
|
|
|
throws SchemaException, ResourceRegistryException;
|
|
|
|
|
2020-02-03 10:52:50 +01:00
|
|
|
public String create(String typeDefinitition)
|
2017-12-18 15:34:25 +01:00
|
|
|
throws SchemaException, ResourceRegistryException;
|
|
|
|
|
2020-02-03 10:52:50 +01:00
|
|
|
public <E extends Element> List<Type> read(Class<E> clz, Boolean polymorphic)
|
2017-12-18 15:34:25 +01:00
|
|
|
throws SchemaNotFoundException, ResourceRegistryException;
|
|
|
|
|
2020-02-03 10:52:50 +01:00
|
|
|
public String read(String typeName, Boolean polymorphic)
|
2017-12-18 15:34:25 +01:00
|
|
|
throws SchemaNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
}
|