Package org.opennms.netmgt.model
Class OnmsGeolocation
- java.lang.Object
-
- org.opennms.netmgt.model.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)
setAddress1void
setAddress2(java.lang.String address2)
setAddress2void
setCity(java.lang.String city)
setCityvoid
setCountry(java.lang.String country)
setCountryvoid
setLatitude(java.lang.Double latitude)
void
setLongitude(java.lang.Double longitude)
void
setState(java.lang.String state)
setStatevoid
setZip(java.lang.String zip)
setZipjava.lang.String
toString()
-
-
-
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
- aString
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
- aString
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
- aString
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
- aString
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
- aString
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
- aString
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 classjava.lang.Object
-
asAddressString
public java.lang.String asAddressString()
-
mergeGeolocation
public void mergeGeolocation(OnmsGeolocation mergeWith)
-
-