|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectimplementations.JavaImplementationGenerator
implementations.JavaReturns
Implementation generator plugin class for implementing a Returns composite in Java.
Constructor Summary | |
JavaReturns()
Constructs a JavaReturns |
Method Summary | |
void |
apply(ImplementationGenerator implementation,
GenerateImplementationVisitor generateImpl)
Applies the implementation generator. |
protected void |
applyPerOriginator()
Applies the implementation generator for each Originator concept. |
protected void |
applyToOriginator(Concept originator,
java.util.Collection results)
Applies the implementation generator to an Originator concept. |
protected void |
checkResultsCount(java.util.Collection results)
Checks whether the amount of Result concepts doesn't exceed 1. |
protected void |
checkRoles()
Checks the composite roles for existence. |
protected CompositeRole |
getOriginatorRole()
Retrieves the Originator role of the composite. |
protected CompositeRole |
getResultRole()
Retrieves the Result 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 JavaReturns()
Method Detail |
protected CompositeRole getOriginatorRole()
protected CompositeRole getResultRole()
protected void checkRoles() throws CoComposeException
CoComposeException
- if a required role does not exist.protected void applyPerOriginator() throws CoComposeException
CoComposeException
- if generating implementation failed.protected void checkResultsCount(java.util.Collection results) throws CoComposeException
results
- The collection of Result concepts.
CoComposeException
- if the amount exceeds 1.protected void applyToOriginator(Concept originator, java.util.Collection results) throws CoComposeException
originator
- The concept to apply the role part for.results
- The set of result concepts.
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 |