Package org.jboss.hal.meta
Enum StatementContext.Expression
- java.lang.Object
-
- java.lang.Enum<StatementContext.Expression>
-
- org.jboss.hal.meta.StatementContext.Expression
-
- All Implemented Interfaces:
Serializable,Comparable<StatementContext.Expression>
- Enclosing interface:
- StatementContext
public static enum StatementContext.Expression extends Enum<StatementContext.Expression>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOMAIN_CONTROLLERPlease note that this tuple might not always resolve to the domain controller.SELECTED_GROUPSELECTED_HOSTSELECTED_PROFILESELECTED_SERVERSELECTED_SERVER_CONFIG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringexpression()static StatementContext.Expressionfrom(String name)Stringresource()static StatementContext.ExpressionvalueOf(String name)Returns the enum constant of this type with the specified name.static StatementContext.Expression[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOMAIN_CONTROLLER
public static final StatementContext.Expression DOMAIN_CONTROLLER
Please note that this tuple might not always resolve to the domain controller. For some edge cases (e.g. when the current user is assigned to a host scoped role which is scoped to a secondary host), this tuple is resolved to the first host which was read during bootstrap. In any case it is resolved to an existing host.Address templates which use this tuple must be prepared that it does not always resolve to the domain controller.
-
SELECTED_PROFILE
public static final StatementContext.Expression SELECTED_PROFILE
-
SELECTED_GROUP
public static final StatementContext.Expression SELECTED_GROUP
-
SELECTED_HOST
public static final StatementContext.Expression SELECTED_HOST
-
SELECTED_SERVER_CONFIG
public static final StatementContext.Expression SELECTED_SERVER_CONFIG
-
SELECTED_SERVER
public static final StatementContext.Expression SELECTED_SERVER
-
-
Method Detail
-
values
public static StatementContext.Expression[] 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 (StatementContext.Expression c : StatementContext.Expression.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatementContext.Expression 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
-
resource
public String resource()
-
expression
public String expression()
- Returns:
- the
namesurrounded by "{" and "}"
-
from
public static StatementContext.Expression from(String name)
-
-