|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.argouml.cognitive.Critic
org.argouml.uml.cognitive.critics.CrUML
org.argouml.uml.cognitive.critics.AbstractCrUnconventionalName
org.argouml.uml.cognitive.critics.CrUnconventionalPackName
public class CrUnconventionalPackName
Critic to detect whether a package name obeys to certain rules: it should only contain lower case alpha chars.
| Field Summary |
|---|
| Fields inherited from class org.argouml.cognitive.Critic |
|---|
DEFAULT_CLARIFIER, KT_COMPLETENESS, KT_CONSISTENCY, KT_CORRECTNESS, KT_DESIGNERS, KT_EXPERIENCIAL, KT_OPTIMIZATION, KT_ORGANIZATIONAL, KT_PRESENTATION, KT_SEMANTICS, KT_SYNTAX, KT_TOOL, NO_PROBLEM, PROBLEM_FOUND |
| Constructor Summary | |
|---|---|
CrUnconventionalPackName()
The constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
computeSuggestion(java.lang.String nameStr)
Based on the input of a model element name this method should compute a suggestion for the wizard to present to the user. |
javax.swing.Icon |
getClarifier()
|
java.util.Set<java.lang.Object> |
getCriticizedDesignMaterials()
Get the design materials to be criticized by this critic |
java.lang.Class |
getWizardClass(ToDoItem item)
Return the Class of wizard that can fix the problem identifed by this critic. |
void |
initWizard(Wizard w)
Initialize a newly created wizard with information found by the critic. |
boolean |
predicate2(java.lang.Object dm,
Designer dsgr)
This is the decision routine for the critic. |
| Methods inherited from class org.argouml.uml.cognitive.critics.CrUML |
|---|
expand, getDefaultSuggestion, getInstructions, getLocalizedString, getLocalizedString, predicate, setResource, setupHeadAndDesc, toDoItem |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CrUnconventionalPackName()
| Method Detail |
|---|
public boolean predicate2(java.lang.Object dm,
Designer dsgr)
CrUML
predicate2 in class CrUMLdm - is the UML entity that is being checked.dsgr - is for future development and can be ignored.
public javax.swing.Icon getClarifier()
getClarifier in interface PostergetClarifier in class Criticpublic void initWizard(Wizard w)
Critic
initWizard in class Criticw - the wizardpublic java.lang.String computeSuggestion(java.lang.String nameStr)
AbstractCrUnconventionalName
computeSuggestion in class AbstractCrUnconventionalNamenameStr - The unconventional name.
public java.util.Set<java.lang.Object> getCriticizedDesignMaterials()
Critic
getCriticizedDesignMaterials in class Criticpublic java.lang.Class getWizardClass(ToDoItem item)
Critic
getWizardClass in class Criticitem - the todo item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |