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

33 lines
1.0 KiB
Java
Raw Normal View History

/**
*
*/
package org.gcube.resourcemanagement.model.reference.entities.facets;
2020-07-07 17:12:10 +02:00
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();
2020-09-25 11:56:16 +02:00
public void setName(String name);
@ISProperty(mandatory=true, nullable=false)
public String getValue();
public void setValue(String value);
}