|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEDU.utwente.CoCompose.lang.ModelVisitor
EDU.utwente.CoCompose.translate.FormConstraintsVisitor
Checks the concept form constraints of the model. Supports incremental checking, i.e. only checks for concepts with determined concept forms.
Field Summary |
Fields inherited from class EDU.utwente.CoCompose.lang.ModelVisitor |
log |
Constructor Summary | |
FormConstraintsVisitor()
Constructs a FormConstraintsVisitor. |
Method Summary | |
protected java.util.Hashtable |
getForms()
Retrieves the concept form mapping. |
protected Concept |
getOnlyNewConcept()
Gets the OnlyNewConcept attribute. |
void |
setForms(java.util.Hashtable forms)
Sets the concept forms mapping attribute. |
void |
setLogger(Logger logger)
Sets the logger object. |
void |
setOnlyNewConcept(Concept concept)
Sets the OnlyNewConcept attribute. |
void |
visitModel(Model model)
Checks the concept form constraints for the model. |
Methods inherited from class EDU.utwente.CoCompose.lang.ModelVisitor |
getUpdate, run, setErrorReporter, setUpdate, startModel, visitAbstractConcept, visitComposite, visitCompositePartConcept, visitCompositeRole, visitConcept, visitConstrainedConcept, visitImplementation, visitImplementationGenerator, visitImplementationRolePart, visitLink, visitPublishedConcept, visitSolutionPattern, visitSolutionRole |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FormConstraintsVisitor()
Method Detail |
protected java.util.Hashtable getForms()
protected Concept getOnlyNewConcept()
public void setForms(java.util.Hashtable forms)
forms
- The mapping of concepts to forms: Concept |-> String.public void setOnlyNewConcept(Concept concept)
concept
- The concept or null.public void visitModel(Model model) throws CoComposeException
visitModel
in class ModelVisitor
model
- The model to check.
CoComposeException
- if one of the model's constraints are not fulfilled or
if the concept form constraints are not met.public void setLogger(Logger logger)
setLogger
in class ModelVisitor
logger
- The object to log to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |