de.unikassel.android.sdcframework.data.independent
Class GeoLocation

Package class diagram package GeoLocation
java.lang.Object
  extended by de.unikassel.android.sdcframework.data.independent.GeoLocation
All Implemented Interfaces:
SerializableData

public class GeoLocation
extends Object
implements SerializableData

The location fix data fro samples.


Field Summary
private  double lat
          The location latitude
static String Lat
          The intent identifier for the latitude field
private  double lon
          The location longitude
static String Lon
          The intent identifier for the longitude field
 
Constructor Summary
GeoLocation()
          Constructor
GeoLocation(GeoLocation location)
          Copy onstructor
 
Method Summary
 GeoLocation doClone()
          Method to clone the sample data
 boolean equals(Object o)
           
 double getLat()
          Getter for the latitude
 double getLon()
          Getter for the lon
 void setLat(double lat)
          Setter for the lat
 void setLon(double lon)
          Setter for the longitude
 String toString()
           
 String toXML()
          Serialization from the type to it's XML representation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Lon

public static final String Lon
The intent identifier for the longitude field

See Also:
Constant Field Values

Lat

public static final String Lat
The intent identifier for the latitude field

See Also:
Constant Field Values

lon

private double lon
The location longitude


lat

private double lat
The location latitude

Constructor Detail

GeoLocation

public GeoLocation()
Constructor


GeoLocation

public GeoLocation(GeoLocation location)
Copy onstructor

Parameters:
location - the location to copy from
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

doClone

public final GeoLocation doClone()
Method to clone the sample data

Returns:
the cloned object

getLon

public double getLon()
Getter for the lon

Returns:
the lon

setLon

public void setLon(double lon)
Setter for the longitude

Parameters:
lon - the longitude to set

getLat

public double getLat()
Getter for the latitude

Returns:
the latitude

setLat

public void setLat(double lat)
Setter for the lat

Parameters:
lat - the lat to set

toString

public final String toString()
Overrides:
toString in class Object

toXML

public String toXML()
             throws Exception
Description copied from interface: SerializableData
Serialization from the type to it's XML representation

Specified by:
toXML in interface SerializableData
Returns:
the XML representation of the type if successful, null otherwise
Throws:
Exception - if the schema for the object is not valid