2019-03-22 15:18:23 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2019-10-24 11:26:49 +02:00
|
|
|
package org.gcube.informationsystem.model.reference.properties;
|
2019-03-22 15:18:23 +01:00
|
|
|
|
2020-11-09 15:46:01 +01:00
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
import org.gcube.com.fasterxml.jackson.annotation.JsonAnyGetter;
|
|
|
|
import org.gcube.com.fasterxml.jackson.annotation.JsonAnySetter;
|
2020-07-07 17:04:25 +02:00
|
|
|
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
2020-11-09 15:46:01 +01:00
|
|
|
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
|
import org.gcube.informationsystem.base.reference.SchemaMixedElement;
|
2020-01-30 10:26:43 +01:00
|
|
|
import org.gcube.informationsystem.base.reference.properties.PropertyElement;
|
2020-07-02 18:05:15 +02:00
|
|
|
import org.gcube.informationsystem.model.impl.properties.PropertyImpl;
|
2020-11-09 15:46:01 +01:00
|
|
|
import org.gcube.informationsystem.utils.AdditionalPropertiesSerializer;
|
2020-07-02 18:05:15 +02:00
|
|
|
|
2019-03-22 15:18:23 +01:00
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
* Root Class for Property types. It creates a base common type, which is useful
|
|
|
|
* for management purpose.
|
|
|
|
*/
|
2019-10-24 19:50:43 +02:00
|
|
|
// @JsonIgnoreProperties(ignoreUnknown=true)
|
2020-07-02 18:05:15 +02:00
|
|
|
@JsonDeserialize(as=PropertyImpl.class)
|
2020-11-09 15:46:01 +01:00
|
|
|
public interface Property extends PropertyElement, SchemaMixedElement {
|
2019-03-22 15:18:23 +01:00
|
|
|
|
|
|
|
public static final String NAME = "Property"; //Property.class.getSimpleName();
|
2020-02-03 11:24:55 +01:00
|
|
|
public static final String DESCRIPTION = "This is the base class for Properties";
|
2019-03-22 15:18:23 +01:00
|
|
|
public static final String VERSION = "1.0.0";
|
2019-10-23 16:55:48 +02:00
|
|
|
|
2020-11-09 15:46:01 +01:00
|
|
|
@JsonAnyGetter
|
|
|
|
@JsonSerialize(using = AdditionalPropertiesSerializer.class)
|
|
|
|
@Override
|
|
|
|
public Map<String,Object> getAdditionalProperties();
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setAdditionalProperties(Map<String,Object> additionalProperties);
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Object getAdditionalProperty(String key);
|
|
|
|
|
|
|
|
@JsonAnySetter
|
|
|
|
@Override
|
|
|
|
public void setAdditionalProperty(String key, Object value);
|
|
|
|
|
2019-03-22 15:18:23 +01:00
|
|
|
}
|