public static enum Rule.RuleType extends Enum<Rule.RuleType>
Enum Constant and Description |
---|
NUMBER
Validates a number range.
|
PATTERN
Validates a string.
|
RELATIONSHIP
Validates the existence of properties and child nodes of specific types.
|
SAME_NAME_SIBLING
Validates that sibling nodes do not have the same name.
|
Modifier and Type | Method and Description |
---|---|
static Rule.RuleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Rule.RuleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rule.RuleType NUMBER
public static final Rule.RuleType PATTERN
public static final Rule.RuleType RELATIONSHIP
public static final Rule.RuleType SAME_NAME_SIBLING
public static Rule.RuleType[] values()
for (Rule.RuleType c : Rule.RuleType.values()) System.out.println(c);
public static Rule.RuleType 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 nullCopyright © 2013–2019. All rights reserved.