From 8c6ad22312d53076445ca8dba56e7dedbef0d22e Mon Sep 17 00:00:00 2001 From: rkv Date: Wed, 13 Feb 2013 11:37:52 +0000 Subject: [PATCH] I18n key and string value properties are added to the ProgressState enumeration. --- .../org/splat/dal/bo/som/ProgressState.java | 18 ++++++++++++++++++ .../src/org/splat/dal/bo/som/Study.java | 3 +++ 2 files changed, 21 insertions(+) diff --git a/Workspace/Siman-Common/src/org/splat/dal/bo/som/ProgressState.java b/Workspace/Siman-Common/src/org/splat/dal/bo/som/ProgressState.java index 9a80331..96cb689 100644 --- a/Workspace/Siman-Common/src/org/splat/dal/bo/som/ProgressState.java +++ b/Workspace/Siman-Common/src/org/splat/dal/bo/som/ProgressState.java @@ -36,4 +36,22 @@ public enum ProgressState { * Study-specific state qualifying typical reference studies. */ TEMPLATE; + + /** + * Get i18n key of the enumeration value. + * + * @return i18n key + */ + public String getKey() { + return "label." + name(); + } + + /** + * Get enumeration constant as a string. + * + * @return enumeration constant name + */ + public String getValue() { + return name(); + } } \ No newline at end of file diff --git a/Workspace/Siman-Common/src/org/splat/dal/bo/som/Study.java b/Workspace/Siman-Common/src/org/splat/dal/bo/som/Study.java index f9d4ec4..60af1df 100644 --- a/Workspace/Siman-Common/src/org/splat/dal/bo/som/Study.java +++ b/Workspace/Siman-Common/src/org/splat/dal/bo/som/Study.java @@ -53,6 +53,9 @@ public class Study extends ProjectElement { * Persistent list of study scenarios. */ private final List scenarii = new LinkedList(); + /** + * Persistent study version property. + */ private String version; /** * Persistent history property. It is a number of studies versioning this one, if any. -- 2.39.2