org.argouml.cognitive.checklist
Class CheckItem
java.lang.Object
org.argouml.cognitive.checklist.CheckItem
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- UMLCheckItem
- public class CheckItem
- extends Object
- implements Serializable
This class defines an item that can be placed on a Checklist.
This is a short piece of text to prompt the designer to think of a
specific design issue. CheckItems are similiar to critics in that
they are categorized to be relevant to issues the designer is
interested in, they have a guarding condition that returns true if
the CheckItem should be presented, and they have a piece of text
as design feedback. They are different in that their predicate is
almost always the constant 'true', and the feedback they provide
is much simpler.
CheckItems are part of Checklists. And Checklists are registered
with the CheckManager.
If you have a piece of advice you would like to give a designer,
you can implement it as a CheckItem _very_ easily. If you can
formalize the advice more, you can implement it as a Critic.
- See Also:
Checklist,
CheckManager,
Serialized Form
CheckItem
public CheckItem(String c,
String d)
- The constructor.
- Parameters:
c - the categoryd - the description
CheckItem
public CheckItem(String c,
String d,
String m,
Predicate p)
- The constructor.
- Parameters:
c - the categoryd - the descriptionm - the more-info-urlp - the predicate
getCategory
public String getCategory()
- Returns:
- the category
setCategory
public void setCategory(String c)
- Parameters:
c - the category
getDescription
public String getDescription()
- Returns:
- the description
getDescription
public String getDescription(Object dm)
- Parameters:
dm - the design material
- Returns:
- the description
setDescription
public void setDescription(String d)
- Parameters:
d - the description
getMoreInfoURL
public String getMoreInfoURL()
- Returns:
- the more-info-url
setMoreInfoURL
public void setMoreInfoURL(String m)
- Parameters:
m - the more-info-url
getPredicate
public Predicate getPredicate()
- Returns:
- the predicate
setPredicate
public void setPredicate(Predicate p)
- Parameters:
p - the predicate
hashCode
public int hashCode()
- See Also:
Object.hashCode()
equals
public boolean equals(Object o)
- See Also:
Object.equals(java.lang.Object)
toString
public String toString()
- See Also:
Object.toString()
expand
public String expand(String desc,
Object dm)
- Customize/expand the description string just before it is displayed.
I.e. add offender specific information to the description string
(e.g. its name).
- Parameters:
desc - the descriptiondm - the design material
- Returns:
- the description