gcube-model/src/main/java/org/gcube/resourcemanagement/model/reference/entities/facets/SimplePropertyFacet.java

33 lines
1.0 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.entities.Facet;
import org.gcube.informationsystem.types.annotations.ISProperty;
import org.gcube.resourcemanagement.model.impl.entities.facets.SimplePropertyFacetImpl;
/**
* @author Luca Frosini (ISTI - CNR)
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#Simple_Property_Facet
*/
@JsonDeserialize(as=SimplePropertyFacetImpl.class)
public interface SimplePropertyFacet extends Facet {
public static final String NAME = "SimplePropertyFacet"; // SimplePropertyFacet.class.getSimpleName();
public static final String DESCRIPTION = "Collect name-value property";
public static final String VERSION = "1.0.0";
@ISProperty(mandatory=true, nullable=false)
public String getName();
public void setName(String name);
@ISProperty(mandatory=true, nullable=false)
public String getValue();
public void setValue(String value);
}