org.argouml.uml.cognitive.checklist
Class Init

java.lang.Object
  extended byorg.argouml.uml.cognitive.checklist.Init

public class Init
extends java.lang.Object

Registers Checklists for different kinds of model elements. If you add a new checklist, a line must be added here.

See Also:
CheckManager

Field Summary
protected static org.apache.log4j.Logger cat
          Deprecated. as of 0.15.3. Visibility changed to private.
 
Constructor Summary
Init()
           
 
Method Summary
private static void createChecklists()
          Create all check lists.
static void init()
          static initializer, register all appropriate critics
static void init(java.util.Locale locale)
          Deprecated. as of 0.15.3. use @see #init()
private static void newCheckItem(java.lang.String category, java.lang.String key, Checklist checklist)
          Creat a check item (an UMLCheckItem) corresponding to the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected static org.apache.log4j.Logger cat
Deprecated. as of 0.15.3. Visibility changed to private.

Constructor Detail

Init

public Init()
Method Detail

init

public static void init()
static initializer, register all appropriate critics


init

public static void init(java.util.Locale locale)
Deprecated. as of 0.15.3. use @see #init()

static initializer, register all appropriate critics


newCheckItem

private static void newCheckItem(java.lang.String category,
                                 java.lang.String key,
                                 Checklist checklist)
Creat a check item (an UMLCheckItem) corresponding to the given key. and add it to the given checklist.

Parameters:
category - to add the item to.
key - to get the localized string.
checklist - to add the item to.

createChecklists

private static void createChecklists()
Create all check lists.

This is the new implementation and a change from the old implementation in that the source code (i.e. this function) contains knowledge on what to check.

The purpose of this is to allow the ArgoUML project to jointly develop the knowledge database and let the internationalizations be just internationalizations.

When adding a new check list or an item to an existing check list you will have to:

  1. Add the lines in this function.
  2. Add the tags for the new items to the i18n property file (checklist.properties).
  3. Notify the localization teams.



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