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 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 m_commonName
           
private  java.lang.String m_country
          This is the country where the service is located.
private  java.lang.String state
          This is the state where the service is located.
static java.lang.String XML_ELEMENT_CITY
           
static java.lang.String XML_ELEMENT_COUNTRY
           
static java.lang.String XML_ELEMENT_GEO
           
static java.lang.String XML_ELEMENT_LATITUDE
           
static java.lang.String XML_ELEMENT_LONGITUDE
           
static java.lang.String XML_ELEMENT_NAME
           
static java.lang.String XML_ELEMENT_POSITION
           
static java.lang.String XML_ELEMENT_STATE
           
 
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 getCommonName()
           
 java.lang.String getCountryCode()
          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.
 org.w3c.dom.Element toXMLElement(org.w3c.dom.Document ownerDocument)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_ELEMENT_NAME

public static final java.lang.String XML_ELEMENT_NAME
See Also:
Constant Field Values

XML_ELEMENT_CITY

public static final java.lang.String XML_ELEMENT_CITY
See Also:
Constant Field Values

XML_ELEMENT_STATE

public static final java.lang.String XML_ELEMENT_STATE
See Also:
Constant Field Values

XML_ELEMENT_COUNTRY

public static final java.lang.String XML_ELEMENT_COUNTRY
See Also:
Constant Field Values

XML_ELEMENT_POSITION

public static final java.lang.String XML_ELEMENT_POSITION
See Also:
Constant Field Values

XML_ELEMENT_GEO

public static final java.lang.String XML_ELEMENT_GEO
See Also:
Constant Field Values

XML_ELEMENT_LONGITUDE

public static final java.lang.String XML_ELEMENT_LONGITUDE
See Also:
Constant Field Values

XML_ELEMENT_LATITUDE

public static final java.lang.String XML_ELEMENT_LATITUDE
See Also:
Constant Field Values

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.


m_country

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


m_commonName

private java.lang.String m_commonName

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.

getCountryCode

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

Returns:
The country where the service is located.

getCommonName

public java.lang.String getCommonName()

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.

toXMLElement

public org.w3c.dom.Element toXMLElement(org.w3c.dom.Document ownerDocument)