Enum Class DcElement

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

public enum DcElement extends Enum<DcElement> implements Term, AlternativeNames
All Dublin Core terms with namespace http://purl.org/dc/elements/1.1/. All terms exist as DcTerm under a different namespace, but DcElement values are allowed to be free text, whereas DcTerm values must be a member of a specific class and therefore given by URI.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static DcElement[] 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 DcElement 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<DcElement>
    • 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
    • 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
    • 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