public interface StringExpression extends Expression, TemplateableElement
The following features are supported:
UMLPackage.getStringExpression()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
StringExpression |
createSubExpression(String name,
Type type)
Creates a new
StringExpression , 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 first
StringExpression 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 first
StringExpression 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(DiagnosticChain diagnostics,
Map context)
All the operands of a StringExpression must be LiteralStrings
operand->forAll (op | op.oclIsKindOf (LiteralString))
|
boolean |
validateSubexpressions(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).
|
createOperand, getOperand, getOperand, getOperands, getSymbol, isSetSymbol, setSymbol, unsetSymbol
booleanValue, integerValue, isComputable, isNull, stringValue, unlimitedValue
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
getType, setType
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
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
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
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature
MDWEList<StringExpression> getSubExpressions()
StringExpression
.
It is bidirectional and its opposite is 'Owning Expression
'.
The StringExpressions that constitute this StringExpression.
UMLPackage.getStringExpression_SubExpression()
,
getOwningExpression()
StringExpression createSubExpression(String name, Type type)
StringExpression
, with the specified 'Name', and 'Type',
and appends it to the 'Sub Expression' containment reference list.
name
- The 'Name' for the new StringExpression
, or null
.type
- The 'Type' for the new StringExpression
, or null
.StringExpression
.getSubExpressions()
StringExpression getSubExpression(String name, Type type)
StringExpression
with the specified 'Name', and '
Type' from the 'Sub Expression' containment reference list.
name
- The 'Name' of the StringExpression
to retrieve, or null
.type
- The 'Type' of the StringExpression
to retrieve, or null
.StringExpression
with the specified 'Name', and 'Type
', or null
.getSubExpressions()
StringExpression getSubExpression(String name, Type type, boolean ignoreCase, boolean createOnDemand)
StringExpression
with the specified 'Name', and '
Type' from the 'Sub Expression' containment reference list.
name
- The 'Name' of the StringExpression
to retrieve, or null
.type
- The 'Type' of the StringExpression
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.createOnDemand
- Whether to create a StringExpression
on demand if not found.StringExpression
with the specified 'Name', and 'Type
', or null
.getSubExpressions()
StringExpression getOwningExpression()
Sub Expression
'.
The string expression of which this expression is a substring.
setOwningExpression(StringExpression)
,
UMLPackage.getStringExpression_OwningExpression()
,
getSubExpressions()
void setOwningExpression(StringExpression value)
Owning Expression
' container
reference.
value
- the new value of the 'Owning Expression' container reference.getOwningExpression()
boolean validateOperands(DiagnosticChain diagnostics, Map context)
boolean validateSubexpressions(DiagnosticChain diagnostics, Map context)