Enum VitroVocabulary.Precision
- java.lang.Object
-
- java.lang.Enum<VitroVocabulary.Precision>
-
- edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary.Precision
-
- All Implemented Interfaces:
Serializable,Comparable<VitroVocabulary.Precision>
- Enclosing class:
- VitroVocabulary
public static enum VitroVocabulary.Precision extends Enum<VitroVocabulary.Precision>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringuri()static VitroVocabulary.PrecisionvalueOf(String name)Returns the enum constant of this type with the specified name.static VitroVocabulary.Precision[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final VitroVocabulary.Precision NONE
-
YEAR
public static final VitroVocabulary.Precision YEAR
-
MONTH
public static final VitroVocabulary.Precision MONTH
-
DAY
public static final VitroVocabulary.Precision DAY
-
HOUR
public static final VitroVocabulary.Precision HOUR
-
MINUTE
public static final VitroVocabulary.Precision MINUTE
-
SECOND
public static final VitroVocabulary.Precision SECOND
-
-
Method Detail
-
values
public static VitroVocabulary.Precision[] 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 (VitroVocabulary.Precision c : VitroVocabulary.Precision.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VitroVocabulary.Precision 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
-
uri
public String uri()
-
-