Package org.xwiki.template
Enum TemplateContent.UniqueContext
- java.lang.Object
-
- java.lang.Enum<TemplateContent.UniqueContext>
-
- org.xwiki.template.TemplateContent.UniqueContext
-
- All Implemented Interfaces:
Serializable
,Comparable<TemplateContent.UniqueContext>
- Enclosing interface:
- TemplateContent
public static enum TemplateContent.UniqueContext extends Enum<TemplateContent.UniqueContext>
The various contexts in which to make a template unique.- Since:
- 11.8RC1
- Version:
- $Id: 9066635e5cf1e65aa558c8a2f6d1eb40cc90563a $
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REQUEST
Unique for the whole request.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TemplateContent.UniqueContext
valueOf(String name)
Returns the enum constant of this type with the specified name.static TemplateContent.UniqueContext[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUEST
public static final TemplateContent.UniqueContext REQUEST
Unique for the whole request.
-
-
Method Detail
-
values
public static TemplateContent.UniqueContext[] 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 (TemplateContent.UniqueContext c : TemplateContent.UniqueContext.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TemplateContent.UniqueContext 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
-
-