org.argouml.uml.cognitive.checklist
Class UMLCheckItem

java.lang.Object
  extended byorg.argouml.cognitive.checklist.CheckItem
      extended byorg.argouml.uml.cognitive.checklist.UMLCheckItem
All Implemented Interfaces:
Serializable

public class UMLCheckItem
extends CheckItem

A special kind of CheckItem that can replace OCL expressions with their values in the generated advice.

See Also:
OCLEvaluator, Serialized Form

Field Summary
private static Logger LOG
           
 
Fields inherited from class org.argouml.cognitive.checklist.CheckItem
 
Constructor Summary
UMLCheckItem(String c, String d)
          The constructor.
UMLCheckItem(String c, String d, String m, org.tigris.gef.util.Predicate p)
          The constructor.
 
Method Summary
 String expand(String res, Object dm)
          Customize/expand the description string just before it is displayed.
 
Methods inherited from class org.argouml.cognitive.checklist.CheckItem
equals, getCategory, getDescription, getDescription, getMoreInfoURL, getPredicate, hashCode, setCategory, setDescription, setMoreInfoURL, setPredicate, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG
Constructor Detail

UMLCheckItem

public UMLCheckItem(String c,
                    String d)
The constructor.

Parameters:
c - the category
d - the description

UMLCheckItem

public UMLCheckItem(String c,
                    String d,
                    String m,
                    org.tigris.gef.util.Predicate p)
The constructor.

Parameters:
c - the category
d - the description
m - the more-info-url
p - the predicate
Method Detail

expand

public String expand(String res,
                     Object dm)
Description copied from class: CheckItem
Customize/expand the description string just before it is displayed. I.e. add offender specific information to the description string (e.g. its name).

Overrides:
expand in class CheckItem
Parameters:
res - the description
dm - the design material
Returns:
the description
See Also:
CheckItem.expand(java.lang.String, java.lang.Object)


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook