Author: chris.laprun(a)jboss.com
Date: 2009-12-01 06:14:44 -0500 (Tue, 01 Dec 2009)
New Revision: 885
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/registration/RegistrationStatus.java
Log:
- Converted RegistrationStatus to enum.
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/registration/RegistrationStatus.java
===================================================================
---
components/wsrp/trunk/producer/src/main/java/org/gatein/registration/RegistrationStatus.java 2009-12-01
08:03:52 UTC (rev 884)
+++
components/wsrp/trunk/producer/src/main/java/org/gatein/registration/RegistrationStatus.java 2009-12-01
11:14:44 UTC (rev 885)
@@ -30,18 +30,14 @@
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision:5641 $
*/
-public class RegistrationStatus implements Serializable
+public enum RegistrationStatus implements Serializable
{
- private String humanReadable;
-
/** The registration is valid. */
- public static final RegistrationStatus VALID = new
RegistrationStatus("valid");
-
+ VALID("valid"),
/** The registration is waiting for validation. */
- public static final RegistrationStatus PENDING = new
RegistrationStatus("pending");
-
+ PENDING("pending"),
/** The registration is not valid. */
- public static final RegistrationStatus INVALID = new
RegistrationStatus("invalid");
+ INVALID("invalid");
private RegistrationStatus(String humanReadable)
{
@@ -52,4 +48,6 @@
{
return "RegistrationStatus: " + humanReadable;
}
+
+ private String humanReadable;
}
Show replies by date