org.eclipse.ocl.examples.pivot.ecore
Class Ecore2Moniker
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
org.eclipse.ocl.examples.pivot.ecore.Ecore2Moniker
- All Implemented Interfaces:
- PivotConstants
public class Ecore2Moniker
- extends org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
- implements PivotConstants
Ecore2Moniker supports generation of a hierarchically derived moniker for
an EModelElement. A moniker provides a unique repeatable readable id.
Field Summary |
protected boolean |
fullSignature
Moiniker detail; false for minimal uniqueness (omit template bounds, template
parameter declarations, parameter names), true to show everything. |
Fields inherited from class org.eclipse.emf.ecore.util.EcoreSwitch |
modelPackage |
Fields inherited from interface org.eclipse.ocl.examples.pivot.PivotConstants |
ACCUMULATOR_SEPARATOR, ANNOTATION_QUOTE, BINDINGS_PREFIX, COLLECTION_NAVIGATION_OPERATOR, GEN_MODEL_URI, GREATER_THAN_OPERATOR, GREATER_THAN_OR_EQUAL_OPERATOR, ITERATOR_SEPARATOR, LESS_THAN_OPERATOR, LESS_THAN_OR_EQUAL_OPERATOR, LIBRARY_MONIKER_PREFIX, MESSAGE_ANNOTATION_DETAIL_SUFFIX, MONIKER_EXP_CHILD_PREFIX, MONIKER_IF_EXP, MONIKER_INVALID_LITERAL_EXP, MONIKER_LET_EXP, MONIKER_NULL_LITERAL_EXP, MONIKER_OPERATOR_SEPARATOR, MONIKER_OVERFLOW_LIMIT, MONIKER_PART_SEPARATOR, MONIKER_ROOT_EXP, MONIKER_SCOPE_SEPARATOR, MONIKER_STRING_LITERAL_EXP, MONIKER_TUPLE_LITERAL_EXP, MONIKER_UNLIMITED_NATURAL_LITERAL_EXP, NULL_MARKER, NULL_ROOT, OBJECT_NAVIGATION_OPERATOR, OCL_LANGUAGE, OCL_NAME, ORPHANAGE_NAME, ORPHANAGE_PREFIX, ORPHANAGE_URI, OVERFLOW_MARKER, PARAMETER_PREFIX, PARAMETER_SEPARATOR, PARAMETER_SUFFIX, PIVOT_ECORE, PLUGIN_ID, PRECEDENCE_PREFIX, roleNames, TEMPLATE_BINDING_PREFIX, TEMPLATE_BINDING_SEPARATOR, TEMPLATE_BINDING_SUFFIX, TEMPLATE_PARAMETER_PREFIX, TEMPLATE_SIGNATURE_PREFIX, TEMPLATE_SIGNATURE_SEPARATOR, TEMPLATE_SIGNATURE_SUFFIX, TUPLE_SIGNATURE_PART_SEPARATOR, TUPLE_SIGNATURE_PREFIX, TUPLE_SIGNATURE_SUFFIX, TUPLE_SIGNATURE_TYPE_SEPARATOR, UNKNOWN_TYPE_TEXT, UNRESOLVED_PROXY_MARKER, WILDCARD_INDICATOR, WILDCARD_NAME |
Constructor Summary |
protected |
Ecore2Moniker(boolean fullSignature)
|
Method Summary |
protected void |
append(java.lang.String string)
|
protected void |
appendBounds(java.util.List<? extends org.eclipse.emf.ecore.EGenericType> bounds)
|
protected void |
appendElement(org.eclipse.emf.ecore.EModelElement eElement)
|
protected void |
appendName(org.eclipse.emf.ecore.ENamedElement eNamedElement)
|
protected void |
appendParameters(java.util.List<org.eclipse.emf.ecore.EParameter> parameters)
|
protected void |
appendParent(org.eclipse.emf.ecore.EObject eElement,
java.lang.String parentSeparator)
|
protected void |
appendType(org.eclipse.emf.ecore.EGenericType eGenericType)
|
protected void |
appendTypeArguments(java.util.List<org.eclipse.emf.ecore.EGenericType> eTypeArguments,
java.util.List<org.eclipse.emf.ecore.ETypeParameter> eTypeParameters)
|
protected void |
appendTypeParameter(org.eclipse.emf.ecore.ETypeParameter eTypeParameter)
|
protected void |
appendTypeParameters(java.util.List<org.eclipse.emf.ecore.ETypeParameter> eTypeParameters)
|
protected void |
appendTypes(java.util.List<org.eclipse.emf.ecore.EGenericType> eTypes)
|
java.lang.Object |
caseEAnnotation(org.eclipse.emf.ecore.EAnnotation eElement)
|
java.lang.Object |
caseEClassifier(org.eclipse.emf.ecore.EClassifier eElement)
|
java.lang.Object |
caseENamedElement(org.eclipse.emf.ecore.ENamedElement eElement)
|
java.lang.Object |
caseEOperation(org.eclipse.emf.ecore.EOperation eElement)
|
java.lang.Object |
caseEPackage(org.eclipse.emf.ecore.EPackage eElement)
|
java.lang.Object |
caseETypeParameter(org.eclipse.emf.ecore.ETypeParameter eElement)
|
protected java.lang.Object |
doInPackageSwitch1(org.eclipse.emf.ecore.EModelElement theEObject)
|
protected boolean |
hasEmitted(org.eclipse.emf.ecore.ETypeParameter eTypeParameter)
|
java.lang.String |
toString()
|
static java.lang.String |
toString(org.eclipse.emf.ecore.EGenericType eElement)
|
static java.lang.String |
toString(org.eclipse.emf.ecore.EModelElement eElement)
|
Methods inherited from class org.eclipse.emf.ecore.util.EcoreSwitch |
caseEAttribute, caseEClass, caseEDataType, caseEEnum, caseEEnumLiteral, caseEFactory, caseEGenericType, caseEModelElement, caseEParameter, caseEReference, caseEStringToStringMapEntry, caseEStructuralFeature, caseETypedElement, defaultCase, doSwitch, isSwitchFor |
Methods inherited from class org.eclipse.emf.ecore.util.Switch |
doSwitch, doSwitch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fullSignature
protected boolean fullSignature
- Moiniker detail; false for minimal uniqueness (omit template bounds, template
parameter declarations, parameter names), true to show everything.
Ecore models (unlike Pivot models) are mutable so the moniker is computed on
demand and may change if a name on the hierarchical path changes.
Ecore2Moniker
protected Ecore2Moniker(boolean fullSignature)
toString
public static java.lang.String toString(org.eclipse.emf.ecore.EModelElement eElement)
toString
public static java.lang.String toString(org.eclipse.emf.ecore.EGenericType eElement)
append
protected void append(java.lang.String string)
appendBounds
protected void appendBounds(java.util.List<? extends org.eclipse.emf.ecore.EGenericType> bounds)
appendElement
protected void appendElement(org.eclipse.emf.ecore.EModelElement eElement)
doInPackageSwitch1
protected java.lang.Object doInPackageSwitch1(org.eclipse.emf.ecore.EModelElement theEObject)
appendName
protected void appendName(org.eclipse.emf.ecore.ENamedElement eNamedElement)
appendParameters
protected void appendParameters(java.util.List<org.eclipse.emf.ecore.EParameter> parameters)
appendParent
protected void appendParent(org.eclipse.emf.ecore.EObject eElement,
java.lang.String parentSeparator)
appendType
protected void appendType(org.eclipse.emf.ecore.EGenericType eGenericType)
appendTypeArguments
protected void appendTypeArguments(java.util.List<org.eclipse.emf.ecore.EGenericType> eTypeArguments,
java.util.List<org.eclipse.emf.ecore.ETypeParameter> eTypeParameters)
appendTypeParameter
protected void appendTypeParameter(org.eclipse.emf.ecore.ETypeParameter eTypeParameter)
appendTypeParameters
protected void appendTypeParameters(java.util.List<org.eclipse.emf.ecore.ETypeParameter> eTypeParameters)
appendTypes
protected void appendTypes(java.util.List<org.eclipse.emf.ecore.EGenericType> eTypes)
caseEAnnotation
public java.lang.Object caseEAnnotation(org.eclipse.emf.ecore.EAnnotation eElement)
- Overrides:
caseEAnnotation
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseEClassifier
public java.lang.Object caseEClassifier(org.eclipse.emf.ecore.EClassifier eElement)
- Overrides:
caseEClassifier
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseENamedElement
public java.lang.Object caseENamedElement(org.eclipse.emf.ecore.ENamedElement eElement)
- Overrides:
caseENamedElement
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseEOperation
public java.lang.Object caseEOperation(org.eclipse.emf.ecore.EOperation eElement)
- Overrides:
caseEOperation
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseEPackage
public java.lang.Object caseEPackage(org.eclipse.emf.ecore.EPackage eElement)
- Overrides:
caseEPackage
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseETypeParameter
public java.lang.Object caseETypeParameter(org.eclipse.emf.ecore.ETypeParameter eElement)
- Overrides:
caseETypeParameter
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
hasEmitted
protected boolean hasEmitted(org.eclipse.emf.ecore.ETypeParameter eTypeParameter)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object