|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.EnumeratedType
wt.fc.DynamicEnumType
wt.project.Role
Role is a specialization of EnumeratedType
to provide localizable
role names The localized values for roles are maintained in a resource
bundle RoleRB
, and its locale derivatives
Submitter and Promoter are required roles for life cycle services.
Supported API: true
Extendable: false
EnumeratedType
,
wt.project.RoleRB
,
Serialized FormNested Class Summary |
Nested classes inherited from class wt.fc.EnumeratedType |
|
Field Summary | |
private static String |
CLASS_RESOURCE
|
private static String |
CLASSNAME
|
private static HashMap |
dynamicSet
|
private static Hashtable |
localeSets
|
static Role |
OBSERVER
Static final constant Supported API: false |
static Role |
PROMOTER
Static final constant Supported API: false |
private static String |
RESOURCE
|
static Role |
REVIEWER
Static final constant Supported API: false |
static Role |
SUBMITTER
Static final constant Supported API: false |
private static EnumeratedType[] |
valueSet
|
Fields inherited from class wt.fc.DynamicEnumType |
|
Fields inherited from class wt.fc.EnumeratedType |
secretHandshake, SEP_CHAR |
Fields inherited from interface wt.meta.EnumeratedType |
DEFAULT_VALUE, ORDER, SELECTABLE |
Constructor Summary | |
protected |
Role()
Used by sub-classes that need a default constructor. |
Method Summary | |
protected EnumeratedType[] |
getLocaleSet(Locale locale)
Returns the set of values (instances) for this instance, for the specified locale. |
static Role |
getRoleDefault()
Returns the default value (instance) for the Role set. |
static Role[] |
getRoleSet()
Returns a copy of the set of valid values (instances) for the Role class. |
EnumeratedType[] |
getValueSet()
Returns a copy of the set of valid values (instances) for this instance, for the current user locale. |
private static EnumeratedType[] |
initializeLocaleSet(Locale locale)
|
static Role |
newRole(int secretHandshake)
Used by EnumeratedType for constructing instances of Role, from a resource bundle. |
static Role |
toRole(String internal_value)
Returns the Role instance for the internal_value argument. |
protected EnumeratedType[] |
valueSet()
Returns a reference to the set of valid values (instances) for this instance. |
Methods inherited from class wt.fc.DynamicEnumType |
getDisplay, getShortDescription |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String CLASS_RESOURCE
private static final EnumeratedType[] valueSet
private static Hashtable localeSets
private static final HashMap dynamicSet
public static final Role SUBMITTER
public static final Role PROMOTER
public static final Role REVIEWER
public static final Role OBSERVER
Constructor Detail |
protected Role()
Method Detail |
public static Role newRole(int secretHandshake) throws IllegalAccessException
secretHandshake
-
IllegalAccessException
public static Role toRole(String internal_value) throws WTInvalidParameterException
internal_value
- The internal (persistent) value for a valid instance of Role.
WTInvalidParameterException
public static Role getRoleDefault()
public static Role[] getRoleSet()
public EnumeratedType[] getValueSet()
getValueSet
in class EnumeratedType
protected EnumeratedType[] valueSet()
valueSet
in class EnumeratedType
protected EnumeratedType[] getLocaleSet(Locale locale)
getLocaleSet
in class EnumeratedType
locale
-
private static EnumeratedType[] initializeLocaleSet(Locale locale) throws Throwable
locale
-
Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |