public static enum DslComponent.Scope extends java.lang.Enum<DslComponent.Scope>
Enum Constant and Description |
---|
ANCESTOR |
CHILD |
DESCENDANT |
GLOBAL |
PARENT |
ROOT |
SCOPE_ROOT |
SIBLING |
THIS |
Modifier and Type | Method and Description |
---|---|
static DslComponent.Scope |
fromString(java.lang.String name) |
static boolean |
isValid(java.lang.String name) |
java.lang.String |
toString() |
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 ROOT
public static final DslComponent.Scope SCOPE_ROOT
public static final DslComponent.Scope THIS
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)
public java.lang.String toString()
toString
in class java.lang.Enum<DslComponent.Scope>