Package org.fiware.mintaka.domain
Interface AttributePropertyVOMapper
public interface AttributePropertyVOMapper
Map objects between the internal persistence domain and the api.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault GeoPropertyVO
attributeToGeoProperty
(AbstractAttribute attribute, Instant createdAt, boolean modifiedAt) Map the internal attribute to a geoPropertydefault PropertyVO
attributeToPropertyVO
(AbstractAttribute attribute, Instant createdAt, boolean modifiedAt) Map the internal attribute to a propertydefault RelationshipVO
attributeToRelationShip
(AbstractAttribute attribute, Instant createdAt, boolean modifiedAt) Map the internal attribute to a relationshipdefault boolean
isGeoProperty
(AbstractAttribute attribute) Check if the given attribute from the persistence layer is a geoPropertydefault boolean
isRelationship
(AbstractAttribute attribute) Check if the given attribute from the persistence layer is a relationshipdefault PolygonDefinitionVO
lgnLatAltListListToPolygonDefinition
(List<List<org.geojson.LngLatAlt>> lngLatAltListList) Map aGeoJsonObject
list of LngLat lists to a polygonDefinitiondefault LinearRingDefinitionVO
lgnLatAltListToLinearRing
(List<org.geojson.LngLatAlt> lngLatAltList) Map aGeoJsonObject
LngLat list to a linearRingDefinitiondefault LineStringDefinitionVO
lgnLatAltListToLineString
(List<org.geojson.LngLatAlt> lngLatAltList) Map aGeoJsonObject
LngLat list to a linearStringDefinitiondefault PositionDefinitionVO
lgnLatAltToPositionDefinition
(org.geojson.LngLatAlt lngLatAlt) Map aGeoJsonObject
lngLatAlt to a positionDefinition
-
Field Details
-
DATASET_ID_NONE
- See Also:
-
GEO_TYPES
-
-
Method Details
-
isGeoProperty
Check if the given attribute from the persistence layer is a geoProperty- Parameters:
attribute
- to check if its a geoproperty- Returns:
- true if its a geoProperty
-
isRelationship
Check if the given attribute from the persistence layer is a relationship- Parameters:
attribute
- to check if its a relationship- Returns:
- true if its a relationship
-
attributeToRelationShip
default RelationshipVO attributeToRelationShip(AbstractAttribute attribute, Instant createdAt, boolean modifiedAt) Map the internal attribute to a relationship- Parameters:
attribute
- attribute to mapcreatedAt
- timestamp the relationship was created at- Returns:
- the mapped relationship
-
attributeToGeoProperty
default GeoPropertyVO attributeToGeoProperty(AbstractAttribute attribute, Instant createdAt, boolean modifiedAt) Map the internal attribute to a geoProperty- Parameters:
attribute
- attribute to mapcreatedAt
- timestamp the geoProperty was created at- Returns:
- the mapped geoProperty
-
attributeToPropertyVO
default PropertyVO attributeToPropertyVO(AbstractAttribute attribute, Instant createdAt, boolean modifiedAt) Map the internal attribute to a property- Parameters:
attribute
- attribute to mapcreatedAt
- timestamp the property was created at- Returns:
- the mapped property
-
lgnLatAltListToLinearRing
Map aGeoJsonObject
LngLat list to a linearRingDefinition- Parameters:
lngLatAltList
- geoJson to map- Returns:
- the linearRingDefinition
-
lgnLatAltListToLineString
Map aGeoJsonObject
LngLat list to a linearStringDefinition- Parameters:
lngLatAltList
- geoJson to map- Returns:
- the linearStringDefinition
-
lgnLatAltListListToPolygonDefinition
default PolygonDefinitionVO lgnLatAltListListToPolygonDefinition(List<List<org.geojson.LngLatAlt>> lngLatAltListList) Map aGeoJsonObject
list of LngLat lists to a polygonDefinition- Parameters:
lngLatAltListList
- geoJson to map- Returns:
- the polygonDefinition
-
lgnLatAltToPositionDefinition
Map aGeoJsonObject
lngLatAlt to a positionDefinition- Parameters:
lngLatAlt
- geoJson to map- Returns:
- the positionDefinition
-