2019-03-22 15:51:44 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
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;
|
2019-03-22 15:51:44 +01:00
|
|
|
import org.gcube.informationsystem.model.reference.entities.Facet;
|
|
|
|
import org.gcube.informationsystem.types.annotations.ISProperty;
|
2020-12-15 18:38:41 +01:00
|
|
|
import org.gcube.informationsystem.types.reference.Change;
|
|
|
|
import org.gcube.informationsystem.types.reference.TypeMetadata;
|
|
|
|
import org.gcube.informationsystem.utils.TypeVersion;
|
2019-03-22 15:51:44 +01:00
|
|
|
import org.gcube.resourcemanagement.model.impl.entities.facets.LocationFacetImpl;
|
|
|
|
|
|
|
|
/**
|
2020-12-21 13:59:53 +01:00
|
|
|
* LocationFacet captures information on a physical area characterising the resource it
|
|
|
|
* is associated with. This should not be confused with {@link CoverageFacet}
|
|
|
|
* The LocationFacet provides information of a location (eventually using
|
|
|
|
* latitude and longitude), instead {@link CoverageFacet} provide a way to to define the spatial
|
|
|
|
* or the temporal extent the resource represent.
|
|
|
|
*
|
|
|
|
* It is mainly used to locate a data centre or to the geographic references of a
|
|
|
|
* legal body playing the role of an actor in the infrastructure.
|
|
|
|
*
|
2021-03-02 16:16:35 +01:00
|
|
|
* https://wiki.gcube-system.org/gcube/GCube_Model#Location_Facet
|
2020-12-21 13:59:53 +01:00
|
|
|
*
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
2019-03-22 15:51:44 +01:00
|
|
|
*/
|
|
|
|
@JsonDeserialize(as=LocationFacetImpl.class)
|
2020-12-15 18:38:41 +01:00
|
|
|
@TypeMetadata(
|
|
|
|
name = LocationFacet.NAME,
|
2021-09-13 12:57:00 +02:00
|
|
|
description = "LocationFacet captures information on a physical area characterising the resource it is associated with. "
|
|
|
|
+ "This should not be confused with {@link CoverageFacet}. "
|
2020-12-21 13:59:53 +01:00
|
|
|
+ "The LocationFacet provides information of a location (eventually using latitude and longitude), "
|
2021-09-13 12:57:00 +02:00
|
|
|
+ "instead {@link CoverageFacet} provide a way to to define the spatial or the temporal extent the resource represent. "
|
2020-12-21 13:59:53 +01:00
|
|
|
+ "It is mainly used to locate a data centre or to the geographic references of a legal body playing "
|
|
|
|
+ "the role of an actor in the infrastructure.",
|
2020-12-15 18:38:41 +01:00
|
|
|
version = TypeVersion.MINIMAL_VERSION_STRING
|
|
|
|
)
|
|
|
|
@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION)
|
2019-03-22 15:51:44 +01:00
|
|
|
public interface LocationFacet extends Facet {
|
|
|
|
|
|
|
|
public static final String NAME = "LocationFacet"; // LocationFacet.class.getSimpleName();
|
|
|
|
|
2020-12-21 13:59:53 +01:00
|
|
|
@ISProperty(description = "The English name of the country")
|
2019-03-22 15:51:44 +01:00
|
|
|
public String getCountry();
|
|
|
|
|
|
|
|
public void setCountry(String country);
|
|
|
|
|
2020-12-21 13:59:53 +01:00
|
|
|
@ISProperty(description = "The City name")
|
2019-03-22 15:51:44 +01:00
|
|
|
public String getLocation();
|
|
|
|
|
|
|
|
public void setLocation(String location);
|
|
|
|
|
2020-12-21 13:59:53 +01:00
|
|
|
@ISProperty(description = "Latitude")
|
2019-03-22 15:51:44 +01:00
|
|
|
public String getLatitude();
|
|
|
|
|
|
|
|
public void setLatitude(String latitude);
|
|
|
|
|
2020-12-21 13:59:53 +01:00
|
|
|
@ISProperty(description = "Longitude")
|
2019-03-22 15:51:44 +01:00
|
|
|
public String getLongitude();
|
|
|
|
|
|
|
|
public void setLongitude(String longitude);
|
|
|
|
|
2020-12-21 13:59:53 +01:00
|
|
|
}
|