public enum RuleScopeEnum extends Enum<RuleScopeEnum>
| Enum Constant and Description |
|---|
GLOBAL
Indicates the rule is global in scope.
|
PERCLASS
Indicates the rule is applied within the scope of a class.
|
| Modifier and Type | Method and Description |
|---|---|
static RuleScopeEnum |
get(int code)
Returns the enum value of the specified int or null if it's not valid.
|
static RuleScopeEnum |
get(String str)
Returns a value for this enum or throws an exception if the String value isn't
a valid member of this enum.
|
int |
intValue()
Returns the value of this enum value as an int.
|
static RuleScopeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RuleScopeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RuleScopeEnum PERCLASS
public static final RuleScopeEnum GLOBAL
public static RuleScopeEnum[] values()
for (RuleScopeEnum c : RuleScopeEnum.values()) System.out.println(c);
public static RuleScopeEnum valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int intValue()
public static RuleScopeEnum get(int code)
public static RuleScopeEnum get(String str)
Copyright © 2023. All rights reserved.