|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Namespace'. A namespace is an element in a model that contains a set of named elements that can be identified by name.
The following features are supported:
UMLPackage.getNamespace()
Field Summary |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
SEPARATOR |
Method Summary | |
ElementImport |
createElementImport(PackageableElement importedElement)
Creates a new ElementImport , with the specified 'Imported Element', and appends it to the 'Element Import' containment reference list |
ElementImport |
createElementImport(PackageableElement element,
VisibilityKind visibility)
Creates an import of the specified element into this namespace with the specified visibility |
Constraint |
createOwnedRule(String name)
Creates a new Constraint , with the specified 'Name', and appends it to the 'Owned Rule' containment reference list |
Constraint |
createOwnedRule(String name,
EClass eClass)
Creates a new Constraint , with the specified 'Name', and appends it to the 'Owned Rule' containment reference list |
PackageImport |
createPackageImport(Package importedPackage)
Creates a new PackageImport , with the specified 'Imported Package', and appends it to the 'Package Import' containment reference list |
PackageImport |
createPackageImport(Package package_,
VisibilityKind visibility)
Creates an import of the specified package into this namespace with the specified visibility |
EList |
excludeCollisions(EList imps)
The query excludeCollisions() excludes from a set of PackageableElements any that would not be distinguishable from each other in this namespace. |
ElementImport |
getElementImport(PackageableElement importedElement)
Retrieves the first ElementImport with the specified 'Imported Element' from the 'Element Import' containment reference list |
ElementImport |
getElementImport(PackageableElement importedElement,
boolean createOnDemand)
Retrieves the first ElementImport with the specified 'Imported Element' from the 'Element Import' containment reference list |
EList |
getElementImports()
Returns the value of the 'Element Import' containment reference list. |
EList |
getImportedElements()
Retrieves the elements imported by this namespace |
PackageableElement |
getImportedMember(String name)
Retrieves the first PackageableElement with the specified 'Name' from the 'Imported Member' reference list |
PackageableElement |
getImportedMember(String name,
boolean ignoreCase,
EClass eClass)
Retrieves the first PackageableElement with the specified 'Name' from the 'Imported Member' reference list |
EList |
getImportedMembers()
Returns the value of the 'Imported Member' reference list. |
EList |
getImportedPackages()
Retrieves the packages imported by this namespace |
NamedElement |
getMember(String name)
Retrieves the first NamedElement with the specified 'Name' from the 'Member' reference list |
NamedElement |
getMember(String name,
boolean ignoreCase,
EClass eClass)
Retrieves the first NamedElement with the specified 'Name' from the 'Member' reference list |
EList |
getMembers()
Returns the value of the 'Member' reference list. |
EList |
getNamesOfMember(NamedElement element)
The query getNamesOfMember() takes importing into account. |
NamedElement |
getOwnedMember(String name)
Retrieves the first NamedElement with the specified 'Name' from the 'Owned Member' reference list |
NamedElement |
getOwnedMember(String name,
boolean ignoreCase,
EClass eClass)
Retrieves the first NamedElement with the specified 'Name' from the 'Owned Member' reference list |
EList |
getOwnedMembers()
Returns the value of the 'Owned Member' reference list. |
Constraint |
getOwnedRule(String name)
Retrieves the first Constraint with the specified 'Name' from the 'Owned Rule' containment reference list |
Constraint |
getOwnedRule(String name,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first Constraint with the specified 'Name' from the 'Owned Rule' containment reference list |
EList |
getOwnedRules()
Returns the value of the 'Owned Rule' containment reference list. |
PackageImport |
getPackageImport(Package importedPackage)
Retrieves the first PackageImport with the specified 'Imported Package' from the 'Package Import' containment reference list |
PackageImport |
getPackageImport(Package importedPackage,
boolean createOnDemand)
Retrieves the first PackageImport with the specified 'Imported Package' from the 'Package Import' containment reference list |
EList |
getPackageImports()
Returns the value of the 'Package Import' containment reference list. |
EList |
importMembers(EList imps)
The query importMembers() defines which of a set of PackageableElements are actually imported into the namespace. |
boolean |
membersAreDistinguishable()
The Boolean query membersAreDistinguishable() determines whether all of the namespace's members are distinguishable within it. |
boolean |
validateMembersDistinguishable(DiagnosticChain diagnostics,
Map context)
All the members of a Namespace are distinguishable within it. |
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 |
Method Detail |
public EList getElementImports()
ElementImport
.
It is bidirectional and its opposite is 'Importing Namespace
'.
References the ElementImports owned by the Namespace.
UMLPackage.getNamespace_ElementImport()
,
ElementImport.getImportingNamespace()
public ElementImport createElementImport(PackageableElement importedElement)
ElementImport
, with the specified 'Imported Element', and appends it to the 'Element Import' containment reference list.
importedElement
- The 'Imported Element' for the new ElementImport
, or null
.
ElementImport
.Namespace.getElementImports()
public ElementImport getElementImport(PackageableElement importedElement)
ElementImport
with the specified 'Imported Element' from the 'Element Import' containment reference list.
importedElement
- The 'Imported Element' of the ElementImport
to retrieve, or null
.
ElementImport
with the specified 'Imported Element', or null
.Namespace.getElementImports()
public ElementImport getElementImport(PackageableElement importedElement, boolean createOnDemand)
ElementImport
with the specified 'Imported Element' from the 'Element Import' containment reference list.
importedElement
- The 'Imported Element' of the ElementImport
to retrieve, or null
.createOnDemand
- Whether to create a ElementImport
on demand if not found.
ElementImport
with the specified 'Imported Element', or null
.Namespace.getElementImports()
public EList getPackageImports()
PackageImport
.
It is bidirectional and its opposite is 'Importing Namespace
'.
References the PackageImports owned by the Namespace.
UMLPackage.getNamespace_PackageImport()
,
PackageImport.getImportingNamespace()
public PackageImport createPackageImport(Package importedPackage)
PackageImport
, with the specified 'Imported Package', and appends it to the 'Package Import' containment reference list.
importedPackage
- The 'Imported Package' for the new PackageImport
, or null
.
PackageImport
.Namespace.getPackageImports()
public PackageImport getPackageImport(Package importedPackage)
PackageImport
with the specified 'Imported Package' from the 'Package Import' containment reference list.
importedPackage
- The 'Imported Package' of the PackageImport
to retrieve, or null
.
PackageImport
with the specified 'Imported Package', or null
.Namespace.getPackageImports()
public PackageImport getPackageImport(Package importedPackage, boolean createOnDemand)
PackageImport
with the specified 'Imported Package' from the 'Package Import' containment reference list.
importedPackage
- The 'Imported Package' of the PackageImport
to retrieve, or null
.createOnDemand
- Whether to create a PackageImport
on demand if not found.
PackageImport
with the specified 'Imported Package', or null
.Namespace.getPackageImports()
public EList getOwnedRules()
Constraint
.
It is bidirectional and its opposite is 'Context
'.
Specifies a set of Constraints owned by this Namespace.
UMLPackage.getNamespace_OwnedRule()
,
Constraint.getContext()
public Constraint createOwnedRule(String name, EClass eClass)
Constraint
, with the specified 'Name', and appends it to the 'Owned Rule' containment reference list.
name
- The 'Name' for the new Constraint
, or null
.eClass
- The Ecore class of the Constraint
to create.
Constraint
.Namespace.getOwnedRules()
public Constraint createOwnedRule(String name)
Constraint
, with the specified 'Name', and appends it to the 'Owned Rule' containment reference list.
name
- The 'Name' for the new Constraint
, or null
.
Constraint
.Namespace.getOwnedRules()
public Constraint getOwnedRule(String name)
Constraint
with the specified 'Name' from the 'Owned Rule' containment reference list.
name
- The 'Name' of the Constraint
to retrieve, or null
.
Constraint
with the specified 'Name', or null
.Namespace.getOwnedRules()
public Constraint getOwnedRule(String name, boolean ignoreCase, EClass eClass, boolean createOnDemand)
Constraint
with the specified 'Name' from the 'Owned Rule' containment reference list.
name
- The 'Name' of the Constraint
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Constraint
to retrieve, or null
.createOnDemand
- Whether to create a Constraint
on demand if not found.
Constraint
with the specified 'Name', or null
.Namespace.getOwnedRules()
public EList getMembers()
NamedElement
.
A collection of NamedElements identifiable within the Namespace, either by being owned or by being introduced by importing or inheritance.
UMLPackage.getNamespace_Member()
public NamedElement getMember(String name)
NamedElement
with the specified 'Name' from the 'Member' reference list.
name
- The 'Name' of the NamedElement
to retrieve, or null
.
NamedElement
with the specified 'Name', or null
.Namespace.getMembers()
public NamedElement getMember(String name, boolean ignoreCase, EClass eClass)
NamedElement
with the specified 'Name' from the 'Member' reference list.
name
- The 'Name' of the NamedElement
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the NamedElement
to retrieve, or null
.
NamedElement
with the specified 'Name', or null
.Namespace.getMembers()
public EList getImportedMembers()
PackageableElement
.
References the PackageableElements that are members of this Namespace as a result of either PackageImports or ElementImports.
UMLPackage.getNamespace_ImportedMember()
public PackageableElement getImportedMember(String name)
PackageableElement
with the specified 'Name' from the 'Imported Member' reference list.
name
- The 'Name' of the PackageableElement
to retrieve, or null
.
PackageableElement
with the specified 'Name', or null
.Namespace.getImportedMembers()
public PackageableElement getImportedMember(String name, boolean ignoreCase, EClass eClass)
PackageableElement
with the specified 'Name' from the 'Imported Member' reference list.
name
- The 'Name' of the PackageableElement
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the PackageableElement
to retrieve, or null
.
PackageableElement
with the specified 'Name', or null
.Namespace.getImportedMembers()
public EList getOwnedMembers()
NamedElement
.
It is bidirectional and its opposite is 'Namespace
'.
A collection of NamedElements owned by the Namespace.
UMLPackage.getNamespace_OwnedMember()
,
NamedElement.getNamespace()
public NamedElement getOwnedMember(String name)
NamedElement
with the specified 'Name' from the 'Owned Member' reference list.
name
- The 'Name' of the NamedElement
to retrieve, or null
.
NamedElement
with the specified 'Name', or null
.Namespace.getOwnedMembers()
public NamedElement getOwnedMember(String name, boolean ignoreCase, EClass eClass)
NamedElement
with the specified 'Name' from the 'Owned Member' reference list.
name
- The 'Name' of the NamedElement
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the NamedElement
to retrieve, or null
.
NamedElement
with the specified 'Name', or null
.Namespace.getOwnedMembers()
public boolean validateMembersDistinguishable(DiagnosticChain diagnostics, Map context)
public ElementImport createElementImport(PackageableElement element, VisibilityKind visibility)
public PackageImport createPackageImport(Package package_, VisibilityKind visibility)
public EList getImportedElements()
public EList getImportedPackages()
public EList getNamesOfMember(NamedElement element)
public boolean membersAreDistinguishable()
public EList importMembers(EList imps)
public EList excludeCollisions(EList imps)
|
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 |