| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Constraint
A representation of the model object 'Constraint'. A constraint is 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 an element.
The following features are supported:
UMLPackage.getConstraint()| Field Summary | 
|---|
| Fields inherited from interface org.eclipse.uml2.uml.NamedElement | 
|---|
| SEPARATOR | 
| Method Summary | |
|---|---|
|  ValueSpecification | createSpecification(java.lang.String name,
                    Type type,
                    org.eclipse.emf.ecore.EClass eClass)Creates a new ValueSpecification, with the specified 'Name', and 'Type', and sets the 'Specification' containment reference | 
|  org.eclipse.emf.common.util.EList<Element> | getConstrainedElements()Returns the value of the 'Constrained Element' reference list. | 
|  Namespace | getContext()Returns the value of the 'Context' container reference. | 
|  ValueSpecification | getSpecification()Returns the value of the 'Specification' containment reference. | 
|  void | setContext(Namespace value)Sets the value of the ' Context' container reference | 
|  void | setSpecification(ValueSpecification value)Sets the value of the ' Specification' containment reference | 
|  boolean | validateBooleanValue(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                     java.util.Map<java.lang.Object,java.lang.Object> context)The value specification for a constraint must evaluate to a Boolean value. | 
|  boolean | validateNoSideEffects(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                      java.util.Map<java.lang.Object,java.lang.Object> context)Evaluating the value specification for a constraint must not have side effects. | 
|  boolean | validateNotAppliedToSelf(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                         java.util.Map<java.lang.Object,java.lang.Object> context)A constraint cannot be applied to itself. | 
|  boolean | validateNotApplyToSelf(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                       java.util.Map<java.lang.Object,java.lang.Object> context)A constraint cannot be applied to itself. | 
|  boolean | validateValueSpecificationBoolean(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                  java.util.Map<java.lang.Object,java.lang.Object> context)The value specification for a constraint must evaluate to a Boolean value. | 
| Methods inherited from interface org.eclipse.uml2.uml.NamedElement | 
|---|
| allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership | 
| 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, eInvoke, 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.uml2.uml.ParameterableElement | 
|---|
| getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter | 
| 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, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset | 
| Methods inherited from interface org.eclipse.emf.common.notify.Notifier | 
|---|
| eAdapters, eDeliver, eNotify, eSetDeliver | 
| Method Detail | 
|---|
org.eclipse.emf.common.util.EList<Element> getConstrainedElements()
Element.
 
 
 
 The ordered set of Elements referenced by this Constraint.
 
UMLPackage.getConstraint_ConstrainedElement()ValueSpecification getSpecification()
This feature subsets the following features:
A condition that must be true when evaluated in order for the constraint to be satisfied.
setSpecification(ValueSpecification), 
UMLPackage.getConstraint_Specification()void setSpecification(ValueSpecification value)
Specification' containment reference.
 
 
value - the new value of the 'Specification' containment reference.getSpecification()
ValueSpecification createSpecification(java.lang.String name,
                                       Type type,
                                       org.eclipse.emf.ecore.EClass eClass)
ValueSpecification, with the specified 'Name', and 'Type', and sets the 'Specification' containment reference.
 
 
name - The 'Name' for the new ValueSpecification, or null.type - The 'Type' for the new ValueSpecification, or null.eClass - The Ecore class of the ValueSpecification to create.
ValueSpecification.getSpecification()Namespace getContext()
Owned Rule'.
 This feature subsets the following features:
Specifies the namespace that owns the NamedElement.
setContext(Namespace), 
UMLPackage.getConstraint_Context(), 
Namespace.getOwnedRules()void setContext(Namespace value)
Context' container reference.
 
 
value - the new value of the 'Context' container reference.getContext()
boolean validateNotApplyToSelf(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                               java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics - The chain of diagnostics to which problems are to be appended.context - The cache of context-specific information.
 
boolean validateValueSpecificationBoolean(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                          java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics - The chain of diagnostics to which problems are to be appended.context - The cache of context-specific information.
 
boolean validateBooleanValue(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                             java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics - The chain of diagnostics to which problems are to be appended.context - The cache of context-specific information.
 
boolean validateNoSideEffects(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                              java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics - The chain of diagnostics to which problems are to be appended.context - The cache of context-specific information.
 
boolean validateNotAppliedToSelf(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                 java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics - The chain of diagnostics to which problems are to be appended.context - The cache of context-specific information.
 | 
 | Copyright 2003, 2007 IBM Corporation and others. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||