uci.uml.util
Class UMLDescription

java.lang.Object
  |
  +--uci.uml.util.UMLDescription

public class UMLDescription
extends Object

This class is a placeholder that will eventually be replaced by a design-time OCL evaluator. This class is used to help generate the text shown in the titles and bodies of feedback produced by critics and checklist items. For example if the headline of a critic contains {name}, then the name of the offending model element is used in place of that expression. Needs-more-work: right now this only handles a small, hard-coded set of expressions, I should use a full OCL evaluator.


Field Summary
static String BEHAV
           
static String DEFAULT_STR
           
static String INIT
           
static String MULT
           
static String NAME
           
static String NAMESPACE
           
static String OWNER
           
static String RETURNS
           
static String STRUCT
           
static String TYPE
           
static String VIS
           
 
Constructor Summary
UMLDescription()
           
 
Method Summary
static String evaluateOCL(Object dm, String expr)
           
static String expand(String desc, Object dm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static String NAME

VIS

public static String VIS

MULT

public static String MULT

TYPE

public static String TYPE

RETURNS

public static String RETURNS

INIT

public static String INIT

OWNER

public static String OWNER

STRUCT

public static String STRUCT

BEHAV

public static String BEHAV

NAMESPACE

public static String NAMESPACE

DEFAULT_STR

public static String DEFAULT_STR
Constructor Detail

UMLDescription

public UMLDescription()
Method Detail

expand

public static String expand(String desc,
                            Object dm)

evaluateOCL

public static String evaluateOCL(Object dm,
                                 String expr)