public enum DescriptionType extends java.lang.Enum<DescriptionType> implements IEnumTerm<DescriptionType>
Enum Constant and Description |
---|
AGGREGATED
The description has been computed by a machine by aggregation of data.
|
AGGREGATED_DISTRIBUTION
The description has been computed by a machine by aggregation of distribution data.
|
AGGREGATED_STRUC_DESC
The description has been computed by a machine by aggregation of structured descriptive data.
|
CLONE_FOR_SOURCE
Description is a clone which was used to fix a certain state of data to define
it as a source for e.g.
|
COMPUTED
The description has been computed by a machine, e.g.
|
DEFAULT_VALUES_FOR_AGGREGATION
If Descriptions are aggregated for e.g.
|
INDIVIDUALS_ASSOCIATION
Designated descriptions for
IndividualsAssociation s of specimens to taxa. |
SECONDARY_DATA
Kind of a marker to define that data comes from a secondary source.
|
Modifier and Type | Method and Description |
---|---|
static DescriptionType |
getByKey(java.lang.String key) |
static DescriptionType |
getByUuid(java.util.UUID uuid) |
java.util.Set<DescriptionType> |
getGeneralizationOf()
Returns all defined terms this term is a direct generalization for.
|
java.util.Set<DescriptionType> |
getGeneralizationOf(boolean recursive)
Returns all defined terms this term is a generalization for.
|
java.lang.String |
getKey()
Returns the key for the enumeration.
|
DescriptionType |
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() |
protected static boolean |
includesType(java.util.EnumSet<DescriptionType> set,
DescriptionType state) |
static boolean |
isAggregated(java.util.EnumSet<DescriptionType> set) |
static boolean |
isAggregatedDistribution(java.util.EnumSet<DescriptionType> set) |
static boolean |
isAggregatedStructuredDescription(java.util.EnumSet<DescriptionType> set) |
static boolean |
isCloneForSource(java.util.EnumSet<DescriptionType> set) |
static boolean |
isComputed(java.util.EnumSet<DescriptionType> set)
Returns true if the given set contains the type
COMPUTED computed or one of
it's sub-types.Note: Computed is a base type. |
static boolean |
isDefaultForAggregation(java.util.EnumSet<DescriptionType> set) |
boolean |
isKindOf(DescriptionType ancestor)
Computes if
this term is kind of the ancestor term. |
static boolean |
isSecondaryData(java.util.EnumSet<DescriptionType> set) |
static boolean |
isSpecimenDescription(java.util.EnumSet<DescriptionType> set) |
static DescriptionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DescriptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DescriptionType COMPUTED
COMPUTED
is a base type for more specific types such as
AGGREGATED
public static final DescriptionType AGGREGATED
public static final DescriptionType AGGREGATED_DISTRIBUTION
public static final DescriptionType AGGREGATED_STRUC_DESC
public static final DescriptionType CLONE_FOR_SOURCE
public static final DescriptionType SECONDARY_DATA
public static final DescriptionType DEFAULT_VALUES_FOR_AGGREGATION
public static final DescriptionType INDIVIDUALS_ASSOCIATION
IndividualsAssociation
s of specimens to taxa.public static DescriptionType[] values()
for (DescriptionType c : DescriptionType.values()) System.out.println(c);
public static DescriptionType 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 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<DescriptionType>
public DescriptionType getKindOf()
ISimpleTerm
this
termgetKindOf
in interface ISimpleTerm<DescriptionType>
public java.util.Set<DescriptionType> getGeneralizationOf()
ISimpleTerm
this
term.getGeneralizationOf
in interface ISimpleTerm<DescriptionType>
public boolean isKindOf(DescriptionType 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<DescriptionType>
ancestor
- the potential ancestor termISimpleTerm.getKindOf()
,
ISimpleTerm.getGeneralizationOf()
public java.util.Set<DescriptionType> 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<DescriptionType>
public static DescriptionType getByKey(java.lang.String key)
public static DescriptionType getByUuid(java.util.UUID uuid)
public static boolean isComputed(java.util.EnumSet<DescriptionType> set)
COMPUTED
computed or one of
it's sub-types.AGGREGATED
.
Also for them this method returns true
.public static boolean isAggregated(java.util.EnumSet<DescriptionType> set)
public static boolean isAggregatedDistribution(java.util.EnumSet<DescriptionType> set)
public static boolean isAggregatedStructuredDescription(java.util.EnumSet<DescriptionType> set)
public static boolean isCloneForSource(java.util.EnumSet<DescriptionType> set)
public static boolean isSecondaryData(java.util.EnumSet<DescriptionType> set)
public static boolean isDefaultForAggregation(java.util.EnumSet<DescriptionType> set)
public static boolean isSpecimenDescription(java.util.EnumSet<DescriptionType> set)
protected static boolean includesType(java.util.EnumSet<DescriptionType> set, DescriptionType state)
set
- Copyright © 2007-2020 EDIT. All Rights Reserved.