public enum ConstraintOrigin extends Enum<ConstraintOrigin>
Enum Constant and Description |
---|
DEFINED_IN_HIERARCHY
Constraint is defined in a super-class or interface of the root class.
|
DEFINED_LOCALLY
Constraint is defined on the root class
|
Modifier and Type | Method and Description |
---|---|
static ConstraintOrigin |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConstraintOrigin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConstraintOrigin DEFINED_LOCALLY
public static final ConstraintOrigin DEFINED_IN_HIERARCHY
public static ConstraintOrigin[] values()
for (ConstraintOrigin c : ConstraintOrigin.values()) System.out.println(c);
public static ConstraintOrigin 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 © 2016 JBoss by Red Hat. All rights reserved.