35 lines
1.2 KiB
Java
35 lines
1.2 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.resourcemanagement.model.reference.entities.facets;
|
|
|
|
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
import org.gcube.informationsystem.model.reference.properties.Property;
|
|
import org.gcube.informationsystem.types.annotations.ISProperty;
|
|
import org.gcube.informationsystem.types.reference.Change;
|
|
import org.gcube.informationsystem.types.reference.TypeMetadata;
|
|
import org.gcube.informationsystem.utils.TypeVersion;
|
|
import org.gcube.resourcemanagement.model.impl.entities.facets.JSONSchemaFacetImpl;
|
|
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#XSD_Schema_Facet
|
|
*/
|
|
@JsonDeserialize(as=JSONSchemaFacetImpl.class)
|
|
@TypeMetadata(
|
|
name = JSONSchemaFacet.NAME,
|
|
description = "rovide a way to store a JSON Schema",
|
|
version = TypeVersion.MINIMAL_VERSION_STRING
|
|
)
|
|
@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION)
|
|
public interface JSONSchemaFacet extends SchemaFacet {
|
|
|
|
public static final String NAME = "JSONSchemaFacet"; // JSONSchemaFacet.class.getSimpleName();
|
|
|
|
@ISProperty(mandatory=true, nullable=false)
|
|
public Property getContent();
|
|
|
|
public void setContent(Property content);
|
|
|
|
}
|