org.nakedobjects.object
Class StatusMethods

java.lang.Object
  extended byorg.nakedobjects.object.StatusMethods

public class StatusMethods
extends java.lang.Object


Method Summary
static java.lang.String statusAsString(Status status)
          Returns the strings 'Neutral', 'Red', 'Amber' and 'Green' when the status() method in the Status object returns the constants NEUTRAL, RED, AMBER and GREEN respectively.
static java.lang.String statusCode(Status status)
          Returns the strings 'rd', 'am' and 'gr' when the status() method in the Status object returns the constants RED, AMBER and GREEN respectively.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

statusAsString

public static java.lang.String statusAsString(Status status)
Returns the strings 'Neutral', 'Red', 'Amber' and 'Green' when the status() method in the Status object returns the constants NEUTRAL, RED, AMBER and GREEN respectively. If none of the those are used then 'Undefined' is returned.


statusCode

public static java.lang.String statusCode(Status status)
Returns the strings 'rd', 'am' and 'gr' when the status() method in the Status object returns the constants RED, AMBER and GREEN respectively. If NEUTRAL or none of the above are used then an empty string is returned.