public class NamedElementOperations extends ElementOperations
The following operations are supported:
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.common.util.EList<Namespace> |
allNamespaces(NamedElement namedElement)
The query allNamespaces() gives the sequence of namespaces in which the NamedElement is nested, working outwards.
|
static Namespace |
getNamespace(NamedElement namedElement) |
static boolean |
has_no_qualified_name(NamedElement namedElement,
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 qualified name.
|
static boolean |
has_qualified_name(NamedElement namedElement,
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 qualified name is constructed from the names of the containing namespaces.
|
static boolean |
isDistinguishableFrom(NamedElement namedElement,
NamedElement n,
Namespace ns)
The query isDistinguishableFrom() determines whether two NamedElements may logically co-exist within a Namespace.
|
static java.lang.String |
qualifiedName(NamedElement namedElement)
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.
|
static java.lang.String |
separator(NamedElement namedElement)
The query separator() gives the string that is used to separate names when constructing a qualified name.
|
allOwnedElements, getOwner, has_owner, mustBeOwned, not_own_self
public static boolean has_no_qualified_name(NamedElement namedElement, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
namedElement
- The receiving 'Named Element' model object.diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
public static boolean has_qualified_name(NamedElement namedElement, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
namedElement
- The receiving 'Named Element' model object.diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
public static Namespace getNamespace(NamedElement namedElement)
public static org.eclipse.emf.common.util.EList<Namespace> allNamespaces(NamedElement namedElement)
namedElement
- The receiving 'Named Element' model object.
public static boolean isDistinguishableFrom(NamedElement namedElement, NamedElement n, Namespace ns)
namedElement
- The receiving 'Named Element' model object.
public static java.lang.String separator(NamedElement namedElement)
namedElement
- The receiving 'Named Element' model object.
public static java.lang.String qualifiedName(NamedElement namedElement)
namedElement
- The receiving 'Named Element' model object.