org.eclipse.ocl.examples.pivot
Interface SelfType

All Superinterfaces:
Class, DomainElement, DomainType, Element, org.eclipse.emf.ecore.EObject, Nameable, NamedElement, Namespace, org.eclipse.emf.common.notify.Notifier, ParameterableElement, PivotObject, TemplateableElement, Type, Visitable
All Known Implementing Classes:
SelfTypeImpl

public interface SelfType
extends Class

A representation of the model object 'Self Type'.

See Also:
PivotPackage.getSelfType()
Generated
Model

Method Summary
 Type resolveSelfType(Type selfType)
           
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.Class
isAbstract, isInterface, setIsAbstract, setIsInterface
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.Type
createOwnedAttribute, createOwnedOperation, createOwnedOperation, getInstanceClassName, getOwnedAttribute, getOwnedOperation, getPackage, getSuperClass, setInstanceClassName, setPackage
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.TemplateableElement
createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getUnspecializedElement, isTemplate, parameterableElements, setOwnedTemplateSignature, setUnspecializedElement
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
 
Methods inherited from interface org.eclipse.ocl.examples.domain.elements.DomainType
conformsTo, createInstance, createInstance, getCommonType, getInheritance, getLocalOperations, getLocalProperties, getLocalSuperTypes, getMetaTypeName, getName, getNormalizedType, isEqualTo, isEqualToUnspecializedType, isOrdered, isUnique, lookupImplementation
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.NamedElement
createOwnedAnnotation, createOwnedRule, getName, getOwnedAnnotation, getOwnedRule, isStatic, setIsStatic, setName
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.Element
allOwnedElements, createOwnedComment, getETarget, getOwnedComment, validateNotOwnSelf
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.util.Visitable
accept, eClass
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

resolveSelfType

Type resolveSelfType(Type selfType)

Specified by:
resolveSelfType in interface Type
Generated
Model
required="true" ordered="false" selfTypeRequired="true" selfTypeOrdered="false" annotation="http://www.eclipse.org/emf/2002/GenModel body='/*\nselfType\n\052/\ntry {\n\tfinal <%org.eclipse.ocl.examples.domain.evaluation.DomainEvaluator%> evaluator = new <%org.eclipse.ocl.examples.library.ecore.EcoreExecutorManager%>(this, null, <%org.eclipse.ocl.examples.pivot.PivotTables%>.LIBRARY);\n\tfinal <%org.eclipse.ocl.examples.domain.values.ValueFactory%> valueFactory = evaluator.getValueFactory();\n\tfinal <%org.eclipse.ocl.examples.domain.values.Value%> self = valueFactory.valueOf(this);\n\tfinal <%org.eclipse.ocl.examples.library.executor.ExecutorType%> T_Pivot_ecore__pivot__Type = <%org.eclipse.ocl.examples.pivot.PivotTables%>.Types._Type;\n\t\n\tfinal <%org.eclipse.ocl.examples.domain.elements.DomainType%> returnType = T_Pivot_ecore__pivot__Type;\n\tfinal <%org.eclipse.ocl.examples.domain.values.Value%> result = <%org.eclipse.ocl.examples.pivot.bodies.SelfTypeBodies%>._resolveSelfType_body_.INSTANCE.evaluate(evaluator, returnType, self, valueFactory.valueOf(selfType));\n\treturn (Type) result.asEcoreObject();\n} catch (<%org.eclipse.ocl.examples.domain.evaluation.InvalidValueException%> e) {\n\tthrow new <%org.eclipse.emf.common.util.WrappedException%>(\"Failed to evaluate org.eclipse.ocl.examples.pivot.bodies.SelfTypeBodies\", e);\n}\n'"