Interface AttributePropertyVOMapper


public interface AttributePropertyVOMapper
Map objects between the internal persistence domain and the api.
  • Field Details

  • Method Details

    • isGeoProperty

      default boolean isGeoProperty(AbstractAttribute attribute)
      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

      default boolean isRelationship(AbstractAttribute attribute)
      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 map
      createdAt - 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 map
      createdAt - 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 map
      createdAt - timestamp the property was created at
      Returns:
      the mapped property
    • lgnLatAltListToLinearRing

      default LinearRingDefinitionVO lgnLatAltListToLinearRing(List<org.geojson.LngLatAlt> lngLatAltList)
      Map a GeoJsonObject LngLat list to a linearRingDefinition
      Parameters:
      lngLatAltList - geoJson to map
      Returns:
      the linearRingDefinition
    • lgnLatAltListToLineString

      default LineStringDefinitionVO lgnLatAltListToLineString(List<org.geojson.LngLatAlt> lngLatAltList)
      Map a GeoJsonObject LngLat list to a linearStringDefinition
      Parameters:
      lngLatAltList - geoJson to map
      Returns:
      the linearStringDefinition
    • lgnLatAltListListToPolygonDefinition

      default PolygonDefinitionVO lgnLatAltListListToPolygonDefinition(List<List<org.geojson.LngLatAlt>> lngLatAltListList)
      Map a GeoJsonObject list of LngLat lists to a polygonDefinition
      Parameters:
      lngLatAltListList - geoJson to map
      Returns:
      the polygonDefinition
    • lgnLatAltToPositionDefinition

      default PositionDefinitionVO lgnLatAltToPositionDefinition(org.geojson.LngLatAlt lngLatAlt)
      Map a GeoJsonObject lngLatAlt to a positionDefinition
      Parameters:
      lngLatAlt - geoJson to map
      Returns:
      the positionDefinition