|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sei.aadl.aadl2.operations.ElementOperations
edu.cmu.sei.aadl.aadl2.operations.NamedElementOperations
public class NamedElementOperations
A static utility class that provides operations related to 'Named Element' model objects.
The following operations are supported:
Has no qualified name
Has qualified name
All Namespaces
Is Distinguishable From
Separator
Qualified Name
Field Summary | |
---|---|
protected static java.lang.String |
ALL_NAMESPACES__EOCL_EXP
The cached OCL expression body for the ' All Namespaces ' operation |
protected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> |
ALL_NAMESPACES__EOCL_QRY
The cached OCL query for the ' All Namespaces ' query operation |
protected static java.lang.String |
HAS_NO_QUALIFIED_NAME__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP
The cached OCL expression body for the ' Has no qualified name ' operation |
protected static org.eclipse.ocl.ecore.Constraint |
HAS_NO_QUALIFIED_NAME__DIAGNOSTIC_CHAIN_MAP__EOCL_INV
The cached OCL invariant for the ' Has no qualified name ' invariant operation |
protected static java.lang.String |
HAS_QUALIFIED_NAME__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP
The cached OCL expression body for the ' Has qualified name ' operation |
protected static org.eclipse.ocl.ecore.Constraint |
HAS_QUALIFIED_NAME__DIAGNOSTIC_CHAIN_MAP__EOCL_INV
The cached OCL invariant for the ' Has qualified name ' invariant operation |
protected static java.lang.String |
IS_DISTINGUISHABLE_FROM__NAMED_ELEMENT_NAMESPACE__EOCL_EXP
The cached OCL expression body for the ' Is Distinguishable From ' operation |
protected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> |
IS_DISTINGUISHABLE_FROM__NAMED_ELEMENT_NAMESPACE__EOCL_QRY
The cached OCL query for the ' Is Distinguishable From ' query operation |
protected static java.lang.String |
QUALIFIED_NAME__EOCL_EXP
The cached OCL expression body for the ' Qualified Name ' operation |
protected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> |
QUALIFIED_NAME__EOCL_QRY
The cached OCL query for the ' Qualified Name ' query operation |
protected static java.lang.String |
SEPARATOR__EOCL_EXP
The cached OCL expression body for the ' Separator ' operation |
protected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> |
SEPARATOR__EOCL_QRY
The cached OCL query for the ' Separator ' query operation |
Fields inherited from class edu.cmu.sei.aadl.aadl2.operations.ElementOperations |
---|
ALL_OWNED_ELEMENTS__EOCL_EXP, ALL_OWNED_ELEMENTS__EOCL_QRY, EOCL_ENV, HAS_OWNER__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP, HAS_OWNER__DIAGNOSTIC_CHAIN_MAP__EOCL_INV, MUST_BE_OWNED__EOCL_EXP, MUST_BE_OWNED__EOCL_QRY, NOT_OWN_SELF__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP, NOT_OWN_SELF__DIAGNOSTIC_CHAIN_MAP__EOCL_INV |
Constructor Summary | |
---|---|
protected |
NamedElementOperations()
|
Method Summary | |
---|---|
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 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 |
Methods inherited from class edu.cmu.sei.aadl.aadl2.operations.ElementOperations |
---|
allOwnedElements, has_owner, mustBeOwned, not_own_self |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String HAS_NO_QUALIFIED_NAME__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP
Has no qualified name
' operation.
has_no_qualified_name(NamedElement, org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
,
Constant Field Valuesprotected static org.eclipse.ocl.ecore.Constraint HAS_NO_QUALIFIED_NAME__DIAGNOSTIC_CHAIN_MAP__EOCL_INV
Has no qualified name
' invariant operation.
has_no_qualified_name(NamedElement, org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
protected static final java.lang.String HAS_QUALIFIED_NAME__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP
Has qualified name
' operation.
has_qualified_name(NamedElement, org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
,
Constant Field Valuesprotected static org.eclipse.ocl.ecore.Constraint HAS_QUALIFIED_NAME__DIAGNOSTIC_CHAIN_MAP__EOCL_INV
Has qualified name
' invariant operation.
has_qualified_name(NamedElement, org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
protected static final java.lang.String ALL_NAMESPACES__EOCL_EXP
All Namespaces
' operation.
allNamespaces(NamedElement)
,
Constant Field Valuesprotected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> ALL_NAMESPACES__EOCL_QRY
All Namespaces
' query operation.
allNamespaces(NamedElement)
protected static final java.lang.String IS_DISTINGUISHABLE_FROM__NAMED_ELEMENT_NAMESPACE__EOCL_EXP
Is Distinguishable From
' operation.
isDistinguishableFrom(NamedElement, edu.cmu.sei.aadl.aadl2.NamedElement, edu.cmu.sei.aadl.aadl2.Namespace)
,
Constant Field Valuesprotected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> IS_DISTINGUISHABLE_FROM__NAMED_ELEMENT_NAMESPACE__EOCL_QRY
Is Distinguishable From
' query operation.
isDistinguishableFrom(NamedElement, edu.cmu.sei.aadl.aadl2.NamedElement, edu.cmu.sei.aadl.aadl2.Namespace)
protected static final java.lang.String SEPARATOR__EOCL_EXP
Separator
' operation.
separator(NamedElement)
,
Constant Field Valuesprotected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> SEPARATOR__EOCL_QRY
Separator
' query operation.
separator(NamedElement)
protected static final java.lang.String QUALIFIED_NAME__EOCL_EXP
Qualified Name
' operation.
qualifiedName(NamedElement)
,
Constant Field Valuesprotected static org.eclipse.ocl.expressions.OCLExpression<org.eclipse.emf.ecore.EClassifier> QUALIFIED_NAME__EOCL_QRY
Qualified Name
' query operation.
qualifiedName(NamedElement)
Constructor Detail |
---|
protected NamedElementOperations()
Method Detail |
---|
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 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |