|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.etaxonomy.cdm.model.common.CdmBase
eu.etaxonomy.cdm.model.common.VersionableEntity
eu.etaxonomy.cdm.model.common.AnnotatableEntity
eu.etaxonomy.cdm.model.common.IdentifiableEntity<PolytomousKeyDefaultCacheStrategy>
eu.etaxonomy.cdm.model.description.PolytomousKey
@Entity @Indexed(index="eu.etaxonomy.cdm.model.media.FeatureTree") public class PolytomousKey
This class represents a fixed single-access key (dichotomous or
polytomous) used to identify (assign a taxon to) a specimen or observation. The key may be written manually or may be generated automatically
e.g. by the PolytomousKeyGenerator. The different paths to the taxa are expressed
by a decision graph consisting of PolytomousKeyNodes. The root node of such graph is accessible by
getRoot(). Refer to PolytomousKeyNode for detailed
documentation on the decision graph structure.
| Field Summary |
|---|
| Fields inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
|---|
cacheStrategy, NOT_PROTECTED, PROTECTED, protectedTitleCache, titleCache |
| Fields inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity |
|---|
annotations, markers |
| Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
uuid |
| Constructor Summary | |
|---|---|
protected |
PolytomousKey()
Class constructor: creates a new empty multi-access key instance. |
| Method Summary | |
|---|---|
void |
addCoveredTaxon(Taxon taxon)
Adds a taxa to the set of covered
taxa corresponding to this identification key. |
void |
addGeographicalScope(NamedArea geoScope)
Adds a geoScope to the set of geogspatial scopes corresponding to this identification key. |
void |
addScopeRestriction(Scope scopeRestriction)
Adds a scope restriction to the set of
scope restrictions corresponding to
this identification key. |
void |
addTaxonomicScope(Taxon taxon)
Adds a taxa to the set of taxonomic scopes corresponding to this identification key. |
Object |
clone()
Clones this PolytomousKey. |
Set<Taxon> |
getCoveredTaxa()
Returns the set of possible taxa corresponding to
this identification key. |
Set<NamedArea> |
getGeographicalScope()
Returns the set of named areas indicating the
geospatial data where this identification key is valid. |
PolytomousKeyNode |
getRoot()
Returns the topmost polytomous key node (root
node) of this polytomous key. |
Set<Scope> |
getScopeRestrictions()
Returns the set of scope restrictions corresponding to
this identification key |
Set<Taxon> |
getTaxonomicScope()
Returns the set of taxa that define the taxonomic scope of
this identification key |
static PolytomousKey |
NewInstance()
Creates a new empty identification multi-access key instance. |
static PolytomousKey |
NewTitledInstance(String title)
Creates a new empty identification polytomous key instance. |
String |
print(PrintStream stream)
|
void |
removeCoveredTaxon(Taxon taxon)
Removes one element from the set of covered
taxa corresponding to this identification key. |
void |
removeGeographicalScope(NamedArea geoScope)
Removes one element from the set of geogspatial
scopes corresponding to this identification key. |
void |
removeScopeRestriction(Scope scopeRestriction)
Removes one element from the set of scope
restrictions corresponding to this identification key. |
void |
removeTaxonomicScope(Taxon taxon)
Removes one element from the set of taxonomic
scopes corresponding to this identification key. |
protected void |
setCoveredTaxa(Set<Taxon> coveredTaxa)
|
void |
setRoot(PolytomousKeyNode root)
This method should be used by Hibernate only. |
| Methods inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
|---|
addCredit, addCredit, addExtension, addExtension, addRights, addSource, addSource, compareTo, generateTitle, getCacheStrategy, getCredits, getCredits, getData, getExtensions, getExtensions, getExtensions, getLsid, getRights, getSources, getTitleCache, getTruncatedCache, initListener, isProtectedTitleCache, regenerateTitleCache, removeCredit, removeCredit, removeExtension, removeRights, removeSource, setCacheStrategy, setLsid, setProtectedTitleCache, setTitleCache, setTitleCache, toString |
| Methods inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity |
|---|
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker |
| Methods inherited from class eu.etaxonomy.cdm.model.common.VersionableEntity |
|---|
equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy |
| Methods inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
addPropertyChangeListener, addPropertyChangeListener, clone, deproxy, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUuid, hashCode, hasListeners, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.IAnnotatableEntity |
|---|
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.IVersionableEntity |
|---|
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.ICdmBase |
|---|
getCreated, getCreatedBy, getId, getUuid, setCreated, setCreatedBy, setId, setUuid |
| Constructor Detail |
|---|
protected PolytomousKey()
| Method Detail |
|---|
public static PolytomousKey NewInstance()
public static PolytomousKey NewTitledInstance(String title)
public PolytomousKeyNode getRoot()
polytomous key node (root
node) of this polytomous key. The root node does not have any
parent. Since polytomous key nodes recursively point to their child nodes
the complete polytomous key is defined by its root node.
public void setRoot(PolytomousKeyNode root)
getRoot()public Set<Taxon> getCoveredTaxa()
taxa corresponding to
this identification key.
getCoveredTaxa in interface IIdentificationKeyprotected void setCoveredTaxa(Set<Taxon> coveredTaxa)
getCoveredTaxa()public void addCoveredTaxon(Taxon taxon)
taxa to the set of covered
taxa corresponding to this identification key.
addCoveredTaxon in interface IIdentificationKeytaxon - the taxon to be added to this identification keygetCoveredTaxa()public void removeCoveredTaxon(Taxon taxon)
covered
taxa corresponding to this identification key.
removeCoveredTaxon in interface IIdentificationKeytaxon - the taxon which should be removedgetCoveredTaxa(),
addCoveredTaxon(Taxon)public Set<NamedArea> getGeographicalScope()
named areas indicating the
geospatial data where this identification key is valid.
getGeographicalScope in interface IIdentificationKeypublic void addGeographicalScope(NamedArea geoScope)
geoScope to the set of geogspatial scopes corresponding to this identification key.
addGeographicalScope in interface IIdentificationKeygeoScope - the named area to be added to this identification key#getGeoScopes()public void removeGeographicalScope(NamedArea geoScope)
geogspatial
scopes corresponding to this identification key.
removeGeographicalScope in interface IIdentificationKeygeoScope - the named area which should be removed#getGeoScopes(),
#addGeoScope(NamedArea)public Set<Taxon> getTaxonomicScope()
taxa that define the taxonomic scope of
this identification key
getTaxonomicScope in interface IIdentificationKeypublic void addTaxonomicScope(Taxon taxon)
taxa to the set of taxonomic scopes corresponding to this identification key.
addTaxonomicScope in interface IIdentificationKeytaxon - the taxon to be added to this identification keygetTaxonomicScope()public void removeTaxonomicScope(Taxon taxon)
taxonomic
scopes corresponding to this identification key.
removeTaxonomicScope in interface IIdentificationKeytaxon - the taxon which should be removedgetTaxonomicScope(),
addTaxonomicScope(Taxon)public Set<Scope> getScopeRestrictions()
scope restrictions corresponding to
this identification key
getScopeRestrictions in interface IIdentificationKeypublic void addScopeRestriction(Scope scopeRestriction)
scope restriction to the set of
scope restrictions corresponding to
this identification key.
addScopeRestriction in interface IIdentificationKeyscopeRestriction - the scope restriction to be added to this
identification keygetScopeRestrictions()public void removeScopeRestriction(Scope scopeRestriction)
scope
restrictions corresponding to this identification key.
removeScopeRestriction in interface IIdentificationKeyscopeRestriction - the scope restriction which should be removedgetScopeRestrictions(),
addScopeRestriction(Scope)public String print(PrintStream stream)
public Object clone()
clone in class IdentifiableEntity<PolytomousKeyDefaultCacheStrategy>IdentifiableEntity.clone(),
Object.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||