Enum Class IdentifierType

java.lang.Object
java.lang.Enum<IdentifierType>
org.gedcomx.types.IdentifierType
All Implemented Interfaces:
Serializable, Comparable<IdentifierType>, Constable, ControlledVocabulary

public enum IdentifierType extends Enum<IdentifierType> implements ControlledVocabulary
Enumeration of standard identifier types.
Author:
Ryan Heaton
  • Enum Constant Details

    • Primary

      public static final IdentifierType Primary
      The primary identifier for the resource.
    • Evidence

      public static final IdentifierType Evidence
      An identifier for the evidence that supports the resource. For example, when a conclusion about a person is extracted, analyzed and evaluated atomically within the context of a single source, it takes the form of a (extracted) person conclusion, and the extracted conclusion may supply an identifier for the person. As all evidence for the person is gathered, the (working) person conclusion identifies the evidence used to support the conclusion by including each evidence identifier in the list of identifiers for the person.
    • Deprecated

      public static final IdentifierType Deprecated
      An identifier that has been relegated, deprecated, or otherwise downgraded. This identifier is commonly used as the result of a merge when what was once a primary identifier for a person is no longer primary.
    • Persistent

      public static final IdentifierType Persistent
      An identifier that is considered to be a long-term persistent identifier. Applications that provide persistent identifiers are claiming that links to the resource using the identifier won't break.
    • OTHER

      public static final IdentifierType OTHER
  • Method Details

    • values

      public static IdentifierType[] 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 IdentifierType 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
    • toQNameURI

      public URI toQNameURI()
      Return the QName value for this enum.
      Specified by:
      toQNameURI in interface ControlledVocabulary
      Returns:
      The QName value for this enum.
    • fromQNameURI

      public static IdentifierType fromQNameURI(URI qname)
      Get the enumeration from the QName.
      Parameters:
      qname - The qname.
      Returns:
      The enumeration.