|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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:
UMLPackage.getStringExpression()
Field Summary |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
SEPARATOR |
Method Summary | |
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 |
EList |
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). |
Methods inherited from interface org.eclipse.uml2.uml.Expression |
createOperand, getOperand, getOperand, getOperands, getSymbol, isSetSymbol, setSymbol, unsetSymbol |
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 |
Methods inherited from interface org.eclipse.uml2.uml.TemplateableElement |
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature |
Method Detail |
public EList getSubExpressions()
StringExpression
.
It is bidirectional and its opposite is 'Owning Expression
'.
The StringExpressions that constitute this StringExpression.
UMLPackage.getStringExpression_SubExpression()
,
StringExpression.getOwningExpression()
public 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
.StringExpression.getSubExpressions()
public 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
.StringExpression.getSubExpressions()
public 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
.StringExpression.getSubExpressions()
public StringExpression getOwningExpression()
Sub Expression
'.
The string expression of which this expression is a substring.
StringExpression.setOwningExpression(StringExpression)
,
UMLPackage.getStringExpression_OwningExpression()
,
StringExpression.getSubExpressions()
public void setOwningExpression(StringExpression value)
Owning Expression
' container reference.
value
- the new value of the 'Owning Expression' container reference.StringExpression.getOwningExpression()
public boolean validateOperands(DiagnosticChain diagnostics, Map context)
public boolean validateSubexpressions(DiagnosticChain diagnostics, Map context)
|
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 |