|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectimplementations.JavaImplementationGenerator
implementations.JavaSingleInstance
Implementation generator plugin class for implementing a SingleInstance composite in Java.
Constructor Summary | |
JavaSingleInstance()
Constructs a JavaSingleInstance. |
Method Summary | |
void |
apply(ImplementationGenerator implementation,
GenerateImplementationVisitor generateImpl)
Applies the implementation generator. |
protected void |
applyPerOwner()
Applies the implementation generator for each Owner concept. |
protected void |
applyToOwner(Concept owner)
Applies the implementation generator to an Owner concept. |
protected void |
applyToOwnerClass(Concept owner,
Concept propertyC,
Concept classC)
Applies the implementation generator to an Owner concept with form Class. |
protected void |
applyToOwnerMethod(Concept owner,
Concept propertyC,
Concept classC)
Applies the implementation generator to an Owner concept with form Method. |
protected void |
checkRoles()
Checks the composite roles for existence. |
protected CompositeRole |
getClassRole()
Retrieves the Class role of the composite. |
protected CompositeRole |
getOwnerRole()
Retrieves the Owner role of the composite. |
protected CompositeRole |
getPropertyRole()
Retrieves the Property role of the composite. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaSingleInstance()
Method Detail |
protected CompositeRole getOwnerRole()
protected CompositeRole getPropertyRole()
protected CompositeRole getClassRole()
protected void checkRoles() throws CoComposeException
CoComposeException
- if a required role does not exist.protected void applyPerOwner() throws CoComposeException
CoComposeException
- if generating implementation failed.protected void applyToOwnerClass(Concept owner, Concept propertyC, Concept classC) throws CoComposeException
owner
- The concept to apply the role part for.propertyC
- The property concept.classC
- The class concept.
CoComposeException
- if generating implementation failed.protected void applyToOwnerMethod(Concept owner, Concept propertyC, Concept classC) throws CoComposeException
owner
- The concept to apply the role part for.propertyC
- The property concept.classC
- The class concept.
CoComposeException
- if generating implementation failed.protected void applyToOwner(Concept owner) throws CoComposeException
owner
- The concept to apply the role part for.
CoComposeException
- if generating implementation failed.public void apply(ImplementationGenerator implementation, GenerateImplementationVisitor generateImpl) throws CoComposeException
apply
in interface ImplementationGeneratorI
apply
in class JavaImplementationGenerator
implementation
- The implementation generator to apply.generateImpl
- The language specific code generation operation
visitor.
CoComposeException
- if generating implementation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |