Package com.sodius.mdw.metamodel.uml21
Interface StringExpression
-
- All Superinterfaces:
Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,Expression
,MDWEObject
,MDWObject
,NamedElement
,org.eclipse.emf.common.notify.Notifier
,PackageableElement
,ParameterableElement
,TemplateableElement
,TypedElement
,ValueSpecification
public interface StringExpression extends Expression, TemplateableElement
A representation of the model object 'String Expression'. An expression that specifies a string value that is derived by concatenating a set of sub string expressions, some of which might be template parameters.The following features are supported:
- See Also:
UMLPackage.getStringExpression()
-
-
Field Summary
-
Fields inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringExpression
createSubExpression(String name, Type type)
Creates a newStringExpression
, with the specified 'Name', and 'Type', and appends it to the 'Sub Expression' containment reference list.StringExpression
getOwningExpression()
Returns the value of the 'Owning Expression' container reference.StringExpression
getSubExpression(String name, Type type)
Retrieves the firstStringExpression
with the specified 'Name', and ' Type' from the 'Sub Expression' containment reference list.StringExpression
getSubExpression(String name, Type type, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstStringExpression
with the specified 'Name', and ' Type' from the 'Sub Expression' containment reference list.MDWEList<StringExpression>
getSubExpressions()
Returns the value of the 'Sub Expression' containment reference list.void
setOwningExpression(StringExpression value)
Sets the value of the 'Owning Expression
' container reference.boolean
validateOperands(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
All the operands of a StringExpression must be LiteralStrings operand->forAll (op | op.oclIsKindOf (LiteralString))boolean
validateSubexpressions(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
If a StringExpression has sub-expressions, it cannot have operands and vice versa (this avoids the problem of having to define a collating sequence between operands and subexpressions).-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
-
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 com.sodius.mdw.metamodel.uml21.Expression
createOperand, getOperand, getOperand, getOperands, getSymbol, isSetSymbol, setSymbol, unsetSymbol
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.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.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.TemplateableElement
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.TypedElement
getType, setType
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ValueSpecification
booleanValue, integerValue, isComputable, isNull, stringValue, unlimitedValue
-
-
-
-
Method Detail
-
getSubExpressions
MDWEList<StringExpression> getSubExpressions()
Returns the value of the 'Sub Expression' containment reference list. The list contents are of typeStringExpression
. It is bidirectional and its opposite is 'Owning Expression
'. The StringExpressions that constitute this StringExpression.- Returns:
- the value of the 'Sub Expression' containment reference list.
- See Also:
UMLPackage.getStringExpression_SubExpression()
,getOwningExpression()
-
createSubExpression
StringExpression createSubExpression(String name, Type type)
Creates a newStringExpression
, with the specified 'Name', and 'Type', and appends it to the 'Sub Expression' containment reference list.- Parameters:
name
- The 'Name' for the newStringExpression
, ornull
.type
- The 'Type' for the newStringExpression
, ornull
.- Returns:
- The new
StringExpression
. - See Also:
getSubExpressions()
-
getSubExpression
StringExpression getSubExpression(String name, Type type)
Retrieves the firstStringExpression
with the specified 'Name', and ' Type' from the 'Sub Expression' containment reference list.- Parameters:
name
- The 'Name' of theStringExpression
to retrieve, ornull
.type
- The 'Type' of theStringExpression
to retrieve, ornull
.- Returns:
- The first
StringExpression
with the specified 'Name', and 'Type ', ornull
. - See Also:
getSubExpressions()
-
getSubExpression
StringExpression getSubExpression(String name, Type type, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstStringExpression
with the specified 'Name', and ' Type' from the 'Sub Expression' containment reference list.- Parameters:
name
- The 'Name' of theStringExpression
to retrieve, ornull
.type
- The 'Type' of theStringExpression
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.createOnDemand
- Whether to create aStringExpression
on demand if not found.- Returns:
- The first
StringExpression
with the specified 'Name', and 'Type ', ornull
. - See Also:
getSubExpressions()
-
getOwningExpression
StringExpression getOwningExpression()
Returns the value of the 'Owning Expression' container reference. It is bidirectional and its opposite is 'Sub Expression
'. The string expression of which this expression is a substring.- Returns:
- the value of the 'Owning Expression' container reference.
- See Also:
setOwningExpression(StringExpression)
,UMLPackage.getStringExpression_OwningExpression()
,getSubExpressions()
-
setOwningExpression
void setOwningExpression(StringExpression value)
Sets the value of the 'Owning Expression
' container reference.- Parameters:
value
- the new value of the 'Owning Expression' container reference.- See Also:
getOwningExpression()
-
validateOperands
boolean validateOperands(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
All the operands of a StringExpression must be LiteralStrings operand->forAll (op | op.oclIsKindOf (LiteralString))
-
validateSubexpressions
boolean validateSubexpressions(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
If a StringExpression has sub-expressions, it cannot have operands and vice versa (this avoids the problem of having to define a collating sequence between operands and subexpressions). if subExpression->notEmpty() then operand->isEmpty() else operand->notEmpty()
-
-