1 //---------------------------------------------------------------------- 2 // 3 // PerfectJPattern: "Design patterns are good but components are better!" 4 // Status.java Copyright (c) 2009 Giovanni Azua Garcia 5 // bravegag@hotmail.com 6 // 7 // This program is free software; you can redistribute it and/or 8 // modify it under the terms of the GNU General Public License 9 // as published by the Free Software Foundation; either version 3 10 // of the License, or (at your option) any later version. 11 // 12 // This program is distributed in the hope that it will be useful, 13 // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 // GNU General Public License for more details. 16 // 17 // You should have received a copy of the GNU General Public License 18 // along with this program; if not, see <http://www.gnu.org/licenses/>. 19 // 20 //---------------------------------------------------------------------- 21 package org.perfectjpattern.core.behavioral.observer.data; 22 23 /** 24 * Defines all possible valid Status 25 * 26 * @author <a href="mailto:bravegag@hotmail.com">Giovanni Azua</a> 27 * @version $Revision: 1.0 $ $Date: Jun 17, 2007 9:48:45 AM $ 28 */ 29 public 30 enum Status 31 { 32 /** 33 * Not started Status. 34 */ 35 NOT_STARTED 36 { 37 //--------------------------------------------------------- 38 @Override 39 public String 40 toString() 41 { 42 return "Not started"; 43 } 44 }, 45 /** 46 * Started Status. 47 */ 48 STARTED 49 { 50 //--------------------------------------------------------- 51 @Override 52 public String 53 toString() 54 { 55 return "Started"; 56 } 57 }, 58 /** 59 * Suspended Status. 60 */ 61 SUSPENDED 62 { 63 //--------------------------------------------------------- 64 @Override 65 public String 66 toString() 67 { 68 return "Suspended"; 69 } 70 }, 71 /** 72 * In Progress Status. 73 */ 74 IN_PROGRESS 75 { 76 //--------------------------------------------------------- 77 @Override 78 public String 79 toString() 80 { 81 return "In Progress"; 82 } 83 }, 84 /** 85 * Completed Status 86 */ 87 COMPLETED 88 { 89 //--------------------------------------------------------- 90 @Override 91 public String 92 toString() 93 { 94 return "Completed"; 95 } 96 }, 97 /** 98 * Failed Status 99 */ 100 FAILED 101 { 102 //--------------------------------------------------------- 103 @Override 104 public String 105 toString() 106 { 107 return "Failed"; 108 } 109 }; 110 }