Enum NamedKeyComponent
- java.lang.Object
-
- java.lang.Enum<NamedKeyComponent>
-
- edu.cornell.mannlib.vitro.webapp.auth.attributes.NamedKeyComponent
-
- All Implemented Interfaces:
Serializable,Comparable<NamedKeyComponent>
public enum NamedKeyComponent extends Enum<NamedKeyComponent>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_RELATEDSUPPRESSION_BY_TYPESUPPRESSION_BY_URI
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NamedKeyComponentvalueOf(String name)Returns the enum constant of this type with the specified name.static NamedKeyComponent[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUPPRESSION_BY_URI
public static final NamedKeyComponent SUPPRESSION_BY_URI
-
SUPPRESSION_BY_TYPE
public static final NamedKeyComponent SUPPRESSION_BY_TYPE
-
NOT_RELATED
public static final NamedKeyComponent NOT_RELATED
-
-
Method Detail
-
values
public static NamedKeyComponent[] 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 (NamedKeyComponent c : NamedKeyComponent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NamedKeyComponent 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
-
-