| 
 | ||||||||||
| 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 | |
|---|---|
| BODYCONDITIONIndicates an operation body condition context. | |
| DEFINITIONIndicates an additional attribute operation definition context. | |
| DERIVATIONIndicates an attribute derived-value constraint context. | |
| INITIALIndicates an attribute initial-value constraint context. | |
| INVARIANTIndicates an invariant constraint context. | |
| POSTCONDITIONIndicates an operation postcondition context. | |
| PRECONDITIONIndicates an operation precondition context. | |
| Method Summary | |
|---|---|
| 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'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(String name)
name - the name of the enum constant to be returned.
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 | |||||||||