|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xbill.DNS.Record
org.xbill.DNS.GPOSRecord
public class GPOSRecord
Geographical Location - describes the physical location of a host.
Field Summary |
---|
Fields inherited from class org.xbill.DNS.Record |
---|
dclass, name, ttl, type |
Constructor Summary | |
---|---|
GPOSRecord(Name name,
int dclass,
long ttl,
double longitude,
double latitude,
double altitude)
Creates an GPOS Record from the given data |
|
GPOSRecord(Name name,
int dclass,
long ttl,
String longitude,
String latitude,
String altitude)
Creates an GPOS Record from the given data |
Method Summary | |
---|---|
double |
getAltitude()
Returns the altitude as a double |
String |
getAltitudeString()
Returns the altitude as a string |
double |
getLatitude()
Returns the latitude as a double |
String |
getLatitudeString()
Returns the latitude as a string |
double |
getLongitude()
Returns the longitude as a double |
String |
getLongitudeString()
Returns the longitude as a string |
Methods inherited from class org.xbill.DNS.Record |
---|
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GPOSRecord(Name name, int dclass, long ttl, double longitude, double latitude, double altitude)
longitude
- The longitude component of the location.latitude
- The latitude component of the location.altitude
- The altitude component of the location (in meters above sea
level).public GPOSRecord(Name name, int dclass, long ttl, String longitude, String latitude, String altitude)
longitude
- The longitude component of the location.latitude
- The latitude component of the location.altitude
- The altitude component of the location (in meters above sea
level).Method Detail |
---|
public String getLongitudeString()
public double getLongitude()
NumberFormatException
- The string does not contain a valid numeric
value.public String getLatitudeString()
public double getLatitude()
NumberFormatException
- The string does not contain a valid numeric
value.public String getAltitudeString()
public double getAltitude()
NumberFormatException
- The string does not contain a valid numeric
value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |