Class LocationFacetImpl
java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
org.gcube.informationsystem.base.impl.entities.EntityElementImpl
org.gcube.informationsystem.model.impl.entities.EntityImpl
org.gcube.informationsystem.model.impl.entities.FacetImpl
org.gcube.resourcemanagement.model.impl.entities.facets.LocationFacetImpl
- All Implemented Interfaces:
Serializable,org.gcube.informationsystem.base.reference.Element,org.gcube.informationsystem.base.reference.entities.EntityElement,org.gcube.informationsystem.base.reference.IdentifiableElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,org.gcube.informationsystem.model.reference.entities.Entity,org.gcube.informationsystem.model.reference.entities.Facet,org.gcube.informationsystem.model.reference.ERElement,org.gcube.informationsystem.model.reference.ModelElement,LocationFacet
public class LocationFacetImpl
extends org.gcube.informationsystem.model.impl.entities.FacetImpl
implements LocationFacet
Implementation of
LocationFacet.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringA human english name for the location, e.g., a city name, a country name, a site name, a region name, etc.protected org.gcube.com.fasterxml.jackson.databind.node.ObjectNodeA spatial geometry for the location, e.g., a point, a polygon, a line, etc.Fields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
additionalProperties, allowedAdditionalKeysFields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
contexts, expectedType, supertypesFields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
metadata, uuidFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, REDACTED, TYPE_PROPERTY, UNKNOWN_USERFields inherited from interface org.gcube.informationsystem.model.reference.entities.Entity
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
NAMEFields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTYFields inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.LocationFacet
LOCATION_PROPERTY, NAME, SPATIAL_GEOMETRY_PROPERTY, VERSIONFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA human English name for the location, e.g., a city name, a country name, a site name, a region name, etc.org.gcube.com.fasterxml.jackson.databind.node.ObjectNodeReturns the Spatial Geometry in GeoJSON format, which can represent the physical location of a resource.voidsetLocation(String location) Sets a human English name for the location, e.g., a city name, a country name, a site name, a region name, etc.voidsetSpatialGeometry(org.gcube.com.fasterxml.jackson.databind.node.ObjectNode spatialGeometry) Sets the Spatial Geometry in GeoJSON formatMethods inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
getContexts, getExpectedType, getSupertypes, setContextsMethods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
getID, getMetadata, setID, setMetadataMethods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadataMethods inherited from interface org.gcube.informationsystem.model.reference.ERElement
getContextsMethods inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedType, getSupertypes
-
Field Details
-
location
A human english name for the location, e.g., a city name, a country name, a site name, a region name, etc. -
spatialGeometry
protected org.gcube.com.fasterxml.jackson.databind.node.ObjectNode spatialGeometryA spatial geometry for the location, e.g., a point, a polygon, a line, etc.
-
-
Constructor Details
-
LocationFacetImpl
public LocationFacetImpl()
-
-
Method Details
-
getLocation
A human English name for the location, e.g., a city name, a country name, a site name, a region name, etc.- Specified by:
getLocationin interfaceLocationFacet- Returns:
- the location
-
setLocation
Sets a human English name for the location, e.g., a city name, a country name, a site name, a region name, etc.- Specified by:
setLocationin interfaceLocationFacet- Parameters:
location- the location
-
getSpatialGeometry
public org.gcube.com.fasterxml.jackson.databind.node.ObjectNode getSpatialGeometry()Returns the Spatial Geometry in GeoJSON format, which can represent the physical location of a resource. The geometry is represented as a GeoJSON object, which can be a Point, LineString, Polygon, MultiPoint, MultiLineString, or MultiPolygon. For example, a Point geometry can be represented as: { "type": "Point", "coordinates": [longitude, latitude] } A Polygon geometry can be represented as: { "type": "Polygon", "coordinates": [ [[lon1, lat1], [lon2, lat2], [lon3, lat3], [lon1, lat1]] ] } A LineString geometry can be represented as: { "type": "LineString", "coordinates": [ [lon1, lat1], [lon2, lat2], [lon3, lat3] ] } The spatial geometry can be used to represent the physical location of a resource, such as the location of a data center, a server, a network node, etc.- Specified by:
getSpatialGeometryin interfaceLocationFacet- Returns:
- the spatial geometry
-
setSpatialGeometry
public void setSpatialGeometry(org.gcube.com.fasterxml.jackson.databind.node.ObjectNode spatialGeometry) Sets the Spatial Geometry in GeoJSON format- Specified by:
setSpatialGeometryin interfaceLocationFacet- Parameters:
spatialGeometry- the spatial geometry
-