|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Interaction Constraint'. An interaction constraint is a Boolean expression that guards an operand in a combined fragment.
The following features are supported:
UMLPackage.getInteractionConstraint()
Field Summary |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
SEPARATOR |
Method Summary | |
ValueSpecification |
createMaxint(String name,
Type type,
org.eclipse.emf.ecore.EClass eClass)
Creates a new ValueSpecification , with the specified 'Name', and 'Type', and sets the 'Maxint' containment reference |
ValueSpecification |
createMinint(String name,
Type type,
org.eclipse.emf.ecore.EClass eClass)
Creates a new ValueSpecification , with the specified 'Name', and 'Type', and sets the 'Minint' containment reference |
ValueSpecification |
getMaxint()
Returns the value of the 'Maxint' containment reference |
ValueSpecification |
getMinint()
Returns the value of the 'Minint' containment reference |
void |
setMaxint(ValueSpecification value)
Sets the value of the ' Maxint ' containment reference |
void |
setMinint(ValueSpecification value)
Sets the value of the ' Minint ' containment reference |
boolean |
validateDynamicVariables(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
Map context)
The dynamic variables that take part in the constraint must be owned by the ConnectableElement corresponding to the covered Lifeline. |
boolean |
validateGlobalData(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
Map context)
The constraint may contain references to global data or write-once data. |
boolean |
validateMaxintGreaterEqualMinint(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
Map context)
If maxint is specified, then minint must be specified and the evaluation of maxint must be >= the evaluation of minint true |
boolean |
validateMaxintPositive(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
Map context)
If maxint is specified, then the expression must evaluate to a positive integer. |
boolean |
validateMinintMaxint(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
Map context)
Minint/maxint can only be present if the InteractionConstraint is associated with the operand of a loop CombinedFragment. |
boolean |
validateMinintNonNegative(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
Map context)
If minint is specified, then the expression must evaluate to a non-negative integer. |
Methods inherited from interface org.eclipse.uml2.uml.Constraint |
createSpecification, getConstrainedElements, getContext, getSpecification, setContext, setSpecification, validateBooleanValue, validateNoSideEffects, validateNotAppliedToSelf, validateNotApplyToSelf, validateValueSpecificationBoolean |
Methods inherited from interface org.eclipse.uml2.uml.NamedElement |
allNamespaces, allOwningPackages, createDependency, createNameExpression, 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, 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 |
Method Detail |
public ValueSpecification getMinint()
setMinint(ValueSpecification)
,
UMLPackage.getInteractionConstraint_Minint()
public void setMinint(ValueSpecification value)
Minint
' containment reference.
value
- the new value of the 'Minint' containment reference.getMinint()
public ValueSpecification createMinint(String name, Type type, org.eclipse.emf.ecore.EClass eClass)
ValueSpecification
, with the specified 'Name', and 'Type', and sets the 'Minint' 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
.getMinint()
public ValueSpecification getMaxint()
setMaxint(ValueSpecification)
,
UMLPackage.getInteractionConstraint_Maxint()
public void setMaxint(ValueSpecification value)
Maxint
' containment reference.
value
- the new value of the 'Maxint' containment reference.getMaxint()
public ValueSpecification createMaxint(String name, Type type, org.eclipse.emf.ecore.EClass eClass)
ValueSpecification
, with the specified 'Name', and 'Type', and sets the 'Maxint' 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
.getMaxint()
public boolean validateDynamicVariables(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
public boolean validateGlobalData(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
public boolean validateMinintMaxint(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
public boolean validateMinintNonNegative(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
public boolean validateMaxintPositive(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
public boolean validateMaxintGreaterEqualMinint(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
|
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 |