Package org.gedcomx.types
Enum ConfidenceLevel
- java.lang.Object
-
- java.lang.Enum<ConfidenceLevel>
-
- org.gedcomx.types.ConfidenceLevel
-
- All Implemented Interfaces:
Serializable,Comparable<ConfidenceLevel>,ControlledVocabulary
public enum ConfidenceLevel extends Enum<ConfidenceLevel> implements ControlledVocabulary
Enumeration of levels of confidence.- Author:
- Ryan Heaton
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConfidenceLevelfromQNameURI(URI qname)Get the enumeration from the QName.URItoQNameURI()Return the QName value for this enum.static ConfidenceLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static ConfidenceLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
High
public static final ConfidenceLevel High
High of confidence.
-
Medium
public static final ConfidenceLevel Medium
Medium of confidence.
-
Low
public static final ConfidenceLevel Low
Low of confidence.
-
OTHER
public static final ConfidenceLevel OTHER
-
-
Method Detail
-
values
public static ConfidenceLevel[] 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 (ConfidenceLevel c : ConfidenceLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfidenceLevel 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 ConfidenceLevel fromQNameURI(URI qname)
Get the enumeration from the QName.- Parameters:
qname- The qname.- Returns:
- The enumeration.
-
-