|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--implementations.JavaImplementationGenerator | +--implementations.JavaSingleRelation
Implementation generator plugin class for implementing a SingleRelation composite in Java.
Constructor Summary | |
JavaSingleRelation()
Constructs a JavaSingleRelation. |
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,
java.util.Collection properties)
Applies the implementation generator to an Owner concept. |
protected void |
checkRoles()
Checks the composite roles for existence. |
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 JavaSingleRelation()
Method Detail |
protected CompositeRole getOwnerRole()
protected CompositeRole getPropertyRole()
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 applyToOwner(Concept owner, java.util.Collection properties) throws CoComposeException
owner
- The concept to apply the role part for.properties
- The set of property concepts.CoComposeException
- if generating implementation failed.public void apply(ImplementationGenerator implementation, GenerateImplementationVisitor generateImpl) throws CoComposeException
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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |