|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Opaque Expression'. An opaque expression is an uninterpreted textual statement that denotes a (possibly empty) set of values when evaluated in a context. Provides a mechanism for precisely defining the behavior of an opaque expression. An opaque expression is defined by a behavior restricted to return one result.
The following features are supported:
UMLPackage.getOpaqueExpression()
Field Summary |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
SEPARATOR |
Method Summary | |
Behavior |
getBehavior()
Returns the value of the 'Behavior' reference |
EList |
getBodies()
Returns the value of the 'Body' attribute list. |
EList |
getLanguages()
Returns the value of the 'Language' attribute list. |
Parameter |
getResult()
Returns the value of the 'Result' reference |
boolean |
isIntegral()
The query isIntegral() tells whether an expression is intended to produce an integer. |
boolean |
isNonNegative()
The query isNonNegative() tells whether an integer expression has a non-negative value. |
boolean |
isPositive()
The query isPositive() tells whether an integer expression has a positive value. |
boolean |
isSetBodies()
Returns whether the value of the ' Body ' attribute list is set |
boolean |
isSetLanguages()
Returns whether the value of the ' Language ' attribute list is set |
void |
setBehavior(Behavior value)
Sets the value of the ' Behavior ' reference |
void |
unsetBodies()
Unsets the value of the ' Body ' attribute list |
void |
unsetLanguages()
Unsets the value of the ' Language ' attribute list |
boolean |
validateLanguageBodySize(DiagnosticChain diagnostics,
Map context)
If the language attribute is not empty, then the size of the body and language arrays must be the same. |
boolean |
validateOneReturnResultParameter(DiagnosticChain diagnostics,
Map context)
The behavior must have exactly one return result parameter. |
boolean |
validateOnlyReturnResultParameters(DiagnosticChain diagnostics,
Map context)
The behavior may only have return result parameters. |
int |
value()
The query value() gives an integer value for an expression intended to produce one. |
Methods inherited from interface org.eclipse.uml2.uml.ValueSpecification |
booleanValue, integerValue, isComputable, isNull, stringValue, unlimitedValue |
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 |
Methods inherited from interface org.eclipse.uml2.uml.TypedElement |
getType, setType |
Method Detail |
public EList getBodies()
String
.
The text of the expression, possibly in multiple languages.
OpaqueExpression.isSetBodies()
,
OpaqueExpression.unsetBodies()
,
UMLPackage.getOpaqueExpression_Body()
public void unsetBodies()
Body
' attribute list.
OpaqueExpression.isSetBodies()
,
OpaqueExpression.getBodies()
public boolean isSetBodies()
Body
' attribute list is set.
OpaqueExpression.unsetBodies()
,
OpaqueExpression.getBodies()
public EList getLanguages()
String
.
Specifies the languages in which the expression is stated. The interpretation of the expression body depends on the languages. If the languages are unspecified, they might be implicit from the expression body or the context. Languages are matched to body strings by order.
OpaqueExpression.isSetLanguages()
,
OpaqueExpression.unsetLanguages()
,
UMLPackage.getOpaqueExpression_Language()
public void unsetLanguages()
Language
' attribute list.
OpaqueExpression.isSetLanguages()
,
OpaqueExpression.getLanguages()
public boolean isSetLanguages()
Language
' attribute list is set.
OpaqueExpression.unsetLanguages()
,
OpaqueExpression.getLanguages()
public Parameter getResult()
UMLPackage.getOpaqueExpression_Result()
public Behavior getBehavior()
OpaqueExpression.setBehavior(Behavior)
,
UMLPackage.getOpaqueExpression_Behavior()
public void setBehavior(Behavior value)
Behavior
' reference.
value
- the new value of the 'Behavior' reference.OpaqueExpression.getBehavior()
public boolean validateLanguageBodySize(DiagnosticChain diagnostics, Map context)
public boolean validateOnlyReturnResultParameters(DiagnosticChain diagnostics, Map context)
public boolean validateOneReturnResultParameter(DiagnosticChain diagnostics, Map context)
public int value()
public boolean isIntegral()
public boolean isPositive()
public boolean isNonNegative()
|
Copyright 2003, 2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |