uk.ac.ucl.cs.emofocl.jmi.reflect.extended
Class ExtClassImpl

java.lang.Object
  extended by uk.ac.ucl.cs.emofocl.jmi.reflect.RefBaseObjectImpl
      extended by uk.ac.ucl.cs.emofocl.jmi.reflect.RefFeaturedImpl
          extended by uk.ac.ucl.cs.emofocl.jmi.reflect.RefClassImpl
              extended by uk.ac.ucl.cs.emofocl.jmi.reflect.extended.ExtClassImpl
All Implemented Interfaces:
javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefClass, javax.jmi.reflect.RefFeatured, ExtClass
Direct Known Subclasses:
AnyType_ClassImpl, BooleanLiteralExp_ClassImpl, CallExp_ClassImpl, Class_ClassImpl, ClassConfig_ClassImpl, CollectionItem_ClassImpl, CollectionLiteralExp_ClassImpl, CollectionLiteralPart_ClassImpl, CollectionRange_ClassImpl, CollectionType_ClassImpl, DataType_ClassImpl, DataTypeCS_ClassImpl, DefaultValueConfig_ClassImpl, Element_ClassImpl, EnumAdjectiveConfig_ClassImpl, Enumeration_ClassImpl, EnumerationCS_ClassImpl, EnumerationLiteral_ClassImpl, EnumerationLiteralCS_ClassImpl, EnumLiteralExp_ClassImpl, ExpressionCS_ClassImpl, FeatureCallExp_ClassImpl, IdentifierConfig_ClassImpl, IfExp_ClassImpl, IntegerLiteralExp_ClassImpl, InvalidLiteralExp_ClassImpl, InvalidType_ClassImpl, IterateExp_ClassImpl, IteratorExp_ClassImpl, LetExp_ClassImpl, LibraryOperationCallExp_ClassImpl, LiteralExp_ClassImpl, LoopExp_ClassImpl, MOFClassCS_ClassImpl, MOFPackageCS_ClassImpl, MultiplicityElement_ClassImpl, MultiplicityElementCS_ClassImpl, NamedElement_ClassImpl, NamedElementCS_ClassImpl, NavigationCallExp_ClassImpl, NullLiteralExp_ClassImpl, NumericLiteralExp_ClassImpl, Object_ClassImpl, OCLEquivalentPrimitiveType_ClassImpl, OCLEquivalentPrimitiveTypeCS_ClassImpl, OclExpression_ClassImpl, Operation_ClassImpl, OperationCallExp_ClassImpl, OperationCS_ClassImpl, Package_ClassImpl, Parameter_ClassImpl, ParameterCS_ClassImpl, ParametricConfig_ClassImpl, PathCS_ClassImpl, PathElementCS_ClassImpl, PrimitiveLiteralExp_ClassImpl, PrimitiveType_ClassImpl, PrimitiveTypeCS_ClassImpl, Property_ClassImpl, PropertyCallExp_ClassImpl, PropertyCS_ClassImpl, RealLiteralExp_ClassImpl, ReflectiveOperationCallExp_ClassImpl, RenameConfig_ClassImpl, Specification_ClassImpl, SpecificationCS_ClassImpl, StringLiteralExp_ClassImpl, TupleLiteralExp_ClassImpl, TupleType_ClassImpl, TupleTypePart_ClassImpl, Type_ClassImpl, TypeCS_ClassImpl, TypedElement_ClassImpl, TypedElementCS_ClassImpl, VariableDeclaration_ClassImpl, VariableExp_ClassImpl, VoidType_ClassImpl

public abstract class ExtClassImpl
extends RefClassImpl
implements ExtClass

Author:
jwskene

Nested Class Summary
 
Nested classes/interfaces inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefFeaturedImpl
RefFeaturedImpl.Getter, RefFeaturedImpl.Setter
 
Field Summary
protected  ExtObjectListener CLASS_LISTENER
           
protected  LinkedHashSet classListeners
           
protected  Class implementationClass
           
protected  ExtObjectListener TYPE_LISTENER
           
protected  LinkedHashSet typeListeners
           
 
Fields inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefBaseObjectImpl
IMMEDIATE_PACKAGE, META_OBJECT
 
Constructor Summary
protected ExtClassImpl(RefPackageImpl immediatePackage, javax.jmi.reflect.RefObject metaObject)
           
 
Method Summary
 javax.jmi.reflect.RefObject createDelegate(javax.jmi.reflect.RefObject delegator)
          To be used by objects to create delegates for their superclasses
 void extAddClassExtentListener(ExtClassExtentListener listener)
           
 void extAddClassListener(ExtClassListener listener)
           
 void extAddTypeExtentListener(ExtClassExtentListener listener)
           
 Class extGetImplementationClass()
           
 boolean extRemoveClassExtentListener(ExtClassExtentListener listener)
           
 boolean extRemoveClassListener(ExtClassListener listener)
           
 boolean extRemoveTypeExtentListener(ExtClassExtentListener listener)
           
 void extSetImplementationClass(Class implementationClass)
           
protected  void fireObjectOfClassCreated(ExtObject added)
           
protected  void fireObjectOfClassDeleted(ExtObject removed)
           
protected  void fireObjectOfTypeCreated(ExtObject added)
           
protected  void fireObjectOfTypeDeleted(ExtObject removed)
           
protected  void notifyDelegatorDelete(javax.jmi.reflect.RefObject deleted)
           
protected  void notifyDelete(javax.jmi.reflect.RefObject deleted)
           
 javax.jmi.reflect.RefObject refCreateInstance(List args)
           
 
Methods inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefClassImpl
createInstance, refAllOfClass, refAllOfType, refCreateStruct, refCreateStruct, refGetEnum, refGetEnum
 
Methods inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefFeaturedImpl
refGetValue, refInvokeOperation, refSetValue
 
Methods inherited from class uk.ac.ucl.cs.emofocl.jmi.reflect.RefBaseObjectImpl
refImmediatePackage, refMetaObject, refMofId, refOutermostPackage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.ucl.cs.emofocl.jmi.reflect.extended.ExtClass
extCreateFromXMI, extPopulateFromXMI, extWriteToXMI
 
Methods inherited from interface javax.jmi.reflect.RefClass
refAllOfClass, refAllOfType, refCreateStruct, refCreateStruct, refGetEnum, refGetEnum
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Field Detail

implementationClass

protected Class implementationClass

classListeners

protected LinkedHashSet classListeners

CLASS_LISTENER

protected final ExtObjectListener CLASS_LISTENER

typeListeners

protected LinkedHashSet typeListeners

TYPE_LISTENER

protected final ExtObjectListener TYPE_LISTENER
Constructor Detail

ExtClassImpl

protected ExtClassImpl(RefPackageImpl immediatePackage,
                       javax.jmi.reflect.RefObject metaObject)
Parameters:
immediatePackage -
metaObject -
Method Detail

extAddClassListener

public void extAddClassListener(ExtClassListener listener)
Specified by:
extAddClassListener in interface ExtClass

extRemoveClassListener

public boolean extRemoveClassListener(ExtClassListener listener)
Specified by:
extRemoveClassListener in interface ExtClass

fireObjectOfClassCreated

protected void fireObjectOfClassCreated(ExtObject added)

fireObjectOfClassDeleted

protected void fireObjectOfClassDeleted(ExtObject removed)

fireObjectOfTypeCreated

protected void fireObjectOfTypeCreated(ExtObject added)

fireObjectOfTypeDeleted

protected void fireObjectOfTypeDeleted(ExtObject removed)

extAddClassExtentListener

public void extAddClassExtentListener(ExtClassExtentListener listener)
Specified by:
extAddClassExtentListener in interface ExtClass

extRemoveClassExtentListener

public boolean extRemoveClassExtentListener(ExtClassExtentListener listener)
Specified by:
extRemoveClassExtentListener in interface ExtClass

extAddTypeExtentListener

public void extAddTypeExtentListener(ExtClassExtentListener listener)
Specified by:
extAddTypeExtentListener in interface ExtClass

extRemoveTypeExtentListener

public boolean extRemoveTypeExtentListener(ExtClassExtentListener listener)
Specified by:
extRemoveTypeExtentListener in interface ExtClass

refCreateInstance

public javax.jmi.reflect.RefObject refCreateInstance(List args)
Specified by:
refCreateInstance in interface javax.jmi.reflect.RefClass
Overrides:
refCreateInstance in class RefClassImpl

createDelegate

public javax.jmi.reflect.RefObject createDelegate(javax.jmi.reflect.RefObject delegator)
Description copied from class: RefClassImpl
To be used by objects to create delegates for their superclasses

Overrides:
createDelegate in class RefClassImpl
Returns:

notifyDelete

protected void notifyDelete(javax.jmi.reflect.RefObject deleted)
Overrides:
notifyDelete in class RefClassImpl

notifyDelegatorDelete

protected void notifyDelegatorDelete(javax.jmi.reflect.RefObject deleted)
Overrides:
notifyDelegatorDelete in class RefClassImpl

extSetImplementationClass

public void extSetImplementationClass(Class implementationClass)
Specified by:
extSetImplementationClass in interface ExtClass

extGetImplementationClass

public Class extGetImplementationClass()
Specified by:
extGetImplementationClass in interface ExtClass