Package org.opennms.netmgt.model
Class OnmsGeolocation
- java.lang.Object
-
- org.opennms.netmgt.model.OnmsGeolocation
-
- All Implemented Interfaces:
Serializable
@Embeddable public class OnmsGeolocation extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OnmsGeolocation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasAddressString()StringgetAddress1()--# address1 : Address of geographical location of asset, line 1.StringgetAddress2()--# address2 : Address of geographical location of asset, line 2.StringgetCity()--# city : The city where this asset resides.StringgetCountry()--# country : The country where this asset resides.DoublegetLatitude()The latitude coordinate of this node.DoublegetLongitude()The longitude coordinate of this node.StringgetState()--# state : The state where this asset resides.StringgetZip()--# zip : The zip code where this asset resides.voidmergeGeolocation(OnmsGeolocation mergeWith)voidsetAddress1(String address1)setAddress1voidsetAddress2(String address2)setAddress2voidsetCity(String city)setCityvoidsetCountry(String country)setCountryvoidsetLatitude(Double latitude)voidsetLongitude(Double longitude)voidsetState(String state)setStatevoidsetZip(String zip)setZipStringtoString()
-
-
-
Method Detail
-
getAddress1
public String getAddress1()
--# address1 : Address of geographical location of asset, line 1.- Returns:
- a
Stringobject.
-
setAddress1
public void setAddress1(String address1)
setAddress1
- Parameters:
address1- aStringobject.
-
getAddress2
public String getAddress2()
--# address2 : Address of geographical location of asset, line 2.- Returns:
- a
Stringobject.
-
setAddress2
public void setAddress2(String address2)
setAddress2
- Parameters:
address2- aStringobject.
-
getCity
public String getCity()
--# city : The city where this asset resides.- Returns:
- a
Stringobject.
-
getState
public String getState()
--# state : The state where this asset resides.- Returns:
- a
Stringobject.
-
getZip
public String getZip()
--# zip : The zip code where this asset resides.- Returns:
- a
Stringobject.
-
getCountry
public String getCountry()
--# country : The country where this asset resides.- Returns:
- a
Stringobject.
-
setCountry
public void setCountry(String country)
setCountry
- Parameters:
country- aStringobject.
-
getLongitude
public Double getLongitude()
The longitude coordinate of this node.- Returns:
-
setLongitude
public void setLongitude(Double longitude)
-
getLatitude
public Double getLatitude()
The latitude coordinate of this node.- Returns:
-
setLatitude
public void setLatitude(Double latitude)
-
asAddressString
public String asAddressString()
-
mergeGeolocation
public void mergeGeolocation(OnmsGeolocation mergeWith)
-
-