public enum RuleTypeEnum extends Enum<RuleTypeEnum>
| Enum Constant and Description |
|---|
ATTRIBUTE
Indicates that this is an attribute level rule.
|
CLASS
Indicates that this is a class level rule.
|
| Modifier and Type | Method and Description |
|---|---|
static RuleTypeEnum |
get(int code)
Returns the enum value of the specified int or null if it's not valid.
|
static RuleTypeEnum |
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 RuleTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RuleTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RuleTypeEnum ATTRIBUTE
public static final RuleTypeEnum CLASS
public static RuleTypeEnum[] values()
for (RuleTypeEnum c : RuleTypeEnum.values()) System.out.println(c);
public static RuleTypeEnum 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 RuleTypeEnum get(int code)
public static RuleTypeEnum get(String str)
Copyright © 2023. All rights reserved.