|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ConstraintKind>
org.eclipse.ocl.helper.ConstraintKind
public enum ConstraintKind
An enumeration of OCL constraint types, primarily for determining the appropriate choices for syntax completion and for generic helper-based parsing.
OCLHelper.getSyntaxHelp(ConstraintKind, String)
,
OCLHelper.createConstraint(ConstraintKind, String)
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
static ConstraintKind |
valueOf(java.lang.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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
public static final ConstraintKind[] values()
for(ConstraintKind c : ConstraintKind.values()) System.out.println(c);
public static ConstraintKind valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |