public enum ConstraintKind extends Enum<ConstraintKind>
OCLHelper.getSyntaxHelp(ConstraintKind, String)
,
OCLHelper.createConstraint(ConstraintKind, String)
Enum Constant and Description |
---|
BODYCONDITION
Indicates an operation body condition context.
|
DEFINITION
Indicates an additional attribute operation definition context.
|
DERIVATION
Indicates an attribute derived-value constraint context.
|
INITIAL
Indicates an attribute initial-value constraint context.
|
INVARIANT
Indicates an invariant constraint context.
|
POSTCONDITION
Indicates an operation postcondition context.
|
PRECONDITION
Indicates an operation precondition context.
|
Modifier and Type | Method and Description |
---|---|
static ConstraintKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConstraintKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConstraintKind INVARIANT
public static final ConstraintKind PRECONDITION
public static final ConstraintKind BODYCONDITION
public static final ConstraintKind POSTCONDITION
public static final ConstraintKind INITIAL
public static final ConstraintKind DERIVATION
public static final ConstraintKind DEFINITION
public static ConstraintKind[] values()
for (ConstraintKind c : ConstraintKind.values()) System.out.println(c);
public static ConstraintKind 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 © 2005, 2018 IBM Corporation and others. All Rights Reserved.