2019-03-22 15:51:44 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.resourcemanagement.model.reference.entities.facets;
|
|
|
|
|
|
|
|
import java.net.URI;
|
|
|
|
|
2020-07-07 17:12:10 +02:00
|
|
|
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
2019-03-22 15:51:44 +01:00
|
|
|
import org.gcube.informationsystem.model.reference.entities.Facet;
|
|
|
|
import org.gcube.informationsystem.types.annotations.ISProperty;
|
2020-12-15 18:38:41 +01:00
|
|
|
import org.gcube.informationsystem.types.reference.Change;
|
|
|
|
import org.gcube.informationsystem.types.reference.TypeMetadata;
|
|
|
|
import org.gcube.informationsystem.utils.TypeVersion;
|
2019-03-22 15:51:44 +01:00
|
|
|
import org.gcube.resourcemanagement.model.impl.entities.facets.DescriptiveMetadataFacetImpl;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#Descriptive_Metadata_Facet
|
|
|
|
*/
|
|
|
|
@JsonDeserialize(as=DescriptiveMetadataFacetImpl.class)
|
2020-12-15 18:38:41 +01:00
|
|
|
@TypeMetadata(
|
|
|
|
name = DescriptiveMetadataFacet.NAME,
|
|
|
|
description = "Collect any descriptive metadata about the resource.",
|
|
|
|
version = TypeVersion.MINIMAL_VERSION_STRING
|
|
|
|
)
|
|
|
|
@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION)
|
2019-03-22 15:51:44 +01:00
|
|
|
public interface DescriptiveMetadataFacet extends Facet {
|
|
|
|
|
|
|
|
public static final String NAME = "DescriptiveMetadataFacet"; // DescriptiveMetadataFacet.class.getSimpleName();
|
|
|
|
|
|
|
|
@ISProperty(mandatory=true, nullable=false)
|
|
|
|
public String getValue();
|
|
|
|
|
|
|
|
public void setValue(String value);
|
|
|
|
|
|
|
|
@ISProperty(mandatory=true, nullable=false)
|
|
|
|
public URI getSchema();
|
|
|
|
|
|
|
|
public void setSchema(URI schema);
|
|
|
|
|
|
|
|
}
|