Class LocationDtoWrapper

  • All Implemented Interfaces:
    Location

    public class LocationDtoWrapper
    extends java.lang.Object
    implements Location
    Implementation of Location applicable for LocationDTO originating from external services
    • Constructor Detail

      • LocationDtoWrapper

        public LocationDtoWrapper​(AddressData addressData,
                                  GPS gps)
        Parameters:
        addressData -
        gps -
      • LocationDtoWrapper

        public LocationDtoWrapper​(LocationDTO locationDto)
    • Method Detail

      • getCountry

        public java.lang.String getCountry()
        Description copied from interface: Location
        Get the address'es country ISO code
        Specified by:
        getCountry in interface Location
        Returns:
        String
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: Location
        Returns a POS description
        Specified by:
        getDescription in interface Location
        Returns:
        String
      • getGPS

        public GPS getGPS()
        Description copied from interface: Location
        Getting the geographic coordinates of the IAddress
        Specified by:
        getGPS in interface Location
        Returns:
        GPS
      • getMapIconUrl

        public java.lang.String getMapIconUrl()
        Description copied from interface: Location
        returns MapIcon that is to be displayed on the map to represent this location
        Specified by:
        getMapIconUrl in interface Location
        Returns:
        String
      • getName

        public java.lang.String getName()
        Description copied from interface: Location
        Return name
        Specified by:
        getName in interface Location
        Returns:
        String
      • getTextualAddress

        public java.lang.String getTextualAddress()
        Description copied from interface: Location
        Getting the textual address of the IAddress
        Specified by:
        getTextualAddress in interface Location
        Returns:
        String
      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface Location
        Returns:
        String describing location type