public static enum DslComponent.Scope extends java.lang.Enum<DslComponent.Scope>
Enum Constant and Description |
---|
ANCESTOR |
CHILD |
DESCENDANT |
GLOBAL |
PARENT |
SIBLING |
THIS |
Modifier and Type | Field and Description |
---|---|
static java.util.Set<DslComponent.Scope> |
VALUES |
Modifier and Type | Method and Description |
---|---|
static DslComponent.Scope |
fromString(java.lang.String name) |
static boolean |
isValid(java.lang.String name) |
static Maybe<DslComponent.Scope> |
tryFromString(java.lang.String name) |
static DslComponent.Scope |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DslComponent.Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DslComponent.Scope GLOBAL
public static final DslComponent.Scope CHILD
public static final DslComponent.Scope PARENT
public static final DslComponent.Scope SIBLING
public static final DslComponent.Scope DESCENDANT
public static final DslComponent.Scope ANCESTOR
public static final DslComponent.Scope THIS
public static final java.util.Set<DslComponent.Scope> VALUES
public static DslComponent.Scope[] values()
for (DslComponent.Scope c : DslComponent.Scope.values()) System.out.println(c);
public static DslComponent.Scope valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static DslComponent.Scope fromString(java.lang.String name)
public static Maybe<DslComponent.Scope> tryFromString(java.lang.String name)
public static boolean isValid(java.lang.String name)