Class OnmsGeolocation

  • All Implemented Interfaces:
    java.io.Serializable

    @Embeddable
    public class OnmsGeolocation
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OnmsGeolocation()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String asAddressString()  
      java.lang.String getAddress1()
      --# address1 : Address of geographical location of asset, line 1.
      java.lang.String getAddress2()
      --# address2 : Address of geographical location of asset, line 2.
      java.lang.String getCity()
      --# city : The city where this asset resides.
      java.lang.String getCountry()
      --# country : The country where this asset resides.
      java.lang.Double getLatitude()
      The latitude coordinate of this node.
      java.lang.Double getLongitude()
      The longitude coordinate of this node.
      java.lang.String getState()
      --# state : The state where this asset resides.
      java.lang.String getZip()
      --# zip : The zip code where this asset resides.
      void mergeGeolocation​(OnmsGeolocation mergeWith)  
      void setAddress1​(java.lang.String address1)
      setAddress1
      void setAddress2​(java.lang.String address2)
      setAddress2
      void setCity​(java.lang.String city)
      setCity
      void setCountry​(java.lang.String country)
      setCountry
      void setLatitude​(java.lang.Double latitude)  
      void setLongitude​(java.lang.Double longitude)  
      void setState​(java.lang.String state)
      setState
      void setZip​(java.lang.String zip)
      setZip
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OnmsGeolocation

        public OnmsGeolocation()
    • Method Detail

      • getAddress1

        public java.lang.String getAddress1()
        --# address1 : Address of geographical location of asset, line 1.
        Returns:
        a String object.
      • setAddress1

        public void setAddress1​(java.lang.String address1)

        setAddress1

        Parameters:
        address1 - a String object.
      • getAddress2

        public java.lang.String getAddress2()
        --# address2 : Address of geographical location of asset, line 2.
        Returns:
        a String object.
      • setAddress2

        public void setAddress2​(java.lang.String address2)

        setAddress2

        Parameters:
        address2 - a String object.
      • getCity

        public java.lang.String getCity()
        --# city : The city where this asset resides.
        Returns:
        a String object.
      • setCity

        public void setCity​(java.lang.String city)

        setCity

        Parameters:
        city - a String object.
      • getState

        public java.lang.String getState()
        --# state : The state where this asset resides.
        Returns:
        a String object.
      • setState

        public void setState​(java.lang.String state)

        setState

        Parameters:
        state - a String object.
      • getZip

        public java.lang.String getZip()
        --# zip : The zip code where this asset resides.
        Returns:
        a String object.
      • setZip

        public void setZip​(java.lang.String zip)

        setZip

        Parameters:
        zip - a String object.
      • getCountry

        public java.lang.String getCountry()
        --# country : The country where this asset resides.
        Returns:
        a String object.
      • setCountry

        public void setCountry​(java.lang.String country)

        setCountry

        Parameters:
        country - a String object.
      • getLongitude

        public java.lang.Double getLongitude()
        The longitude coordinate of this node.
        Returns:
      • setLongitude

        public void setLongitude​(java.lang.Double longitude)
      • getLatitude

        public java.lang.Double getLatitude()
        The latitude coordinate of this node.
        Returns:
      • setLatitude

        public void setLatitude​(java.lang.Double latitude)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • asAddressString

        public java.lang.String asAddressString()
      • mergeGeolocation

        public void mergeGeolocation​(OnmsGeolocation mergeWith)