thredds.catalog.query
Class Location

java.lang.Object
  extended by thredds.catalog.query.Location

public class Location
extends Object

Implementation of a DQC location element.

Author:
john caron

Constructor Summary
Location(String latitude, String longitude, String elevation, String latitude_units, String longitude_units, String elevation_units)
          Construct from fields in XML catalog.
 
Method Summary
 boolean equals(Object o)
           
 double getElevation()
           
 String getElevationUnits()
           
 double getLatitude()
           
 String getLatitudeUnits()
           
 double getLongitude()
           
 String getLongitudeUnits()
           
 boolean hasElevation()
           
 int hashCode()
          Override Object.hashCode() to implement equals.
 boolean isDefaultElevationUnits()
           
 boolean isDefaultLatitudeUnits()
           
 boolean isDefaultLongitudeUnits()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Location

public Location(String latitude,
                String longitude,
                String elevation,
                String latitude_units,
                String longitude_units,
                String elevation_units)
Construct from fields in XML catalog.

Parameters:
latitude - : the latitude of the location.
longitude - : the latitude of the location.
elevation - : the elevation of the location (optional)
latitude_units - : the units of latitude (optional, default degrees_north).
longitude_units - : the units of longitude (optional, default degrees_east).
elevation_units - : the units of elevation (optional, default meters).
Method Detail

getLatitude

public double getLatitude()

getLongitude

public double getLongitude()

hasElevation

public boolean hasElevation()

getElevation

public double getElevation()

getLatitudeUnits

public String getLatitudeUnits()

isDefaultLatitudeUnits

public boolean isDefaultLatitudeUnits()

getLongitudeUnits

public String getLongitudeUnits()

isDefaultLongitudeUnits

public boolean isDefaultLongitudeUnits()

getElevationUnits

public String getElevationUnits()

isDefaultElevationUnits

public boolean isDefaultElevationUnits()

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Override Object.hashCode() to implement equals.

Overrides:
hashCode in class Object


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.