|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.usda.gdpc.AbstractDBElement
gov.usda.gdpc.Locus
This is a database element representing a locus.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Field Summary | |
static java.lang.String |
LOCUS_TYPE_CYTOLOGICAL
Locus type cytological. |
static java.lang.String |
LOCUS_TYPE_GENE
Locus type gene. |
static java.lang.String |
LOCUS_TYPE_INTERGENIC
Locus type intergenic. |
static java.lang.String |
LOCUS_TYPE_UNKNOWN
Locus type unknown. |
static java.lang.String |
TYPE
|
| Fields inherited from class gov.usda.gdpc.AbstractDBElement |
myProperties |
| Method Summary | |
static java.lang.String |
buildKey(java.util.Map properties)
This builds the unique key for this locus based on the LocusProperty.ID and LocusProperty.DATA_SOURCE. |
static java.lang.String |
buildKey(java.lang.String dataSource,
Identifier id)
This builds the unique key for this locus based on the LocusProperty.ID and LocusProperty.DATA_SOURCE. |
static Locus |
getCachedInstance(java.util.Map properties)
This returns the locus instance given specified id and source. |
java.lang.String |
getDataSource()
Returns the data source of this locus. |
Identifier |
getID()
Returns identifier of this locus. |
static Locus |
getInstance(java.util.Map properties)
This returns the Locus instance given specified list of properties. |
java.lang.String |
getName()
Returns the name of this locus. |
java.lang.String |
getType()
Get type of this element. |
| Methods inherited from class gov.usda.gdpc.AbstractDBElement |
clear, compareTo, containsKey, containsValue, entrySet, equals, get, getKey, getProperty, isEmpty, keySet, numProperties, properties, propsEqual, put, putAll, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
hashCode |
| Field Detail |
public static final java.lang.String TYPE
public static final java.lang.String LOCUS_TYPE_GENE
public static final java.lang.String LOCUS_TYPE_INTERGENIC
public static final java.lang.String LOCUS_TYPE_CYTOLOGICAL
public static final java.lang.String LOCUS_TYPE_UNKNOWN
| Method Detail |
public static Locus getInstance(java.util.Map properties)
properties - properties of this locus. The keys are
the properties (type: LocusProperty) and the values are the
corresponding value. Properties can not have a value equal to
null. It is not allowed to have two keys that are the same.
The LocusProperty.ID, LocusProperty.DATA_SOURCE,
and LocusProperty.NAME properties must be defined.
public static Locus getCachedInstance(java.util.Map properties)
properties - properties of this locus. The keys are
the properties (type: LocusProperty) and the values are the
corresponding value. Properties can not have a value equal to
null. Only the LocusProperty.ID and LocusProperty.DATA_SOURCE
are used to find a matching locus in the cache.
public static java.lang.String buildKey(java.util.Map properties)
properties - properties map
public static java.lang.String buildKey(java.lang.String dataSource,
Identifier id)
dataSource - data sourceid - identifier
public java.lang.String getName()
getName in interface DBElementgetName in class AbstractDBElementpublic java.lang.String getDataSource()
getDataSource in interface DBElementgetDataSource in class AbstractDBElementpublic Identifier getID()
getID in interface DBElementgetID in class AbstractDBElementpublic java.lang.String getType()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||