2019-03-22 15:18:23 +01:00
|
|
|
package org.gcube.informationsystem.model.reference.entities;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
2020-07-07 17:04:25 +02:00
|
|
|
import org.gcube.com.fasterxml.jackson.annotation.JsonAnyGetter;
|
|
|
|
import org.gcube.com.fasterxml.jackson.annotation.JsonAnySetter;
|
2023-04-27 16:30:10 +02:00
|
|
|
import org.gcube.com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
2020-07-07 17:04:25 +02:00
|
|
|
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
2023-04-27 16:30:10 +02:00
|
|
|
import org.gcube.informationsystem.base.reference.Element;
|
|
|
|
import org.gcube.informationsystem.base.reference.IdentifiableElement;
|
2020-02-11 10:10:07 +01:00
|
|
|
import org.gcube.informationsystem.base.reference.SchemaMixedElement;
|
2023-02-03 14:39:25 +01:00
|
|
|
import org.gcube.informationsystem.serialization.AdditionalPropertiesSerializer;
|
2019-03-22 15:18:23 +01:00
|
|
|
import org.gcube.informationsystem.types.annotations.Abstract;
|
2020-12-15 11:28:34 +01:00
|
|
|
import org.gcube.informationsystem.types.reference.Change;
|
|
|
|
import org.gcube.informationsystem.types.reference.TypeMetadata;
|
2021-10-21 10:11:45 +02:00
|
|
|
import org.gcube.informationsystem.utils.Version;
|
2019-03-22 15:18:23 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
2021-01-20 17:03:02 +01:00
|
|
|
*
|
2021-01-20 17:26:13 +01:00
|
|
|
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#Facet
|
2019-03-22 15:18:23 +01:00
|
|
|
*/
|
|
|
|
@Abstract
|
2023-04-28 11:33:29 +02:00
|
|
|
@JsonPropertyOrder({ Element.TYPE_PROPERTY, Element.SUPERTYPES_PROPERTY, IdentifiableElement.ID_PROPERTY, IdentifiableElement.METADATA_PROPERTY })
|
2019-03-22 15:18:23 +01:00
|
|
|
// @JsonDeserialize(as=FacetImpl.class) Do not uncomment to manage subclasses
|
2023-01-20 11:22:52 +01:00
|
|
|
@TypeMetadata(name = "Facet", description = "This is the base type for any Facet", version = Version.MINIMAL_VERSION_STRING)
|
2021-10-21 10:11:45 +02:00
|
|
|
@Change(version = Version.MINIMAL_VERSION_STRING, description = Version.MINIMAL_VERSION_DESCRIPTION)
|
2020-02-11 10:10:07 +01:00
|
|
|
public interface Facet extends Entity, SchemaMixedElement {
|
2019-03-22 15:18:23 +01:00
|
|
|
|
|
|
|
public static final String NAME = "Facet"; //Facet.class.getSimpleName();
|
|
|
|
|
|
|
|
@JsonAnyGetter
|
|
|
|
@JsonSerialize(using = AdditionalPropertiesSerializer.class)
|
2020-02-11 10:10:07 +01:00
|
|
|
@Override
|
2019-03-22 15:18:23 +01:00
|
|
|
public Map<String,Object> getAdditionalProperties();
|
|
|
|
|
2020-02-11 10:10:07 +01:00
|
|
|
@Override
|
2019-03-22 15:18:23 +01:00
|
|
|
public void setAdditionalProperties(Map<String,Object> additionalProperties);
|
|
|
|
|
2020-02-11 10:10:07 +01:00
|
|
|
@Override
|
2019-03-22 15:18:23 +01:00
|
|
|
public Object getAdditionalProperty(String key);
|
|
|
|
|
|
|
|
@JsonAnySetter
|
2020-02-11 10:10:07 +01:00
|
|
|
@Override
|
2019-03-22 15:18:23 +01:00
|
|
|
public void setAdditionalProperty(String key, Object value);
|
|
|
|
|
|
|
|
}
|