Enum ShortViewService.ShortViewContext
- java.lang.Object
-
- java.lang.Enum<ShortViewService.ShortViewContext>
-
- edu.cornell.mannlib.vitro.webapp.services.shortview.ShortViewService.ShortViewContext
-
- All Implemented Interfaces:
Serializable,Comparable<ShortViewService.ShortViewContext>
- Enclosing interface:
- ShortViewService
public static enum ShortViewService.ShortViewContext extends Enum<ShortViewService.ShortViewContext>
The available contexts for short views.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ShortViewService.ShortViewContextfromString(String string)StringgetDefaultTemplateName()static StringvalueList()static ShortViewService.ShortViewContextvalueOf(String name)Returns the enum constant of this type with the specified name.static ShortViewService.ShortViewContext[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEARCH
public static final ShortViewService.ShortViewContext SEARCH
-
INDEX
public static final ShortViewService.ShortViewContext INDEX
-
BROWSE
public static final ShortViewService.ShortViewContext BROWSE
-
-
Method Detail
-
values
public static ShortViewService.ShortViewContext[] 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 (ShortViewService.ShortViewContext c : ShortViewService.ShortViewContext.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShortViewService.ShortViewContext 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
-
getDefaultTemplateName
public String getDefaultTemplateName()
-
fromString
public static ShortViewService.ShortViewContext fromString(String string)
-
valueList
public static String valueList()
-
-