implementations
Class ConcernJSingleInstance
java.lang.Object
|
+--implementations.JavaImplementationGenerator
|
+--implementations.ConcernJImplementationGenerator
|
+--implementations.ConcernJSingleInstance
- All Implemented Interfaces:
- ImplementationGeneratorI
- public class ConcernJSingleInstance
- extends ConcernJImplementationGenerator
Implementation generator plugin class for implementing a SingleInstance
composite in ConcernJ.
- Version:
- 0.1.06, 5 February 2003
- Author:
- Dennis Wagelaar
Method Summary |
void |
apply(ImplementationGenerator implementation,
GenerateImplementationVisitor generateImpl)
Applies the implementation generator. |
protected void |
applyToOwner(Concept owner,
Concept propertyC,
Concept classC)
Applies the implementation generator to an Owner concept. |
protected void |
applyToOwnerConcern(Concept owner,
Concept propertyC,
Concept classC)
Applies the implementation generator to an Owner concept with form Concern. |
protected void |
applyToOwnerMethod(Concept owner,
Concept propertyC,
Concept classC)
Applies the implementation generator to an Owner concept with form Method. |
protected void |
applyToRealm(UniqueRealm realm,
java.util.Collection owners,
Concept propertyC,
Concept classC)
Applies the implementation generator to a UniqueRealm. |
Methods inherited from class implementations.JavaImplementationGenerator |
createClause, createMethod, getClasses, getComposite, getConceptsFor, getCurrentImplementation, getCurrentImplementation, getImplGen, getInstanceName, getInterfaces, getModel, getPrimitives, getVisitor, insertExtends, insertImplements, insertImports, insertMethod, insertPrimitiveImplementation, insertPrimitiveImplementations, insertVariables, isClass, isInterface, isMethod, isPrimitive, isStatic, lcfirst, setCurrentImplementation, setCurrentImplementation, ucfirst |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConcernJSingleInstance
public ConcernJSingleInstance()
- Constructs a ConcernJSingleInstance.
applyToOwnerConcern
protected void applyToOwnerConcern(Concept owner,
Concept propertyC,
Concept classC)
throws CoComposeException
- Applies the implementation generator to an Owner concept with form Concern.
- Parameters:
owner
- The concept to apply the role part for.propertyC
- The property concept.classC
- The class concept.- Throws:
CoComposeException
- if generating implementation failed.
applyToOwnerMethod
protected void applyToOwnerMethod(Concept owner,
Concept propertyC,
Concept classC)
throws CoComposeException
- Applies the implementation generator to an Owner concept with form Method.
- Parameters:
owner
- The concept to apply the role part for.propertyC
- The property concept.classC
- The class concept.- Throws:
CoComposeException
- if generating implementation failed.
applyToOwner
protected void applyToOwner(Concept owner,
Concept propertyC,
Concept classC)
throws CoComposeException
- Applies the implementation generator to an Owner concept.
- Parameters:
owner
- The concept to apply the role part for.propertyC
- The property concept.classC
- The class concept.- Throws:
CoComposeException
- if generating implementation failed.
applyToRealm
protected void applyToRealm(UniqueRealm realm,
java.util.Collection owners,
Concept propertyC,
Concept classC)
throws CoComposeException
- Applies the implementation generator to a UniqueRealm.
- Parameters:
realm
- The unique realm.owners
- The set of owner concepts.propertyC
- The property concept.classC
- The class concept.- Throws:
CoComposeException
- if generating implementation failed.
apply
public void apply(ImplementationGenerator implementation,
GenerateImplementationVisitor generateImpl)
throws CoComposeException
- Applies the implementation generator.
- Overrides:
apply
in class JavaImplementationGenerator
- Parameters:
implementation
- The implementation generator to apply.generateImpl
- The language specific code generation operation
visitor.- Throws:
CoComposeException
- if generating implementation failed.