@Entity public class PresenceAbsenceTerm extends OrderedTermBase<PresenceAbsenceTerm>
absence
(like "extinct") or the presence
(like "cultivated") of a
taxon
in an area
. These terms are only
used for distributions
.
The current implementation includes multiple qualities of distribution status:http://dev.e-taxonomy.eu/redmine/issues/6000
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected static java.util.Map<java.util.UUID,PresenceAbsenceTerm> |
termMap |
static java.util.UUID |
uuidCultivated |
static java.util.UUID |
uuidIntroduced |
static java.util.UUID |
uuidIntroducedUncertainDegreeNaturalisation |
static java.util.UUID |
uuidIntroducesAdventitious |
static java.util.UUID |
uuidNative |
static java.util.UUID |
uuidNativeError |
static java.util.UUID |
uuidNativePresenceQuestionable |
static java.util.UUID |
uuidNaturalised |
static java.util.UUID |
uuidPresent |
orderIndex
partOf, vocabulary
cacheStrategy, NOT_PROTECTED, PROTECTED, protectedTitleCache, titleCache
annotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
PresenceAbsenceTerm()
Deprecated.
|
protected |
PresenceAbsenceTerm(java.lang.String term,
java.lang.String label,
java.lang.String labelAbbrev,
boolean isAbsenceTerm)
Class constructor: creates a new presence or absence term with a description
(in the
default language ), a label and a label abbreviation. |
Modifier and Type | Method and Description |
---|---|
static PresenceAbsenceTerm |
ABSENT() |
static PresenceAbsenceTerm |
CASUAL_PRESENCE_QUESTIONABLE()
Casual alien, presence questionable
|
static PresenceAbsenceTerm |
CASUAL_REPORTED_IN_ERROR()
Casual alien, reported in error
|
static PresenceAbsenceTerm |
CASUAL()
Casual alien or introduced: adventive (casual)
|
static PresenceAbsenceTerm |
CULTIVATED_PRESENCE_QUESTIONABLE()
The taxon is cultivated but presence is questionable.
|
static PresenceAbsenceTerm |
CULTIVATED_REPORTED_IN_ERROR()
The taxon is erroneously reported as cultivated.
|
static PresenceAbsenceTerm |
CULTIVATED()
The taxon is not native but cultivated.
|
static PresenceAbsenceTerm |
ENDEMIC_DOUBTFULLY_PRESENT()
The taxon is endemic for the given area but doubtfully present.
|
static PresenceAbsenceTerm |
ENDEMIC_FOR_THE_RELEVANT_AREA()
The taxon is endemic for the given area.
|
static PresenceAbsenceTerm |
ENDEMIC_REPORTED_IN_ERROR()
The taxon if it exists is endemic for the given area but was only
erroneously reported.
|
static PresenceAbsenceTerm |
ENDEMISM_UNKNOWN()
The taxon is present but with unknown endemism for the given area.
|
java.lang.String |
getDefaultColor() |
static PresenceAbsenceTerm |
getPresenceAbsenceTermByAbbreviation(java.lang.String abbrev) |
protected static PresenceAbsenceTerm |
getTermByUuid(java.util.UUID uuid) |
static PresenceAbsenceTerm |
INTRODUCED_ADVENTITIOUS()
Deprecated.
better use
CASUAL() , which has the same result (same semantics, but more precise) |
static PresenceAbsenceTerm |
INTRODUCED_CULTIVATED() |
static PresenceAbsenceTerm |
INTRODUCED_DOUBTFULLY_INTRODUCED() |
static PresenceAbsenceTerm |
INTRODUCED_FORMERLY_INTRODUCED() |
static PresenceAbsenceTerm |
INTRODUCED_PRESENCE_QUESTIONABLE() |
static PresenceAbsenceTerm |
INTRODUCED_REPORTED_IN_ERROR() |
static PresenceAbsenceTerm |
INTRODUCED_UNCERTAIN_DEGREE_OF_NATURALISATION() |
static PresenceAbsenceTerm |
INTRODUCED() |
static PresenceAbsenceTerm |
INVASIVE_PRESENCE_QUESTIONABLE()
Invasive, presence questionable.
|
static PresenceAbsenceTerm |
INVASIVE()
Naturalized invasive.
|
boolean |
isAbsenceTerm() |
static PresenceAbsenceTerm |
NATIVE_DOUBTFULLY_NATIVE_REPORTED_IN_ERROR()
Same as
NATIVE() but the nativeness is doubtful, while presence
is NOT questionable |
static PresenceAbsenceTerm |
NATIVE_DOUBTFULLY_NATIVE()
Same as
NATIVE() but the nativeness is doubtful, while presence
is NOT questionable |
static PresenceAbsenceTerm |
NATIVE_FORMERLY_NATIVE()
The taxon was formerly native, but is extinct now in the given area.
|
static PresenceAbsenceTerm |
NATIVE_PRESENCE_QUESTIONABLE()
Same as
NATIVE() but presence is questionable |
static PresenceAbsenceTerm |
NATIVE_REPORTED_IN_ERROR()
Same as
NATIVE() but presence was reported in error, so
finally it is not native. |
static PresenceAbsenceTerm |
NATIVE()
Use native if the taxon is native in the according area.
|
static PresenceAbsenceTerm |
NATURALISED_PRESENCE_QUESTIONABLE() |
static PresenceAbsenceTerm |
NATURALISED_REPORTED_IN_ERROR() |
static PresenceAbsenceTerm |
NATURALISED()
Naturalized (or introduced: naturalized).
|
static PresenceAbsenceTerm |
NewAbsenceInstance(java.lang.String term,
java.lang.String label,
java.lang.String labelAbbrev)
Creates a new absence term with a description (in the
default language ),
a label and a label abbreviation. |
static PresenceAbsenceTerm |
NewInstance()
Creates a new empty presence term.
|
static PresenceAbsenceTerm |
NewPresenceInstance(java.lang.String term,
java.lang.String label,
java.lang.String labelAbbrev)
Creates a new presence term with a description (in the
default language ),
a label and a label abbreviation. |
static PresenceAbsenceTerm |
NON_INVASIVE_PRESENCE_QUESTIONABLE()
The taxon is questionable present and not native in the given area (naturalized).
|
static PresenceAbsenceTerm |
NON_INVASIVE()
The taxon is present but not native in the given area (naturalized).
|
static PresenceAbsenceTerm |
NOT_ENDEMIC_FOR_THE_RELEVANT_AREA()
The taxon is present but not endemic for the given area.
|
protected int |
performCompareTo(PresenceAbsenceTerm presenceAbsenceTerm,
boolean skipVocabularyCheck)
Compares this OrderedTermBase with the specified OrderedTermBase for
order.
|
static PresenceAbsenceTerm |
PRESENT_DOUBTFULLY()
Presence of the taxon in the given area is doubtful.
|
static PresenceAbsenceTerm |
PRESENT()
The taxon is present in the given area.
|
PresenceAbsenceTerm |
readCsvLine(java.lang.Class<PresenceAbsenceTerm> termClass,
java.util.List<java.lang.String> csvLine,
TermType termType,
java.util.Map<java.util.UUID,DefinedTermBase> terms,
boolean abbrevAsId)
Fills the
term with contents from a csvLine. |
static PresenceAbsenceTerm |
REPORTED_IN_ERROR()
The taxon is
absent in the given area
but was erroneously reported as present. |
void |
resetTerms() |
void |
setAbsenceTerm(boolean isAbsenceTerm) |
void |
setDefaultColor(java.lang.String defaultColor) |
protected void |
setDefaultTerms(TermVocabulary<PresenceAbsenceTerm> termVocabulary) |
clone, compareTo, decreaseIndex, getNextHigherTerm, getNextLowerTerm, getOrderIndex, incrementIndex, isHigher, isLower
addGeneralizationOf, addIncludes, addMedia, getByUuid, getCacher, getGeneralizationOf, getGeneralizationOf, getIdInVocabulary, getIncludes, getKindOf, getMedia, getPartOf, getSymbol, getSymbol2, getTermByClassAndUUID, getVocabulary, isKindOf, partOfCsvLineIndex, readCsvLine, readIsPartOf, removeGeneralization, removeIncludes, removeMedia, setCacher, setGeneralizationOf, setIdInVocabulary, setIncludes, setKindOf, setPartOf, setSymbol, setSymbol2, setVocabulary, writeCsvLine
addRepresentation, getDescription, getDescription, getLabel, getLabel, getPreferredRepresentation, getPreferredRepresentation, getRepresentation, getRepresentations, getTermType, getUri, removeRepresentation, setLabel, setLabel, setTermType, setUri, toString
addCredit, addCredit, addExtension, addExtension, addIdentifier, addIdentifier, addIdentifier, addRights, addSource, addSources, createNewSource, generateTitle, getCacheStrategy, getCredits, getCredits, getData, getExtensions, getExtensions, getExtensions, getExtensionsConcat, getExtensionsConcat, getFilteredExtensions, getIdentifiers, getIdentifiers, getIdentifiers, getLsid, getRights, getTitleCache, getTruncatedCache, hasEmptyTitleCache, hasExtension, hasExtension, initListener, isProtectedTitleCache, removeCredit, removeCredit, removeExtension, removeIdentifier, removeIdentifier, removeRights, replaceCredit, replaceIdentifier, resetTitleCache, setCacheStrategy, setLsid, setProtectedTitleCache, setTitleCache, setTitleCache, updateCaches, updateCaches
addAggregationSource, addImportSource, addPrimaryTaxonomicSource, addPrimaryTaxonomicSource, addSource, addSource, getSources, removeSource, removeSources
addAnnotation, addMarker, addMarker, getAnnotations, getAnnotations, getMarkers, getMarkers, hasMarker, hasMarker, markerValue, removeAnnotation, removeMarker, removeMarker, setAnnotations
cloneLanguageString, equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
addPropertyChangeListener, addPropertyChangeListener, addToSetWithChangeEvent, deproxy, deproxy, fireOnCreateEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUserFriendlyDescription, getUserFriendlyFieldName, getUserFriendlyTypeName, getUuid, hashCode, hasListeners, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isBlank, isInstanceOf, isNotBlank, isPersited, removeFromSetWithChangeEvent, removePropertyChangeListener, removePropertyChangeListener, replaceInList, setCreated, setCreatedBy, setId, setNewEntityListener, setUuid
finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid
checkTermTypeEqualOrDescendant, checkTermTypeNull, checkTermTypes
removeSources
addAggregationSource, addImportSource, addPrimaryTaxonomicSource, addPrimaryTaxonomicSource, addSource, addSource, getSources, removeSource
addAnnotation, addMarker, getAnnotations, getMarkers, getMarkers, hasMarker, hasMarker, markerValue, removeAnnotation, removeMarker, removeMarker
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
public static final java.util.UUID uuidPresent
public static final java.util.UUID uuidNative
public static final java.util.UUID uuidCultivated
public static final java.util.UUID uuidIntroduced
public static final java.util.UUID uuidIntroducedUncertainDegreeNaturalisation
public static final java.util.UUID uuidIntroducesAdventitious
public static final java.util.UUID uuidNaturalised
public static final java.util.UUID uuidNativePresenceQuestionable
public static final java.util.UUID uuidNativeError
protected static java.util.Map<java.util.UUID,PresenceAbsenceTerm> termMap
@Deprecated protected PresenceAbsenceTerm()
protected PresenceAbsenceTerm(java.lang.String term, java.lang.String label, java.lang.String labelAbbrev, boolean isAbsenceTerm)
default language
), a label and a label abbreviation.term
- the string (in the default language) describing the
new presence or absence term to be createdlabel
- the string identifying the new presence or absence term to be createdlabelAbbrev
- the string identifying (in abbreviated form) the
new presence or absence term to be createdisAbsenceTerm
- boolean value indicating if this term represents an absence or not#PresenceAbsenceTermBase()
public static PresenceAbsenceTerm NewInstance()
#NewInstance(String, String, String)
public static PresenceAbsenceTerm NewPresenceInstance(java.lang.String term, java.lang.String label, java.lang.String labelAbbrev)
default language
),
a label and a label abbreviation.term
- the string (in the default language) describing the
new presence term to be createdlabel
- the string identifying the new presence term to be createdlabelAbbrev
- the string identifying (in abbreviated form) the
new presence term to be createdNewInstance()
public static PresenceAbsenceTerm NewAbsenceInstance(java.lang.String term, java.lang.String label, java.lang.String labelAbbrev)
default language
),
a label and a label abbreviation.term
- the string (in the default language) describing the
new presence term to be createdlabel
- the string identifying the new presence term to be createdlabelAbbrev
- the string identifying (in abbreviated form) the
new presence term to be createdNewInstance()
protected static PresenceAbsenceTerm getTermByUuid(java.util.UUID uuid)
public static PresenceAbsenceTerm getPresenceAbsenceTermByAbbreviation(java.lang.String abbrev)
public static final PresenceAbsenceTerm ENDEMIC_FOR_THE_RELEVANT_AREA()
public static final PresenceAbsenceTerm NOT_ENDEMIC_FOR_THE_RELEVANT_AREA()
public static final PresenceAbsenceTerm ENDEMISM_UNKNOWN()
public static final PresenceAbsenceTerm ENDEMIC_DOUBTFULLY_PRESENT()
public static final PresenceAbsenceTerm ENDEMIC_REPORTED_IN_ERROR()
public static final PresenceAbsenceTerm PRESENT()
PRESENT_DOUBTFULLY()
,
ABSENT()
public static final PresenceAbsenceTerm PRESENT_DOUBTFULLY()
public static final PresenceAbsenceTerm CULTIVATED()
public static final PresenceAbsenceTerm CULTIVATED_PRESENCE_QUESTIONABLE()
CULTIVATED()
,
CULTIVATED_REPORTED_IN_ERROR()
public static final PresenceAbsenceTerm CULTIVATED_REPORTED_IN_ERROR()
CULTIVATED()
,
CULTIVATED_REPORTED_IN_ERROR()
public static final PresenceAbsenceTerm INTRODUCED()
public static final PresenceAbsenceTerm CASUAL()
public static final PresenceAbsenceTerm CASUAL_PRESENCE_QUESTIONABLE()
CASUAL()
,
CASUAL_REPORTED_IN_ERROR()
,
PRESENT_DOUBTFULLY()
public static final PresenceAbsenceTerm CASUAL_REPORTED_IN_ERROR()
@Deprecated public static final PresenceAbsenceTerm INTRODUCED_ADVENTITIOUS()
CASUAL()
, which has the same result (same semantics, but more precise)public static final PresenceAbsenceTerm INTRODUCED_CULTIVATED()
public static final PresenceAbsenceTerm INTRODUCED_DOUBTFULLY_INTRODUCED()
public static final PresenceAbsenceTerm INTRODUCED_UNCERTAIN_DEGREE_OF_NATURALISATION()
public static final PresenceAbsenceTerm INTRODUCED_PRESENCE_QUESTIONABLE()
public static final PresenceAbsenceTerm INTRODUCED_FORMERLY_INTRODUCED()
public static final PresenceAbsenceTerm INTRODUCED_REPORTED_IN_ERROR()
public static final PresenceAbsenceTerm NATIVE()
public static final PresenceAbsenceTerm NATIVE_PRESENCE_QUESTIONABLE()
NATIVE()
but presence is questionablepublic static final PresenceAbsenceTerm NATIVE_FORMERLY_NATIVE()
public static final PresenceAbsenceTerm NATIVE_REPORTED_IN_ERROR()
NATIVE()
but presence was reported in error, so
finally it is not native.public static final PresenceAbsenceTerm NATIVE_DOUBTFULLY_NATIVE()
NATIVE()
but the nativeness is doubtful, while presence
is NOT questionablepublic static final PresenceAbsenceTerm NATIVE_DOUBTFULLY_NATIVE_REPORTED_IN_ERROR()
NATIVE()
but the nativeness is doubtful, while presence
is NOT questionablepublic static final PresenceAbsenceTerm NATURALISED()
public static final PresenceAbsenceTerm NATURALISED_PRESENCE_QUESTIONABLE()
NATURALISED()
public static final PresenceAbsenceTerm NATURALISED_REPORTED_IN_ERROR()
public static final PresenceAbsenceTerm INVASIVE()
public static final PresenceAbsenceTerm INVASIVE_PRESENCE_QUESTIONABLE()
public static final PresenceAbsenceTerm NON_INVASIVE()
public static final PresenceAbsenceTerm NON_INVASIVE_PRESENCE_QUESTIONABLE()
NON_INVASIVE()
,
INVASIVE()
,
INVASIVE_PRESENCE_QUESTIONABLE()
public static final PresenceAbsenceTerm ABSENT()
PRESENT()
,
REPORTED_IN_ERROR()
public static final PresenceAbsenceTerm REPORTED_IN_ERROR()
absent
in the given area
but was erroneously reported as present.public void resetTerms()
resetTerms
in class DefinedTermBase<PresenceAbsenceTerm>
protected void setDefaultTerms(TermVocabulary<PresenceAbsenceTerm> termVocabulary)
setDefaultTerms
in class DefinedTermBase<PresenceAbsenceTerm>
public PresenceAbsenceTerm readCsvLine(java.lang.Class<PresenceAbsenceTerm> termClass, java.util.List<java.lang.String> csvLine, TermType termType, java.util.Map<java.util.UUID,DefinedTermBase> terms, boolean abbrevAsId)
ILoadableTerm
term
with contents from a csvLine. If the csvLine represents the default language
the csvLine attributes are merged into the existing default language and the default Language is returned.readCsvLine
in interface ILoadableTerm<PresenceAbsenceTerm>
readCsvLine
in class DefinedTermBase<PresenceAbsenceTerm>
public java.lang.String getDefaultColor()
public void setDefaultColor(java.lang.String defaultColor) throws java.text.ParseException
defaultColor
- the defaultColor to setjava.text.ParseException
protected int performCompareTo(PresenceAbsenceTerm presenceAbsenceTerm, boolean skipVocabularyCheck)
Note: The compare logic of this method is the inverse logic
of the the one implemented in
Comparable.compareTo(java.lang.Object)
performCompareTo
in class OrderedTermBase<PresenceAbsenceTerm>
orderedTerm
- the OrderedTermBase to be comparedskipVocabularyCheck
- whether to skip checking if both terms to compare are in the
same vocabularyjava.lang.NullPointerException
- if the specified object is nullpublic boolean isAbsenceTerm()
public void setAbsenceTerm(boolean isAbsenceTerm)
Copyright © 2007-2020 EDIT. All Rights Reserved.