org.eclipse.emf.ocl.uml
Interface Constraint

All Superinterfaces:
org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.ENamedElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier, Visitable
All Known Implementing Classes:
ConstraintImpl

public interface Constraint
extends org.eclipse.emf.ecore.ENamedElement, Visitable


Field Summary
static java.lang.String BODY
          Stereotype applied to operation body conditions.
static java.lang.String copyright
           
static java.lang.String DEFINITION
          Stereotype applied definition expressions.
static java.lang.String DERIVATION
          Stereotype applied derived value expressions.
static java.lang.String INITIAL
          Stereotype applied initial value expressions.
static java.lang.String INVARIANT
          Stereotype applied to classifier invariant constraints.
static java.lang.String POSTCONDITION
          Stereotype applied to operation postcondition constraints.
static java.lang.String PRECONDITION
          Stereotype applied to operation precondition constraints.
 
Method Summary
 OCLExpression getBody()
           
 org.eclipse.emf.common.util.EList getConstrainedElement()
           
 java.lang.String getInstanceVarName()
           
 java.lang.String getStereotype()
          Returns the value of the 'Stereotype' attribute
 void setBody(OCLExpression value)
          Sets the value of the 'Body' containment reference
 void setInstanceVarName(java.lang.String instanceVarName)
           
 void setStereotype(java.lang.String value)
          Sets the value of the 'Stereotype' attribute
 
Methods inherited from interface org.eclipse.emf.ecore.ENamedElement
getName, setName
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ocl.utilities.Visitable
accept
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values

INVARIANT

public static final java.lang.String INVARIANT
Stereotype applied to classifier invariant constraints.

See Also:
Constraint.getStereotype(), Constant Field Values

PRECONDITION

public static final java.lang.String PRECONDITION
Stereotype applied to operation precondition constraints.

See Also:
Constraint.getStereotype(), Constant Field Values

POSTCONDITION

public static final java.lang.String POSTCONDITION
Stereotype applied to operation postcondition constraints.

See Also:
Constraint.getStereotype(), Constant Field Values

BODY

public static final java.lang.String BODY
Stereotype applied to operation body conditions.

See Also:
Constraint.getStereotype(), Constant Field Values

DEFINITION

public static final java.lang.String DEFINITION
Stereotype applied definition expressions.

See Also:
Constraint.getStereotype(), Constant Field Values

INITIAL

public static final java.lang.String INITIAL
Stereotype applied initial value expressions.

See Also:
Constraint.getStereotype(), Constant Field Values

DERIVATION

public static final java.lang.String DERIVATION
Stereotype applied derived value expressions.

See Also:
Constraint.getStereotype(), Constant Field Values
Method Detail

getInstanceVarName

public java.lang.String getInstanceVarName()

setInstanceVarName

public void setInstanceVarName(java.lang.String instanceVarName)

getConstrainedElement

public org.eclipse.emf.common.util.EList getConstrainedElement()

getStereotype

public java.lang.String getStereotype()
Returns the value of the 'Stereotype' attribute.

If the meaning of the 'Stereotype' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Stereotype' attribute.
See Also:
Constraint.setStereotype(String), UMLPackage.getConstraint_Stereotype()

setStereotype

public void setStereotype(java.lang.String value)
Sets the value of the 'Stereotype' attribute.

Parameters:
value - the new value of the 'Stereotype' attribute.
See Also:
Constraint.getStereotype()

getBody

public OCLExpression getBody()

setBody

public void setBody(OCLExpression value)
Sets the value of the 'Body' containment reference.

Parameters:
value - the new value of the 'Body' containment reference.
See Also:
Constraint.getBody()

Copyright 2002, 2006 IBM Corporation and others.
All Rights Reserved.