public interface NamedElement extends Element
The following features are supported:
UMLPackage.getNamedElement()
Modifier and Type | Method and Description |
---|---|
MDWEList<Namespace> |
allNamespaces()
The query allNamespaces() gives the sequence of namespaces in which the NamedElement is nested, working outwards.
|
MDWEList<Package> |
allOwningPackages()
The query allOwningPackages() returns all the directly or indirectly owning packages.
|
Dependency |
createDependency(NamedElement supplier)
Creates a dependency between this named element and the specified supplier, owned by this named element's nearest package
|
StringExpression |
createNameExpression(String name,
Type type)
Creates a new
StringExpression ,with the specified 'Name', and 'Type',
and sets the 'Name Expression' containment reference |
MDWEList<Dependency> |
getClientDependencies()
Returns the value of the 'Client Dependency' reference list.
|
Dependency |
getClientDependency(String name)
Retrieves the first
Dependency with the specified 'Name' from the '
Client Dependency' reference list |
Dependency |
getClientDependency(String name,
boolean ignoreCase,
EClass eClass)
Retrieves the first
Dependency with the specified 'Name' from the '
Client Dependency' reference list |
String |
getLabel()
Retrieves a localized label for this named element
|
String |
getLabel(boolean localize)
Retrieves a label for this named element, localized if indicated
|
String |
getName()
Returns the value of the 'Name' attribute
|
StringExpression |
getNameExpression()
Returns the value of the 'Name Expression' containment reference
|
Namespace |
getNamespace()
Returns the value of the 'Namespace' reference.
|
String |
getQualifiedName()
Returns the value of the 'Qualified Name' attribute
|
VisibilityKind |
getVisibility()
Returns the value of the 'Visibility' attribute.
|
boolean |
isDistinguishableFrom(NamedElement n,
Namespace ns)
The query isDistinguishableFrom() determines whether two NamedElements may logically co-exist within a Namespace.
|
boolean |
isSetName()
Returns whether the value of the '
Name ' attribute is set |
boolean |
isSetVisibility()
Returns whether the value of the '
Visibility ' attribute is set |
String |
separator()
The query separator() gives the string that is used to separate names when constructing a qualified name.
|
void |
setName(String value)
Sets the value of the '
Name ' attribute |
void |
setNameExpression(StringExpression value)
Sets the value of the '
Name Expression ' containment reference |
void |
setVisibility(VisibilityKind value)
Sets the value of the '
Visibility ' attribute |
void |
unsetName()
Unsets the value of the '
Name ' attribute |
void |
unsetVisibility()
Unsets the value of the '
Visibility ' attribute |
boolean |
validateHasNoQualifiedName(DiagnosticChain diagnostics,
Map context)
If there is no name, or one of the containing namespaces has no name, there is no qualified name.
|
boolean |
validateHasQualifiedName(DiagnosticChain diagnostics,
Map context)
When there is a name, and all of the containing namespaces have a name, the qualified name is constructed from the names of the containing
namespaces.
|
boolean |
validateVisibilityNeedsOwnership(DiagnosticChain diagnostics,
Map context)
If a NamedElement is not owned by a Namespace, it does not have a visibility.
|
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
static final String SEPARATOR
String getName()
isSetName()
,
unsetName()
,
setName(String)
,
UMLPackage.getNamedElement_Name()
void setName(String value)
Name
' attribute.
value
- the new value of the 'Name' attribute.isSetName()
,
unsetName()
,
getName()
void unsetName()
Name
' attribute.
isSetName()
,
getName()
,
setName(String)
boolean isSetName()
Name
' attribute is set.
unsetName()
,
getName()
,
setName(String)
VisibilityKind getVisibility()
VisibilityKind
.
Determines where the NamedElement appears within different Namespaces within the overall model, and its accessibility.
VisibilityKind
,
isSetVisibility()
,
unsetVisibility()
,
setVisibility(VisibilityKind)
,
UMLPackage.getNamedElement_Visibility()
void setVisibility(VisibilityKind value)
Visibility
' attribute.
value
- the new value of the 'Visibility' attribute.VisibilityKind
,
isSetVisibility()
,
unsetVisibility()
,
getVisibility()
void unsetVisibility()
Visibility
' attribute.
boolean isSetVisibility()
Visibility
' attribute is set.
unsetVisibility()
,
getVisibility()
,
setVisibility(VisibilityKind)
String getQualifiedName()
UMLPackage.getNamedElement_QualifiedName()
MDWEList<Dependency> getClientDependencies()
Dependency
.
It is bidirectional and its opposite is 'Client
'.
Indicates the dependencies that reference the client.
UMLPackage.getNamedElement_ClientDependency()
,
Dependency.getClients()
Dependency getClientDependency(String name)
Dependency
with the specified 'Name' from the '
Client Dependency' reference list.
name
- The 'Name' of the Dependency
to retrieve, or null
.Dependency
with the specified 'Name', or null
.getClientDependencies()
Dependency getClientDependency(String name, boolean ignoreCase, EClass eClass)
Dependency
with the specified 'Name' from the '
Client Dependency' reference list.
name
- The 'Name' of the Dependency
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Dependency
to retrieve, or null
.Dependency
with the specified 'Name', or null
.getClientDependencies()
Namespace getNamespace()
Owned Member
'.
Specifies the namespace that owns the NamedElement.
UMLPackage.getNamedElement_Namespace()
,
Namespace.getOwnedMembers()
StringExpression getNameExpression()
setNameExpression(StringExpression)
,
UMLPackage.getNamedElement_NameExpression()
void setNameExpression(StringExpression value)
Name Expression
' containment reference.
value
- the new value of the 'Name Expression' containment reference.getNameExpression()
StringExpression createNameExpression(String name, Type type)
StringExpression
,with the specified 'Name', and 'Type',
and sets the 'Name Expression' containment reference.
name
- The 'Name' for the new StringExpression
, or null
.type
- The 'Type' for the new StringExpression
, or null
.StringExpression
.getNameExpression()
boolean validateHasNoQualifiedName(DiagnosticChain diagnostics, Map context)
boolean validateHasQualifiedName(DiagnosticChain diagnostics, Map context)
boolean validateVisibilityNeedsOwnership(DiagnosticChain diagnostics, Map context)
Dependency createDependency(NamedElement supplier)
String getLabel()
String getLabel(boolean localize)
MDWEList<Namespace> allNamespaces()
boolean isDistinguishableFrom(NamedElement n, Namespace ns)
String separator()