Package org.gbif.dwc.terms
Enum GadmTerm
- java.lang.Object
-
- java.lang.Enum<GadmTerm>
-
- org.gbif.dwc.terms.GadmTerm
-
- All Implemented Interfaces:
Serializable,Comparable<GadmTerm>,AlternativeNames,Term
public enum GadmTerm extends Enum<GadmTerm> implements Term, AlternativeNames
-
-
Enum Constant Summary
Enum Constants Enum Constant Description level0Gidlevel0Namelevel1Gidlevel1Namelevel2Gidlevel2Namelevel3Gidlevel3Name
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]alternativeNames()booleanisClass()Informs if a term is generally used as a class term, i.e.URInamespace()The namespace the terms are in.Stringprefix()A unique standard prefix representing the namespace.StringsimpleName()The simple term name without any namespace or paths.StringtoString()static GadmTermvalueOf(String name)Returns the enum constant of this type with the specified name.static GadmTerm[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Methods inherited from interface org.gbif.dwc.terms.Term
prefixedName, qualifiedName
-
-
-
-
Enum Constant Detail
-
level0Name
public static final GadmTerm level0Name
-
level1Name
public static final GadmTerm level1Name
-
level2Name
public static final GadmTerm level2Name
-
level3Name
public static final GadmTerm level3Name
-
-
Method Detail
-
values
public static GadmTerm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GadmTerm c : GadmTerm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GadmTerm valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
simpleName
public String simpleName()
Description copied from interface:TermThe simple term name without any namespace or paths. For example scientificName.- Specified by:
simpleNamein interfaceTerm
-
alternativeNames
public String[] alternativeNames()
- Specified by:
alternativeNamesin interfaceAlternativeNames- Returns:
- array of simple, alternative term names
-
prefix
public String prefix()
Description copied from interface:TermA unique standard prefix representing the namespace. For example dwc.
-
namespace
public URI namespace()
Description copied from interface:TermThe namespace the terms are in. Default implementations here expect the namespace to end with a slash.
-
-