gov.usda.gdpc
Class LocalityProperty

java.lang.Object
  extended bygov.usda.gdpc.AbstractProperty
      extended bygov.usda.gdpc.LocalityProperty
All Implemented Interfaces:
java.lang.Comparable, Property

public class LocalityProperty
extends AbstractProperty

This follows the enum pattern and represents a locality property. This is used to define the specific properties of a locality.

Author:
terryc

Field Summary
static LocalityProperty ALTITUDE
          Altitude of locality (data type: java.lang.Double).
static LocalityProperty CITY
          City of locality (data type: java.lang.String).
static LocalityProperty COUNTRY
          Country of locality (data type: java.lang.String).
static LocalityProperty DATA_SOURCE
          Data source of locality (data type: java.lang.String).
static LocalityProperty ELEVATION
          Elevation of locality (data type: java.lang.Double).
static LocalityProperty ID
          ID of locality (data type: gov.usda.gdpc.Identifier).
static LocalityProperty LATITUDE
          Latitude of locality (data type: java.lang.Double).
static LocalityProperty LONGITUDE
          Longitude of locality (data type: java.lang.Double).
static LocalityProperty NAME
          Name of locality (data type: java.lang.String).
static java.lang.String PROPERTY_TYPE
          The property type.
static LocalityProperty STATE_PROVINCE
          State or province of locality (data type: java.lang.String).
 
Constructor Summary
LocalityProperty(java.lang.String name, java.lang.Class dataType, java.lang.String propertyType, java.lang.String propertySubType)
          LocalityProperty constructor.
LocalityProperty(java.lang.String name, java.lang.String dataType, java.lang.String propertyType, java.lang.String propertySubType)
          LocalityProperty constructor.
 
Method Summary
static LocalityProperty[] getDefinedProperties()
           
static LocalityProperty getInstance(java.lang.String propertySubType)
           
 
Methods inherited from class gov.usda.gdpc.AbstractProperty
compareTo, equals, getDataType, getName, getSubType, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTY_TYPE

public static final java.lang.String PROPERTY_TYPE
The property type.

See Also:
Constant Field Values

ID

public static final LocalityProperty ID
ID of locality (data type: gov.usda.gdpc.Identifier).


DATA_SOURCE

public static final LocalityProperty DATA_SOURCE
Data source of locality (data type: java.lang.String).


NAME

public static final LocalityProperty NAME
Name of locality (data type: java.lang.String).


STATE_PROVINCE

public static final LocalityProperty STATE_PROVINCE
State or province of locality (data type: java.lang.String).


COUNTRY

public static final LocalityProperty COUNTRY
Country of locality (data type: java.lang.String).


ALTITUDE

public static final LocalityProperty ALTITUDE
Altitude of locality (data type: java.lang.Double).


LATITUDE

public static final LocalityProperty LATITUDE
Latitude of locality (data type: java.lang.Double).


LONGITUDE

public static final LocalityProperty LONGITUDE
Longitude of locality (data type: java.lang.Double).


ELEVATION

public static final LocalityProperty ELEVATION
Elevation of locality (data type: java.lang.Double).


CITY

public static final LocalityProperty CITY
City of locality (data type: java.lang.String).

Constructor Detail

LocalityProperty

public LocalityProperty(java.lang.String name,
                        java.lang.String dataType,
                        java.lang.String propertyType,
                        java.lang.String propertySubType)
LocalityProperty constructor.

Parameters:
name - locality property name
dataType - data type of this property (class name)
propertyType - property type
propertySubType - property subtype

LocalityProperty

public LocalityProperty(java.lang.String name,
                        java.lang.Class dataType,
                        java.lang.String propertyType,
                        java.lang.String propertySubType)
LocalityProperty constructor.

Parameters:
name - locality property name
dataType - data type of this property (class)
propertyType - property type
propertySubType - property subtype
Method Detail

getInstance

public static LocalityProperty getInstance(java.lang.String propertySubType)

getDefinedProperties

public static LocalityProperty[] getDefinedProperties()