Package org.gedcomx.types
Enum IdentifierType
- java.lang.Object
-
- java.lang.Enum<IdentifierType>
-
- org.gedcomx.types.IdentifierType
-
- All Implemented Interfaces:
Serializable,Comparable<IdentifierType>,ControlledVocabulary
public enum IdentifierType extends Enum<IdentifierType> implements ControlledVocabulary
Enumeration of standard identifier types.- Author:
- Ryan Heaton
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DeprecatedAn identifier that has been relegated, deprecated, or otherwise downgraded.EvidenceAn identifier for the evidence that supports the resource.OTHERPersistentAn identifier that is considered to be a long-term persistent identifier.PrimaryThe primary identifier for the resource.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IdentifierTypefromQNameURI(URI qname)Get the enumeration from the QName.URItoQNameURI()Return the QName value for this enum.static IdentifierTypevalueOf(String name)Returns the enum constant of this type with the specified name.static IdentifierType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static IdentifierType[] 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 (IdentifierType c : IdentifierType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdentifierType 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
-
toQNameURI
public URI toQNameURI()
Return the QName value for this enum.- Specified by:
toQNameURIin interfaceControlledVocabulary- 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.
-
-