Enum Class DwcaTerm

java.lang.Object
java.lang.Enum<DwcaTerm>
org.gbif.dwc.terms.DwcaTerm
All Implemented Interfaces:
Serializable, Comparable<DwcaTerm>, Constable, AlternativeNames, Term

public enum DwcaTerm extends Enum<DwcaTerm> implements Term, AlternativeNames, Serializable
Darwin Core Archive terms with namespace http://rs.tdwg.org/dwc/text/.
  • Enum Constant Details

    • ID

      public static final DwcaTerm ID
      Archive internal (core) id column.
  • Method Details

    • values

      public static DwcaTerm[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DwcaTerm valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • prefix

      public String prefix()
      Description copied from interface: Term
      A unique standard prefix representing the namespace. For example dwc.
      Specified by:
      prefix in interface Term
    • namespace

      public URI namespace()
      Description copied from interface: Term
      The namespace the terms are in. Default implementations here expect the namespace to end with a slash.
      Specified by:
      namespace in interface Term
    • simpleName

      public String simpleName()
      Description copied from interface: Term
      The simple term name without any namespace or paths. For example scientificName.
      Specified by:
      simpleName in interface Term
    • toString

      public String toString()
      Overrides:
      toString in class Enum<DwcaTerm>
    • alternativeNames

      Specified by:
      alternativeNames in interface AlternativeNames
      Returns:
      array of simple, alternative term names
    • isClass

      public boolean isClass()
      Description copied from interface: Term
      Informs if a term is generally used as a class term, i.e. defining rowTypes not properties. For example VernacularName, Taxon or Occurrence
      Specified by:
      isClass in interface Term
      Returns:
      true if the term is defining a class instead of a property, e.g. Taxon