gov.usda.gdpc
Class TaxonProperty

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

public class TaxonProperty
extends AbstractProperty

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

Author:
terryc

Field Summary
static TaxonProperty ACCESSION
          Accession of taxon (data type: java.lang.String).
static TaxonProperty COLLECTOR
          Collector of taxon (data type: java.lang.String).
static TaxonProperty COMMENTS
          Comments about taxon (data type: java.lang.String).
static TaxonProperty DATA_SOURCE
          Data source of taxon (data type: java.lang.String).
static TaxonProperty GENUS
          Genus of taxon (data type: java.lang.String).
static TaxonProperty GERMPLASM_TYPE
          Germplasm type of taxon (data type: java.lang.String).
static TaxonProperty ID
          Taxon id (data type: gov.usda.gdpc.Identifier).
static TaxonProperty LOCALITY
          Locality of Taxon (data type: gov.usda.gdpc.Locality).
static TaxonProperty NAME
          Name of taxon (data type: java.lang.String).
static TaxonProperty PLANT
          Plant of taxon (data type: java.lang.String).
static TaxonProperty POPULATION
          Population of taxon (data type: java.lang.String).
static java.lang.String PROPERTY_TYPE
          The property type.
static TaxonProperty REFERENCE
          Reference for taxon (data type: java.lang.String).
static TaxonProperty SEED_LOT
          Seed lot of taxon (data type: java.lang.String).
static TaxonProperty SOURCE
          Source of taxon (data type: java.lang.String).
static TaxonProperty SPECIES
          Species of taxon (data type: java.lang.String).
static TaxonProperty SUBSPECIES
          Subspecies of taxon (data type: java.lang.String).
 
Constructor Summary
TaxonProperty(java.lang.String name, java.lang.Class dataType, java.lang.String propertyType, java.lang.String propertySubType)
          TaxonProperty constructor.
TaxonProperty(java.lang.String name, java.lang.String dataType, java.lang.String propertyType, java.lang.String propertySubType)
          TaxonProperty constructor.
 
Method Summary
static TaxonProperty[] getDefinedProperties()
          Returns the list of created taxon properties.
static TaxonProperty getInstance(java.lang.String propertySubType)
          Return taxon property matching given sub type.
 
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 TaxonProperty ID
Taxon id (data type: gov.usda.gdpc.Identifier).


DATA_SOURCE

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


GENUS

public static final TaxonProperty GENUS
Genus of taxon (data type: java.lang.String).


SPECIES

public static final TaxonProperty SPECIES
Species of taxon (data type: java.lang.String).


SUBSPECIES

public static final TaxonProperty SUBSPECIES
Subspecies of taxon (data type: java.lang.String).


NAME

public static final TaxonProperty NAME
Name of taxon (data type: java.lang.String).


SOURCE

public static final TaxonProperty SOURCE
Source of taxon (data type: java.lang.String).


POPULATION

public static final TaxonProperty POPULATION
Population of taxon (data type: java.lang.String).


LOCALITY

public static final TaxonProperty LOCALITY
Locality of Taxon (data type: gov.usda.gdpc.Locality).


COLLECTOR

public static final TaxonProperty COLLECTOR
Collector of taxon (data type: java.lang.String).


REFERENCE

public static final TaxonProperty REFERENCE
Reference for taxon (data type: java.lang.String).


COMMENTS

public static final TaxonProperty COMMENTS
Comments about taxon (data type: java.lang.String).


GERMPLASM_TYPE

public static final TaxonProperty GERMPLASM_TYPE
Germplasm type of taxon (data type: java.lang.String).


SEED_LOT

public static final TaxonProperty SEED_LOT
Seed lot of taxon (data type: java.lang.String).


PLANT

public static final TaxonProperty PLANT
Plant of taxon (data type: java.lang.String).


ACCESSION

public static final TaxonProperty ACCESSION
Accession of taxon (data type: java.lang.String).

Constructor Detail

TaxonProperty

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

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

TaxonProperty

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

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

getInstance

public static TaxonProperty getInstance(java.lang.String propertySubType)
Return taxon property matching given sub type.

Parameters:
propertySubType - sub type
Returns:
taxon property instance

getDefinedProperties

public static TaxonProperty[] getDefinedProperties()
Returns the list of created taxon properties.

Returns:
list