|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Named Element'. A named element is an element in a model that may have a name. A named element supports using a string expression to specify its name. This allows names of model elements to involve template parameters. The actual name is evaluated from the string expression only when it is sensible to do so (e.g., when a template is bound).
The following features are supported:
UMLPackage.getNamedElement()
Field Summary | |
static String |
SEPARATOR
|
Method Summary | |
EList |
allNamespaces()
The query allNamespaces() gives the sequence of namespaces in which the NamedElement is nested, working outwards. |
EList |
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 |
EList |
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. |
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 |
Field Detail |
public static final String SEPARATOR
Method Detail |
public String getName()
NamedElement.isSetName()
,
NamedElement.unsetName()
,
NamedElement.setName(String)
,
UMLPackage.getNamedElement_Name()
public void setName(String value)
Name
' attribute.
value
- the new value of the 'Name' attribute.NamedElement.isSetName()
,
NamedElement.unsetName()
,
NamedElement.getName()
public void unsetName()
Name
' attribute.
NamedElement.isSetName()
,
NamedElement.getName()
,
NamedElement.setName(String)
public boolean isSetName()
Name
' attribute is set.
NamedElement.unsetName()
,
NamedElement.getName()
,
NamedElement.setName(String)
public VisibilityKind getVisibility()
VisibilityKind
.
Determines where the NamedElement appears within different Namespaces within the overall model, and its accessibility.
VisibilityKind
,
NamedElement.isSetVisibility()
,
NamedElement.unsetVisibility()
,
NamedElement.setVisibility(VisibilityKind)
,
UMLPackage.getNamedElement_Visibility()
public void setVisibility(VisibilityKind value)
Visibility
' attribute.
value
- the new value of the 'Visibility' attribute.VisibilityKind
,
NamedElement.isSetVisibility()
,
NamedElement.unsetVisibility()
,
NamedElement.getVisibility()
public void unsetVisibility()
Visibility
' attribute.
NamedElement.isSetVisibility()
,
NamedElement.getVisibility()
,
NamedElement.setVisibility(VisibilityKind)
public boolean isSetVisibility()
Visibility
' attribute is set.
NamedElement.unsetVisibility()
,
NamedElement.getVisibility()
,
NamedElement.setVisibility(VisibilityKind)
public String getQualifiedName()
UMLPackage.getNamedElement_QualifiedName()
public EList getClientDependencies()
Dependency
.
It is bidirectional and its opposite is 'Client
'.
Indicates the dependencies that reference the client.
UMLPackage.getNamedElement_ClientDependency()
,
Dependency.getClients()
public 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
.NamedElement.getClientDependencies()
public 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
.NamedElement.getClientDependencies()
public Namespace getNamespace()
Owned Member
'.
Specifies the namespace that owns the NamedElement.
UMLPackage.getNamedElement_Namespace()
,
Namespace.getOwnedMembers()
public StringExpression getNameExpression()
NamedElement.setNameExpression(StringExpression)
,
UMLPackage.getNamedElement_NameExpression()
public void setNameExpression(StringExpression value)
Name Expression
' containment reference.
value
- the new value of the 'Name Expression' containment reference.NamedElement.getNameExpression()
public 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
.NamedElement.getNameExpression()
public boolean validateHasNoQualifiedName(DiagnosticChain diagnostics, Map context)
public boolean validateHasQualifiedName(DiagnosticChain diagnostics, Map context)
public boolean validateVisibilityNeedsOwnership(DiagnosticChain diagnostics, Map context)
public Dependency createDependency(NamedElement supplier)
public String getLabel()
public String getLabel(boolean localize)
public EList allNamespaces()
public boolean isDistinguishableFrom(NamedElement n, Namespace ns)
public String separator()
public EList allOwningPackages()
|
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 |