public enum SpecimenOrObservationType extends java.lang.Enum<SpecimenOrObservationType> implements IEnumTerm<SpecimenOrObservationType>
specimen or observation
instance describes, may it be a field unit
or a
derived unit
.SpecimenOrObservationBase
.
Enum Constant and Description |
---|
DerivedUnit
Generalization for all specimen or observation except for FieldUnits.
|
DnaSample
Type for all DNA Samples.
|
FieldUnit
Type for all field data belonging to a particular object or observation or a set of these.
|
Fossil
Specialization of PreservedSpecimen, indicating that a specimen is a fossil or is derived
from a fossil.
|
HumanObservation
Type for all observations made by a human.
|
LivingSpecimen
An organism removed from its natural occurrence and now living in captivity or cultivation
Specialization of
DerivedUnit . |
MachineObservation
Type for all observations made by a machine.
|
MaterialSample
Type for all material samples belonging to a particular object or observation or a set of these.
|
Media
Generalization for all types of media (StillImage, MovingImage, SoundRecording, MultiMedia).
|
MovingImage
A sequence of still images taken at regular intervals and intended to be played back as a moving image;
may include sound.
|
Multimedia
Any multi-media object which is not covered by DrawingOrPhoto, MovingImage or SoundRecording.
|
Observation
Generalization for all observations, may they be human observations or machine observations.
|
OtherSpecimen
All specimen types not covered by existing types.
|
PreservedSpecimen
A physical object representing one or more organisms, part of organism, or artifact(s) of an organism.
|
SoundRecording
An audio recording.
|
StillImage
A photograph, drawing, painting or similar.
|
TissueSample
Type for all tissue samples.
|
Unknown
Unknown specimen or observation the type to be used if no information is available about the type.
|
Modifier and Type | Method and Description |
---|---|
static SpecimenOrObservationType |
getByKey(java.lang.String key) |
static SpecimenOrObservationType |
getByUuid(java.util.UUID uuid) |
java.util.Set<SpecimenOrObservationType> |
getGeneralizationOf()
Returns all defined terms this term is a direct generalization for.
|
java.util.Set<SpecimenOrObservationType> |
getGeneralizationOf(boolean recursive)
Returns all defined terms this term is a generalization for.
|
java.lang.String |
getKey()
Returns the key for the enumeration.
|
SpecimenOrObservationType |
getKindOf()
Returns the defined term this term is a kind of.
|
java.lang.String |
getMessage()
Returns a human readable label preferably for the default language.
|
java.lang.String |
getMessage(Language language)
Returns a human readable label preferably for the given language.
|
java.util.UUID |
getUuid() |
boolean |
isAnyDerivedUnit()
All types except for field units.
|
boolean |
isFeatureObservation()
Returns
true , if it seems to make sense to use the feature
observation for creating an individuals association . |
boolean |
isFeatureSpecimen()
Returns
true , if it seems to make sense to use the feature
specimen for creating an individuals association . |
boolean |
isFieldUnit()
Any field unit.
|
boolean |
isKindOf(SpecimenOrObservationType ancestor)
Computes if
this term is kind of the ancestor term. |
boolean |
isMedia()
Any Media, may it be images, movies, sound recordings or multi media objects
|
boolean |
isPreservedSpecimen() |
static SpecimenOrObservationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SpecimenOrObservationType |
valueOf2(java.lang.String type)
This method was initially created in the former class
"DerivedUnitFacade.DerivedUnitType" for some specimen imports .
|
static SpecimenOrObservationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpecimenOrObservationType Unknown
public static final SpecimenOrObservationType DerivedUnit
public static final SpecimenOrObservationType PreservedSpecimen
DerivedUnit
.public static final SpecimenOrObservationType Fossil
PreservedSpecimen
.public static final SpecimenOrObservationType LivingSpecimen
DerivedUnit
.public static final SpecimenOrObservationType OtherSpecimen
DerivedUnit
.public static final SpecimenOrObservationType Observation
DerivedUnit
. //TODO verify #3619public static final SpecimenOrObservationType HumanObservation
Observation
.public static final SpecimenOrObservationType MachineObservation
Observation
.public static final SpecimenOrObservationType TissueSample
PreservedSpecimen
.public static final SpecimenOrObservationType DnaSample
TissueSample
.public static final SpecimenOrObservationType Media
public static final SpecimenOrObservationType StillImage
Media
.public static final SpecimenOrObservationType MovingImage
Media
.public static final SpecimenOrObservationType SoundRecording
Media
.public static final SpecimenOrObservationType Multimedia
Media
.public static final SpecimenOrObservationType MaterialSample
DerivedUnit
.public static final SpecimenOrObservationType FieldUnit
public static SpecimenOrObservationType[] values()
for (SpecimenOrObservationType c : SpecimenOrObservationType.values()) System.out.println(c);
public static SpecimenOrObservationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isFeatureObservation()
true
, if it seems to make sense to use the feature
observation
for creating an individuals association
.public boolean isFeatureSpecimen()
true
, if it seems to make sense to use the feature
specimen
for creating an individuals association
.public boolean isPreservedSpecimen()
public boolean isFieldUnit()
public boolean isAnyDerivedUnit()
public boolean isMedia()
public static SpecimenOrObservationType valueOf2(java.lang.String type)
type
- public java.lang.String getKey()
IKeyTerm
public java.lang.String getMessage()
IKeyTerm
getMessage
in interface IKeyTerm
public java.lang.String getMessage(Language language)
IKeyTerm
getMessage
in interface IKeyTerm
public java.util.UUID getUuid()
getUuid
in interface ISimpleTerm<SpecimenOrObservationType>
public SpecimenOrObservationType getKindOf()
ISimpleTerm
this
termgetKindOf
in interface ISimpleTerm<SpecimenOrObservationType>
public java.util.Set<SpecimenOrObservationType> getGeneralizationOf()
ISimpleTerm
this
term.getGeneralizationOf
in interface ISimpleTerm<SpecimenOrObservationType>
public boolean isKindOf(SpecimenOrObservationType ancestor)
ISimpleTerm
this
term is kind of the ancestor
term.
So the ancestor
term is direct or indirect (recursive) generalization
of this
term.isKindOf
in interface ISimpleTerm<SpecimenOrObservationType>
ancestor
- the potential ancestor termISimpleTerm.getKindOf()
,
ISimpleTerm.getGeneralizationOf()
public java.util.Set<SpecimenOrObservationType> getGeneralizationOf(boolean recursive)
ISimpleTerm
this
term.
If parameter recursive
is false
only the
direct descendants will be returned. If it is true
the direct descendants and there recursive descendants (all descendants)
will be returned.getGeneralizationOf
in interface ISimpleTerm<SpecimenOrObservationType>
public static SpecimenOrObservationType getByKey(java.lang.String key)
public static SpecimenOrObservationType getByUuid(java.util.UUID uuid)
Copyright © 2007-2020 EDIT. All Rights Reserved.