anon.infoservice
Class ServiceLocation

java.lang.Object
  extended by anon.infoservice.ServiceLocation

public class ServiceLocation
extends java.lang.Object

Holds the information of the location of a service.


Field Summary
private  java.lang.String city
          This is the city where the service is located.
private  java.lang.String country
          This is the country where the service is located.
private  java.lang.String latitude
          This is the latitude of the service location.
private  java.lang.String longitude
          This is the longitude of the service location.
private  java.lang.String state
          This is the state where the service is located.
 
Constructor Summary
ServiceLocation(org.w3c.dom.Node locationNode, JAPCertificate mixCertificate)
          Creates a new ServiceLocation from XML description (Location node).
 
Method Summary
 java.lang.String getCity()
          Returns the city where the service is located.
 java.lang.String getCountry()
          Returns the country where the service is located.
 java.lang.String getLatitude()
          Returns the latitude of the service location.
 java.lang.String getLongitude()
          Returns the longitude of the service location.
 java.lang.String getState()
          Returns the state where the service is located.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

city

private java.lang.String city
This is the city where the service is located.


state

private java.lang.String state
This is the state where the service is located.


country

private java.lang.String country
This is the country where the service is located.


longitude

private java.lang.String longitude
This is the longitude of the service location. Should be between -180.0 (west of Greenwich) and 180.0 (east of Greenwich).


latitude

private java.lang.String latitude
This is the latitude of the service location. Should be between -90.0 (South Pole) and 90.0 (North Pole).

Constructor Detail

ServiceLocation

public ServiceLocation(org.w3c.dom.Node locationNode,
                       JAPCertificate mixCertificate)
Creates a new ServiceLocation from XML description (Location node).

Parameters:
locationNode - The Location node from an XML document.
Method Detail

getCity

public java.lang.String getCity()
Returns the city where the service is located.

Returns:
The city where the service is located.

getState

public java.lang.String getState()
Returns the state where the service is located.

Returns:
The state where the service is located.

getCountry

public java.lang.String getCountry()
Returns the country where the service is located.

Returns:
The country where the service is located.

getLongitude

public java.lang.String getLongitude()
Returns the longitude of the service location. Should be between -180.0 (west of Greenwich) and 180.0 (east of Greenwich).

Returns:
The longitude of the service location.

getLatitude

public java.lang.String getLatitude()
Returns the latitude of the service location. Should be between -90.0 (South Pole) and 90.0 (North Pole).

Returns:
The latitude of the service location.