public enum NomenclaturalCode extends java.lang.Enum<NomenclaturalCode> implements IEnumTerm<NomenclaturalCode>
taxon names
.
The standard set of nomenclature code instances will be automatically created as the project starts. But this class allows to extend this standard set by creating new instances of additional nomenclature codes if unlikely needed.
This class corresponds to:
Enum Constant and Description |
---|
Fungi |
ICNAFP
International Code of Nomenclature for algae, fungi, and plants
Former International Code of Botanical Nomenclature
|
ICNB
International Code of Nomenclature of Bacteria
=> now International Code of Nomenclature of Prokaryotes
TODO rename to ICNP
|
ICNCP
International Code of Cultivated Plants
|
ICVCN
International Code for Virus Classification and Nomenclature
|
ICZN
International Code of Zoological Nomenclature
|
NonViral |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
acceptedTaxonStatusLabel()
Returns the recommended value for the accepted taxon status according to
http://code.google.com/p/darwincore/wiki/Taxon#taxonomicStatus
|
static NomenclaturalCode |
fromDtype(java.lang.String string)
Deprecated.
not relevant anymore, used only by NomenclaturalCodeUpdater
which is used for 4.0->4.1 schema update.
|
static NomenclaturalCode |
fromString(java.lang.String string) |
static NomenclaturalCode |
getByKey(java.lang.String key) |
static NomenclaturalCode |
getByUuid(java.util.UUID uuid) |
java.util.Set<NomenclaturalCode> |
getGeneralizationOf()
Returns all defined terms this term is a direct generalization for.
|
java.util.Set<NomenclaturalCode> |
getGeneralizationOf(boolean recursive)
Returns all defined terms this term is a generalization for.
|
java.lang.String |
getKey()
Returns the key for the enumeration.
|
NomenclaturalCode |
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.
|
TaxonName |
getNewTaxonNameInstance(Rank rank)
Creates a new particular
taxon name (botanical, zoological,
cultivar plant, bacterial or viral name) instance depending on this
nomenclature code only containing the given rank . |
java.lang.String |
getTitleCache() |
java.util.UUID |
getUuid() |
boolean |
isBacterial() |
boolean |
isBotanical() |
boolean |
isCultivar() |
boolean |
isFungus() |
boolean |
isKindOf(NomenclaturalCode ancestor)
Computes if
this term is kind of the ancestor term. |
boolean |
isNonViral() |
boolean |
isViral() |
boolean |
isZoological() |
java.lang.String |
synonymStatusLabel()
Returns the recommended value for the accepted taxon status according to
http://code.google.com/p/darwincore/wiki/Taxon#taxonomicStatus
|
java.lang.String |
toString() |
static NomenclaturalCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NomenclaturalCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NomenclaturalCode NonViral
public static final NomenclaturalCode ICNAFP
public static final NomenclaturalCode ICNB
public static final NomenclaturalCode ICNCP
public static final NomenclaturalCode ICZN
public static final NomenclaturalCode ICVCN
public static final NomenclaturalCode Fungi
public static NomenclaturalCode[] values()
for (NomenclaturalCode c : NomenclaturalCode.values()) System.out.println(c);
public static NomenclaturalCode 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 getTitleCache()
public java.lang.String toString()
toString
in class java.lang.Enum<NomenclaturalCode>
public boolean isNonViral()
public boolean isZoological()
public boolean isBotanical()
public boolean isCultivar()
public boolean isBacterial()
public boolean isViral()
public boolean isFungus()
public static NomenclaturalCode fromString(java.lang.String string)
@Deprecated public static NomenclaturalCode fromDtype(java.lang.String string)
public TaxonName getNewTaxonNameInstance(Rank rank)
taxon name
(botanical, zoological,
cultivar plant, bacterial or viral name) instance depending on this
nomenclature code only containing the given rank
.rank
- the rank of the new taxon name instanceTaxonName#NewBotanicalInstance(Rank)
,
TaxonName#NewZoologicalInstance(Rank)
,
TaxonName#NewCultivarInstance(Rank)
,
TaxonName#NewBacterialInstance(Rank)
,
TaxonName#NewViralInstance(Rank)
public java.lang.String acceptedTaxonStatusLabel()
public java.lang.String synonymStatusLabel()
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<NomenclaturalCode>
public NomenclaturalCode getKindOf()
ISimpleTerm
this
termgetKindOf
in interface ISimpleTerm<NomenclaturalCode>
public java.util.Set<NomenclaturalCode> getGeneralizationOf()
ISimpleTerm
this
term.getGeneralizationOf
in interface ISimpleTerm<NomenclaturalCode>
public boolean isKindOf(NomenclaturalCode 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<NomenclaturalCode>
ancestor
- the potential ancestor termISimpleTerm.getKindOf()
,
ISimpleTerm.getGeneralizationOf()
public java.util.Set<NomenclaturalCode> 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<NomenclaturalCode>
public static NomenclaturalCode getByKey(java.lang.String key)
public static NomenclaturalCode getByUuid(java.util.UUID uuid)
Copyright © 2007-2020 EDIT. All Rights Reserved.