ca.spaz.cron.datasource
Class FoodDataEvent

java.lang.Object
  extended by ca.spaz.cron.datasource.FoodDataEvent

public final class FoodDataEvent
extends java.lang.Object

An event to be fired when a datasource has certain events occur. This is a typesafe enumeration pattern.

Author:
Chris Rose

Field Summary
static FoodDataEvent DSEVENT_FOOD_ADDED
          Enumeration values
static FoodDataEvent DSEVENT_FOOD_CHANGED
           
static FoodDataEvent DSEVENT_FOOD_DELETED
           
static FoodDataEvent DSEVENT_MEASURE_ADDED
           
static FoodDataEvent DSEVENT_MEASURE_CHANGED
           
static FoodDataEvent DSEVENT_MEASURE_REMOVED
           
static FoodDataEvent DSEVENT_SERVING_ADDED
           
static FoodDataEvent DSEVENT_SERVING_CHANGED
           
static FoodDataEvent DSEVENT_SERVING_REMOVED
           
 
Method Summary
 int getIndex()
           
 java.lang.String toString()
          Returns the enumeration name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DSEVENT_FOOD_ADDED

public static final FoodDataEvent DSEVENT_FOOD_ADDED
Enumeration values


DSEVENT_FOOD_DELETED

public static final FoodDataEvent DSEVENT_FOOD_DELETED

DSEVENT_FOOD_CHANGED

public static final FoodDataEvent DSEVENT_FOOD_CHANGED

DSEVENT_MEASURE_ADDED

public static final FoodDataEvent DSEVENT_MEASURE_ADDED

DSEVENT_MEASURE_REMOVED

public static final FoodDataEvent DSEVENT_MEASURE_REMOVED

DSEVENT_MEASURE_CHANGED

public static final FoodDataEvent DSEVENT_MEASURE_CHANGED

DSEVENT_SERVING_ADDED

public static final FoodDataEvent DSEVENT_SERVING_ADDED

DSEVENT_SERVING_REMOVED

public static final FoodDataEvent DSEVENT_SERVING_REMOVED

DSEVENT_SERVING_CHANGED

public static final FoodDataEvent DSEVENT_SERVING_CHANGED
Method Detail

toString

public java.lang.String toString()
Returns the enumeration name.

Overrides:
toString in class java.lang.Object
Returns:
the enumeration name.

getIndex

public int getIndex()


Copyright © 2005 Spaz. All Rights Reserved.