org.eclipse.ocl.examples.pivot
Interface OpaqueExpression

All Superinterfaces:
Element, org.eclipse.emf.ecore.EObject, MonikeredElement, Nameable, NamedElement, org.eclipse.emf.common.notify.Notifier, ParameterableElement, PivotObject, TypedElement, ValueSpecification, Visitable
All Known Subinterfaces:
ExpressionInOcl
All Known Implementing Classes:
ExpressionInOclImpl, OpaqueExpressionImpl

public interface OpaqueExpression
extends ValueSpecification

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.

The following features are supported:

See Also:
PivotPackage.getOpaqueExpression()
Generated
Model

Method Summary
 org.eclipse.emf.common.util.EList<java.lang.String> getBodies()
          Returns the value of the 'Body' attribute list.
 org.eclipse.emf.common.util.EList<java.lang.String> getLanguages()
          Returns the value of the 'Language' attribute list.
 org.eclipse.emf.common.util.EList<java.lang.String> getMessages()
          Returns the value of the 'Message' attribute list.
 ExpressionInOcl getValueExpression()
          Returns the value of the 'Value Expression' reference.
 void setValueExpression(ExpressionInOcl value)
          Sets the value of the 'Value Expression' reference.
 boolean validateLanguageBodySize(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          If the language attribute is not empty, then the size of the body and language arrays must be the same.
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.ValueSpecification
booleanValue, integerValue, isComputable, isNull, stringValue, unlimitedValue
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.TypedElement
getType, setType
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.NamedElement
createOwnedAnnotation, createOwnedRule, getName, getOwnedAnnotations, getOwnedRules, isStatic, setIsStatic, setName
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.MonikeredElement
getMoniker, hasMoniker, setMoniker
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.Element
createOwnedComment, getETarget, getOwnedComments
 
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.ocl.examples.pivot.util.Visitable
accept, eClass
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
 

Method Detail

getBodies

org.eclipse.emf.common.util.EList<java.lang.String> getBodies()
Returns the value of the 'Body' attribute list. The list contents are of type String. The text of the expression, possibly in multiple languages.

Returns:
the value of the 'Body' attribute list.
See Also:
PivotPackage.getOpaqueExpression_Body()
Generated
Model
unique="false" dataType="org.eclipse.ocl.examples.pivot.String"

getLanguages

org.eclipse.emf.common.util.EList<java.lang.String> getLanguages()
Returns the value of the 'Language' attribute list. The list contents are of type 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.

Returns:
the value of the 'Language' attribute list.
See Also:
PivotPackage.getOpaqueExpression_Language()
Generated
Model
dataType="org.eclipse.ocl.examples.pivot.String"

getMessages

org.eclipse.emf.common.util.EList<java.lang.String> getMessages()
Returns the value of the 'Message' attribute list. The list contents are of type String.

If the meaning of the 'Message' attribute list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Message' attribute list.
See Also:
PivotPackage.getOpaqueExpression_Message()
Generated
Model
unique="false" dataType="org.eclipse.ocl.examples.pivot.String"

getValueExpression

ExpressionInOcl getValueExpression()
Returns the value of the 'Value Expression' reference.

If the meaning of the 'Value Expression' reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Value Expression' reference.
See Also:
setValueExpression(ExpressionInOcl), PivotPackage.getOpaqueExpression_ValueExpression()
Generated
Model
transient="true" ordered="false"

setValueExpression

void setValueExpression(ExpressionInOcl value)
Sets the value of the 'Value Expression' reference.

Parameters:
value - the new value of the 'Value Expression' reference.
See Also:
getValueExpression()
Generated

validateLanguageBodySize

boolean validateLanguageBodySize(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                 java.util.Map<java.lang.Object,java.lang.Object> context)
If the language attribute is not empty, then the size of the body and language arrays must be the same. language->notEmpty() implies (body->size() = language->size())

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.
Generated
Model