Interface Constraint

All Superinterfaces:
Element, org.eclipse.emf.ecore.EObject, MethodElement, NamedElement, org.eclipse.emf.common.notify.Notifier, PackageableElement
All Known Implementing Classes:
ConstraintImpl

public interface Constraint
extends MethodElement
A representation of the model object 'Constraint'. A Constraint is a Method Element that represents a condition or restriction expressed in natural language text or in a machine readable language for the purpose of declaring some of the semantics of a Method Element.

The following features are supported:

See Also:
UmaPackage.getConstraint()
  • Method Details

    • getBody

      java.lang.String getBody()
      Returns the value of the 'Body' attribute. The default value is "". This attribute stores the definition of the constraint.
      Returns:
      the value of the 'Body' attribute.
      See Also:
      setBody(String), UmaPackage.getConstraint_Body()
    • setBody

      void setBody​(java.lang.String value)
      Sets the value of the 'Body' attribute.
      Parameters:
      value - the new value of the 'Body' attribute.
      See Also:
      getBody()