42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.resourcemanagement.model.reference.entities.facets;
|
|
|
|
import java.net.URL;
|
|
|
|
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
import org.gcube.informationsystem.model.reference.entities.Facet;
|
|
import org.gcube.informationsystem.types.annotations.ISProperty;
|
|
import org.gcube.resourcemanagement.model.impl.entities.facets.SchemaFacetImpl;
|
|
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#Schema_Facet
|
|
*/
|
|
@JsonDeserialize(as=SchemaFacetImpl.class)
|
|
public interface SchemaFacet extends Facet {
|
|
|
|
public static final String NAME = "SchemaFacet"; // SchemaFacet.class.getSimpleName();
|
|
public static final String DESCRIPTION = "Provide a way to store a Schema";
|
|
public static final String VERSION = "1.0.0";
|
|
|
|
public static final String NAME_PROPERTY = "name";
|
|
|
|
@ISProperty(name=NAME_PROPERTY, mandatory=true, nullable=false)
|
|
public String getName();
|
|
|
|
public void setName(String name);
|
|
|
|
@ISProperty(mandatory=true, nullable=false)
|
|
public String getDescription();
|
|
|
|
public void setDescription(String description);
|
|
|
|
@ISProperty
|
|
public URL getSchemaURL();
|
|
|
|
public void setSchemaURL(URL schemaURL);
|
|
|
|
}
|