|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NamedElement
A representation of the model object 'Named Element'. A NamedElement is an Element in a model that may have a name. The name may be given directly and/or via the use of a StringExpression.
From package UML::CommonStructure.
The following features are supported:
UMLPackage.getNamedElement()
Field Summary | |
---|---|
static java.lang.String |
SEPARATOR
|
Method Summary | |
---|---|
org.eclipse.emf.common.util.EList<Namespace> |
allNamespaces()
The query allNamespaces() gives the sequence of Namespaces in which the NamedElement is nested, working outwards. |
org.eclipse.emf.common.util.EList<Package> |
allOwningPackages()
The query allOwningPackages() returns the set of all the enclosing Namespaces of this NamedElement, working outwards, that are Packages, up to but not including the first such Namespace that is not a Package. |
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(java.lang.String name,
Type type)
Creates a new StringExpression ,with the specified 'Name', and 'Type', and sets the 'Name Expression' containment reference |
Usage |
createUsage(NamedElement supplier)
Creates a usage between this named element and the specified supplier, owned by this named element's nearest package. |
org.eclipse.emf.common.util.EList<Dependency> |
getClientDependencies()
Returns the value of the 'Client Dependency' reference list. |
Dependency |
getClientDependency(java.lang.String name)
Retrieves the first Dependency with the specified 'Name' from the 'Client Dependency' reference list |
Dependency |
getClientDependency(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first Dependency with the specified 'Name' from the 'Client Dependency' reference list |
java.lang.String |
getLabel()
Retrieves a localized label for this named element |
java.lang.String |
getLabel(boolean localize)
Retrieves a label for this named element, localized if indicated. |
java.lang.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. |
java.lang.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 |
java.lang.String |
separator()
The query separator() gives the string that is used to separate names when constructing a qualifiedName. |
void |
setName(java.lang.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(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
If there is no name, or one of the containing Namespaces has no name, there is no qualifiedName. |
boolean |
validateHasQualifiedName(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
When there is a name, and all of the containing Namespaces have a name, the qualifiedName is constructed from the name of the NamedElement and the names of the containing Namespaces. |
boolean |
validateVisibilityNeedsOwnership(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
If a NamedElement is owned by something other than 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, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Field Detail |
---|
static final java.lang.String SEPARATOR
Method Detail |
---|
java.lang.String getName()
From package UML::CommonStructure.
isSetName()
,
unsetName()
,
setName(String)
,
UMLPackage.getNamedElement_Name()
void setName(java.lang.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 whether and how the NamedElement is visible outside its owning Namespace.
From package UML::CommonStructure.
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.
isSetVisibility()
,
getVisibility()
,
setVisibility(VisibilityKind)
boolean isSetVisibility()
Visibility
' attribute is set.
unsetVisibility()
,
getVisibility()
,
setVisibility(VisibilityKind)
java.lang.String getQualifiedName()
From package UML::CommonStructure.
UMLPackage.getNamedElement_QualifiedName()
org.eclipse.emf.common.util.EList<Dependency> getClientDependencies()
Dependency
.
Indicates the Dependencies that reference this NamedElement as a client.
From package UML::CommonStructure.
UMLPackage.getNamedElement_ClientDependency()
Dependency getClientDependency(java.lang.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(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.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
'.
This feature subsets the following features:
Owner
'From package UML::CommonStructure.
UMLPackage.getNamedElement_Namespace()
,
Namespace.getOwnedMembers()
StringExpression getNameExpression()
This feature subsets the following features:
The StringExpression used to define the name of this NamedElement.From package UML::CommonStructure.
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(java.lang.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(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateHasQualifiedName(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateVisibilityNeedsOwnership(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
Dependency createDependency(NamedElement supplier)
supplier
- The supplier for the new dependency.
java.lang.String getLabel()
java.lang.String getLabel(boolean localize)
localize
- Whether to localize the label.
Usage createUsage(NamedElement supplier)
supplier
- The supplier for the new usage.
org.eclipse.emf.common.util.EList<Namespace> allNamespaces()
From package UML::CommonStructure.
boolean isDistinguishableFrom(NamedElement n, Namespace ns)
From package UML::CommonStructure.
java.lang.String separator()
From package UML::CommonStructure.
org.eclipse.emf.common.util.EList<Package> allOwningPackages()
From package UML::CommonStructure.
|
Copyright 2003, 2014 IBM Corporation, CEA, and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |