Interface Constraint

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

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:
  • 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.
      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.
      value - the new value of the 'Body' attribute.
      See Also: