org.eclipse.ocl.examples.codegen.cgmodel
Interface CGConstraint

All Superinterfaces:
CGElement, CGNamedElement, org.eclipse.emf.ecore.EObject, Nameable, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
CGConstraintImpl

public interface CGConstraint
extends CGNamedElement

A representation of the model object 'CG Constraint'. A CGConstraint defines a constraint such as a class invariant.

The following features are supported:

See Also:
CGModelPackage.getCGConstraint()
Generated
Model

Field Summary
 
Fields inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGElement
EMPTY_LIST
 
Method Summary
 CGValuedElement getBody()
          Returns the value of the 'Body' containment reference.
 CGValuedElement getMessage()
          Returns the value of the 'Message' containment reference.
 void setBody(CGValuedElement value)
          Sets the value of the 'Body' containment reference.
 void setMessage(CGValuedElement value)
          Sets the value of the 'Message' containment reference.
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGNamedElement
getName, getPivot, setName, setPivot
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGElement
accept, getChildren, getParent
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getBody

CGValuedElement getBody()
Returns the value of the 'Body' containment reference.

If the meaning of the 'Body' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Body' containment reference.
See Also:
setBody(CGValuedElement), CGModelPackage.getCGConstraint_Body()
Generated
Model
containment="true"

setBody

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

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

getMessage

CGValuedElement getMessage()
Returns the value of the 'Message' containment reference.

If the meaning of the 'Message' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Message' containment reference.
See Also:
setMessage(CGValuedElement), CGModelPackage.getCGConstraint_Message()
Generated
Model
containment="true"

setMessage

void setMessage(CGValuedElement value)
Sets the value of the 'Message' containment reference.

Parameters:
value - the new value of the 'Message' containment reference.
See Also:
getMessage()
Generated