public enum RankClass extends java.lang.Enum<RankClass> implements IEnumTerm<RankClass>, java.io.Serializable
Rank.isSupraGeneric()
. Prior to v3.3 this was computed by comparison of ranks.
The current solution makes such methods less dependend on term loading.http://dev.e-taxonomy.eu/trac/ticket/3521
Enum Constant and Description |
---|
Genus
Class of ranks equal to
Rank.GENUS() . |
Infrageneric
Class of ranks below
Rank.GENUS() and above Rank.SPECIES() . |
Infraspecific
Class of ranks lower than
Rank.SPECIES() |
Species
Class of ranks equal to
Rank.SPECIES() . |
SpeciesGroup
Class of ranks directly above
Rank.SPECIES() which are used to group certain species
e.g. |
Suprageneric
Class of ranks higher than
Rank.GENUS() |
Unknown
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RankClass |
getByKey(java.lang.String key) |
static RankClass |
getByUuid(java.util.UUID uuid) |
java.util.Set<RankClass> |
getGeneralizationOf()
Returns all defined terms this term is a direct generalization for.
|
java.util.Set<RankClass> |
getGeneralizationOf(boolean recursive)
Returns all defined terms this term is a generalization for.
|
java.lang.String |
getKey()
Returns the key for the enumeration.
|
RankClass |
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 |
isKindOf(RankClass ancestor)
Computes if
this term is kind of the ancestor term. |
static RankClass |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RankClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final RankClass Unknown
public static final RankClass Suprageneric
Rank.GENUS()
public static final RankClass Genus
Rank.GENUS()
. It is expected that there is only 1 such rank.public static final RankClass Infrageneric
public static final RankClass SpeciesGroup
Rank.SPECIES()
which are used to group certain species
e.g. for better usability.
This class is part of the Infrageneric
class but different nomenclatural rules are applied.public static final RankClass Species
Rank.SPECIES()
. It is expected that there is only 1 such rank.public static final RankClass Infraspecific
Rank.SPECIES()
public static RankClass[] values()
for (RankClass c : RankClass.values()) System.out.println(c);
public static RankClass 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<RankClass>
public RankClass getKindOf()
ISimpleTerm
this
termgetKindOf
in interface ISimpleTerm<RankClass>
public java.util.Set<RankClass> getGeneralizationOf()
ISimpleTerm
this
term.getGeneralizationOf
in interface ISimpleTerm<RankClass>
public boolean isKindOf(RankClass 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<RankClass>
ancestor
- the potential ancestor termISimpleTerm.getKindOf()
,
ISimpleTerm.getGeneralizationOf()
public java.util.Set<RankClass> 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<RankClass>
public static RankClass getByKey(java.lang.String key)
public static RankClass getByUuid(java.util.UUID uuid)
Copyright © 2007-2020 EDIT. All Rights Reserved.