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 String
asAddressString()
String
getAddress1()
--# address1 : Address of geographical location of asset, line 1.String
getAddress2()
--# address2 : Address of geographical location of asset, line 2.String
getCity()
--# city : The city where this asset resides.String
getCountry()
--# country : The country where this asset resides.Double
getLatitude()
The latitude coordinate of this node.Double
getLongitude()
The longitude coordinate of this node.String
getState()
--# state : The state where this asset resides.String
getZip()
--# zip : The zip code where this asset resides.void
mergeGeolocation(OnmsGeolocation mergeWith)
void
setAddress1(String address1)
setAddress1void
setAddress2(String address2)
setAddress2void
setCity(String city)
setCityvoid
setCountry(String country)
setCountryvoid
setLatitude(Double latitude)
void
setLongitude(Double longitude)
void
setState(String state)
setStatevoid
setZip(String zip)
setZipString
toString()
-
-
-
Method Detail
-
getAddress1
public String getAddress1()
--# address1 : Address of geographical location of asset, line 1.- Returns:
- a
String
object.
-
setAddress1
public void setAddress1(String address1)
setAddress1
- Parameters:
address1
- aString
object.
-
getAddress2
public String getAddress2()
--# address2 : Address of geographical location of asset, line 2.- Returns:
- a
String
object.
-
setAddress2
public void setAddress2(String address2)
setAddress2
- Parameters:
address2
- aString
object.
-
getCity
public String getCity()
--# city : The city where this asset resides.- Returns:
- a
String
object.
-
getState
public String getState()
--# state : The state where this asset resides.- Returns:
- a
String
object.
-
getZip
public String getZip()
--# zip : The zip code where this asset resides.- Returns:
- a
String
object.
-
getCountry
public String getCountry()
--# country : The country where this asset resides.- Returns:
- a
String
object.
-
setCountry
public void setCountry(String country)
setCountry
- Parameters:
country
- aString
object.
-
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)
-
-