public interface Namespace extends NamedElement
From package UML::CommonStructure.
The following features are supported:
UMLPackage.getNamespace()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
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(java.lang.String name)
Creates a new
Constraint , with the specified 'Name', and appends it to the 'Owned Rule' containment reference list |
Constraint |
createOwnedRule(java.lang.String name,
org.eclipse.emf.ecore.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.
|
org.eclipse.emf.common.util.EList<PackageableElement> |
excludeCollisions(org.eclipse.emf.common.util.EList<PackageableElement> 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 |
org.eclipse.emf.common.util.EList<ElementImport> |
getElementImports()
Returns the value of the 'Element Import' containment reference list.
|
org.eclipse.emf.common.util.EList<PackageableElement> |
getImportedElements()
Retrieves the elements imported by this namespace
|
PackageableElement |
getImportedMember(java.lang.String name)
Retrieves the first
PackageableElement with the specified 'Name' from the 'Imported Member' reference list |
PackageableElement |
getImportedMember(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first
PackageableElement with the specified 'Name' from the 'Imported Member' reference list |
org.eclipse.emf.common.util.EList<PackageableElement> |
getImportedMembers()
Returns the value of the 'Imported Member' reference list.
|
org.eclipse.emf.common.util.EList<Package> |
getImportedPackages()
Retrieves the packages imported by this namespace
|
NamedElement |
getMember(java.lang.String name)
Retrieves the first
NamedElement with the specified 'Name' from the 'Member' reference list |
NamedElement |
getMember(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first
NamedElement with the specified 'Name' from the 'Member' reference list |
org.eclipse.emf.common.util.EList<NamedElement> |
getMembers()
Returns the value of the 'Member' reference list.
|
org.eclipse.emf.common.util.EList<java.lang.String> |
getNamesOfMember(NamedElement element)
The query getNamesOfMember() gives a set of all of the names that a member would have in a Namespace, taking importing into account.
|
NamedElement |
getOwnedMember(java.lang.String name)
Retrieves the first
NamedElement with the specified 'Name' from the 'Owned Member' reference list |
NamedElement |
getOwnedMember(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first
NamedElement with the specified 'Name' from the 'Owned Member' reference list |
org.eclipse.emf.common.util.EList<NamedElement> |
getOwnedMembers()
Returns the value of the 'Owned Member' reference list.
|
Constraint |
getOwnedRule(java.lang.String name)
Retrieves the first
Constraint with the specified 'Name' from the 'Owned Rule' containment reference list |
Constraint |
getOwnedRule(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass,
boolean createOnDemand)
Retrieves the first
Constraint with the specified 'Name' from the 'Owned Rule' containment reference list |
org.eclipse.emf.common.util.EList<Constraint> |
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 |
org.eclipse.emf.common.util.EList<PackageImport> |
getPackageImports()
Returns the value of the 'Package Import' containment reference list.
|
org.eclipse.emf.common.util.EList<PackageableElement> |
importMembers(org.eclipse.emf.common.util.EList<PackageableElement> 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 |
validateCannotImportOwnedMembers(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
A Namespace cannot have an ElementImport to one of its ownedMembers.
|
boolean |
validateCannotImportSelf(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
A Namespace cannot have a PackageImport to itself.
|
boolean |
validateMembersDistinguishable(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
All the members of a Namespace are distinguishable within it.
|
allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
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
getEAnnotation, getEAnnotations
org.eclipse.emf.common.util.EList<ElementImport> getElementImports()
ElementImport
.
It is bidirectional and its opposite is 'Importing Namespace
'.
This feature subsets the following features:
References the ElementImports owned by the Namespace.From package UML::CommonStructure.
UMLPackage.getNamespace_ElementImport()
,
ElementImport.getImportingNamespace()
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
.getElementImports()
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
.getElementImports()
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
.getElementImports()
org.eclipse.emf.common.util.EList<PackageImport> getPackageImports()
PackageImport
.
It is bidirectional and its opposite is 'Importing Namespace
'.
This feature subsets the following features:
References the PackageImports owned by the Namespace.From package UML::CommonStructure.
UMLPackage.getNamespace_PackageImport()
,
PackageImport.getImportingNamespace()
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
.getPackageImports()
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
.getPackageImports()
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
.getPackageImports()
org.eclipse.emf.common.util.EList<Constraint> getOwnedRules()
Constraint
.
It is bidirectional and its opposite is 'Context
'.
This feature subsets the following features:
Specifies a set of Constraints owned by this Namespace.From package UML::CommonStructure.
UMLPackage.getNamespace_OwnedRule()
,
Constraint.getContext()
Constraint createOwnedRule(java.lang.String name, org.eclipse.emf.ecore.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
.getOwnedRules()
Constraint createOwnedRule(java.lang.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
.getOwnedRules()
Constraint getOwnedRule(java.lang.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
.getOwnedRules()
Constraint getOwnedRule(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.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
.getOwnedRules()
org.eclipse.emf.common.util.EList<NamedElement> getMembers()
NamedElement
.
This feature is a derived union.
A collection of NamedElements identifiable within the Namespace, either by being owned or by being introduced by importing or inheritance.
From package UML::CommonStructure.
UMLPackage.getNamespace_Member()
NamedElement getMember(java.lang.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
.getMembers()
NamedElement getMember(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.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
.getMembers()
org.eclipse.emf.common.util.EList<PackageableElement> getImportedMembers()
PackageableElement
.
This feature subsets the following features:
Member
'From package UML::CommonStructure.
UMLPackage.getNamespace_ImportedMember()
PackageableElement getImportedMember(java.lang.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
.getImportedMembers()
PackageableElement getImportedMember(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.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
.getImportedMembers()
org.eclipse.emf.common.util.EList<NamedElement> getOwnedMembers()
NamedElement
.
It is bidirectional and its opposite is 'Namespace
'.
This feature subsets the following features:
Owned Element
'Member
'From package UML::CommonStructure.
UMLPackage.getNamespace_OwnedMember()
,
NamedElement.getNamespace()
NamedElement getOwnedMember(java.lang.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
.getOwnedMembers()
NamedElement getOwnedMember(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.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
.getOwnedMembers()
boolean validateMembersDistinguishable(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 validateCannotImportSelf(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 validateCannotImportOwnedMembers(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.
ElementImport createElementImport(PackageableElement element, VisibilityKind visibility)
element
- The element to import.visibility
- The visibility for the new element import.
PackageImport createPackageImport(Package package_, VisibilityKind visibility)
package_
- The package to import.visibility
- The visibility for the new package import.
org.eclipse.emf.common.util.EList<PackageableElement> getImportedElements()
org.eclipse.emf.common.util.EList<Package> getImportedPackages()
org.eclipse.emf.common.util.EList<java.lang.String> getNamesOfMember(NamedElement element)
From package UML::CommonStructure.
boolean membersAreDistinguishable()
From package UML::CommonStructure.
org.eclipse.emf.common.util.EList<PackageableElement> importMembers(org.eclipse.emf.common.util.EList<PackageableElement> imps)
From package UML::CommonStructure.
org.eclipse.emf.common.util.EList<PackageableElement> excludeCollisions(org.eclipse.emf.common.util.EList<PackageableElement> imps)
From package UML::CommonStructure.