Package org.gbif.dwc.terms
Enum DcElement
- java.lang.Object
-
- java.lang.Enum<DcElement>
-
- org.gbif.dwc.terms.DcElement
-
- All Implemented Interfaces:
Serializable,Comparable<DcElement>,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 Summary
Enum Constants Enum Constant Description contributorcoveragecreatordatedescriptionformatidentifierlanguagepublisherrelationrightssourcesubjecttitletype
-
Field Summary
Fields Modifier and Type Field Description String[]alternatives
-
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 DcElementvalueOf(String name)Returns the enum constant of this type with the specified name.static DcElement[]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
-
contributor
public static final DcElement contributor
-
description
public static final DcElement description
-
identifier
public static final DcElement identifier
-
-
Field Detail
-
alternatives
public final String[] alternatives
-
-
Method Detail
-
values
public static DcElement[] 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 (DcElement c : DcElement.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DcElement 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
-
isClass
public boolean isClass()
Description copied from interface:TermInforms if a term is generally used as a class term, i.e. defining rowTypes not properties. For example VernacularName, Taxon or Occurrence
-
prefix
public String prefix()
Description copied from interface:TermA unique standard prefix representing the namespace. For example dwc.
-
-