org.eclipse.ocl.examples.pivot
Interface Type

All Superinterfaces:
DomainElement, DomainType, Element, org.eclipse.emf.ecore.EObject, Nameable, NamedElement, org.eclipse.emf.common.notify.Notifier, ParameterableElement, PivotObject, TemplateableElement, Visitable
All Known Subinterfaces:
AnyType, AssociationClass, BagType, Class, ClassifierType, CollectionType, DataType, Enumeration, InvalidType, LambdaType, MessageType, OrderedSetType, PrimitiveType, SelfType, SequenceType, SetType, TemplateParameterType, TupleType, UnspecifiedType, VoidType
All Known Implementing Classes:
AnyTypeImpl, AssociationClassImpl, BagTypeImpl, ClassifierTypeImpl, ClassImpl, CollectionTypeImpl, DataTypeImpl, EnumerationImpl, InvalidTypeImpl, LambdaTypeImpl, MessageTypeImpl, OrderedSetTypeImpl, PrimitiveTypeImpl, SelfTypeImpl, SequenceTypeImpl, SetTypeImpl, TemplateParameterTypeImpl, TupleTypeImpl, TypeImpl, UnspecifiedTypeImpl, VoidTypeImpl

public interface Type
extends NamedElement, TemplateableElement, ParameterableElement, DomainType

A representation of the model object 'Type'.

See Also:
PivotPackage.getType()
Generated
Model

Method Summary
 Property createOwnedAttribute()
          Creates a new Property and appends it to the 'Owned Attribute' containment reference list.
 Operation createOwnedOperation()
          Creates a new Operation and appends it to the 'Owned Operation' containment reference list.
 Operation createOwnedOperation(org.eclipse.emf.ecore.EClass eClass)
          Creates a new Operation and appends it to the 'Owned Operation' containment reference list.
 java.lang.String getInstanceClassName()
          Returns the value of the 'Instance Class Name' attribute.
 org.eclipse.emf.common.util.EList<Property> getOwnedAttribute()
          Returns the value of the 'Owned Attribute' containment reference list.
 org.eclipse.emf.common.util.EList<Operation> getOwnedOperation()
          Returns the value of the 'Owned Operation' containment reference list.
 Package getPackage()
          Returns the value of the 'Package' container reference.
 org.eclipse.emf.common.util.EList<Type> getSuperClass()
          Returns the value of the 'Super Class' reference list.
 Type resolveSelfType(Type selfType)
           
 void setInstanceClassName(java.lang.String value)
          Sets the value of the 'Instance Class Name' attribute.
 void setPackage(Package value)
          Sets the value of the 'Package' container reference.
 
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.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.pivot.Element
allOwnedElements, createOwnedComment, getETarget, getOwnedComment, validateNotOwnSelf
 
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
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.util.Visitable
accept, eClass
 
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
 

Method Detail

getPackage

Package getPackage()
Returns the value of the 'Package' container reference. It is bidirectional and its opposite is 'Owned Type'. Specifies the owning package of this classifier, if any.

Specified by:
getPackage in interface DomainType
Returns:
the value of the 'Package' container reference.
See Also:
setPackage(org.eclipse.ocl.examples.pivot.Package), PivotPackage.getType_Package(), Package.getOwnedType()
Generated
Model
opposite="ownedType" transient="false" ordered="false" annotation="http://www.eclipse.org/emf/2002/GenModel get='throw new UnsupportedOperationException(); // FIXME Unimplemented http://www.eclipse.org/ocl/3.1.0/Pivot!Type!package'"

setPackage

void setPackage(Package value)
Sets the value of the 'Package' container reference.

Parameters:
value - the new value of the 'Package' container reference.
See Also:
getPackage()
Generated

getOwnedAttribute

org.eclipse.emf.common.util.EList<Property> getOwnedAttribute()
Returns the value of the 'Owned Attribute' containment reference list. The list contents are of type Property. It is bidirectional and its opposite is 'Owning Type'.

If the meaning of the 'Owned Attribute' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Owned Attribute' containment reference list.
See Also:
PivotPackage.getType_OwnedAttribute(), Property.getOwningType()
Generated
Model
opposite="owningType" containment="true" annotation="http://www.eclipse.org/emf/2002/GenModel get='throw new UnsupportedOperationException(); // FIXME Unimplemented http://www.eclipse.org/ocl/3.1.0/Pivot!Type!ownedAttribute'"

createOwnedAttribute

Property createOwnedAttribute()
Creates a new Property and appends it to the 'Owned Attribute' containment reference list.

Returns:
The new Property.
See Also:
getOwnedAttribute()
Generated

getOwnedOperation

org.eclipse.emf.common.util.EList<Operation> getOwnedOperation()
Returns the value of the 'Owned Operation' containment reference list. The list contents are of type Operation. It is bidirectional and its opposite is 'Owning Type'.

If the meaning of the 'Owned Operation' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Owned Operation' containment reference list.
See Also:
PivotPackage.getType_OwnedOperation(), Operation.getOwningType()
Generated
Model
opposite="owningType" containment="true" annotation="http://www.eclipse.org/emf/2002/GenModel get='throw new UnsupportedOperationException(); // FIXME Unimplemented http://www.eclipse.org/ocl/3.1.0/Pivot!Type!ownedOperation'"

createOwnedOperation

Operation createOwnedOperation(org.eclipse.emf.ecore.EClass eClass)
Creates a new Operation and appends it to the 'Owned Operation' containment reference list.

Parameters:
eClass - The Ecore class of the Operation to create.
Returns:
The new Operation.
See Also:
getOwnedOperation()
Generated

createOwnedOperation

Operation createOwnedOperation()
Creates a new Operation and appends it to the 'Owned Operation' containment reference list.

Returns:
The new Operation.
See Also:
getOwnedOperation()
Generated

getSuperClass

org.eclipse.emf.common.util.EList<Type> getSuperClass()
Returns the value of the 'Super Class' reference list. The list contents are of type Type.

If the meaning of the 'Super Class' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Super Class' reference list.
See Also:
PivotPackage.getType_SuperClass()
Generated
Model
annotation="http://www.eclipse.org/emf/2002/GenModel get='throw new UnsupportedOperationException(); // FIXME Unimplemented http://www.eclipse.org/ocl/3.1.0/Pivot!Type!superClass'"

getInstanceClassName

java.lang.String getInstanceClassName()
Returns the value of the 'Instance Class Name' attribute.

If the meaning of the 'Instance Class Name' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Instance Class Name' attribute.
See Also:
setInstanceClassName(String), PivotPackage.getType_InstanceClassName()
Generated
Model
dataType="org.eclipse.ocl.examples.pivot.String" ordered="false" annotation="http://www.eclipse.org/emf/2002/GenModel get='throw new UnsupportedOperationException(); // FIXME Unimplemented http://www.eclipse.org/ocl/3.1.0/Pivot!Type!instanceClassName'"

setInstanceClassName

void setInstanceClassName(java.lang.String value)
Sets the value of the 'Instance Class Name' attribute.

Parameters:
value - the new value of the 'Instance Class Name' attribute.
See Also:
getInstanceClassName()
Generated

resolveSelfType

Type resolveSelfType(Type selfType)

Generated
Model
required="true" ordered="false" selfTypeRequired="true" selfTypeOrdered="false" annotation="http://www.eclipse.org/emf/2002/GenModel body='/*\nself\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.TypeBodies%>._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.TypeBodies\", e);\n}\n'"