wt.team
Class TeamCategory

java.lang.Object
  extended bywt.fc.EnumeratedType
      extended bywt.team.TeamCategory
All Implemented Interfaces:
EnumeratedType, LocalizableMessage, LocalizableMetadata, Message, Serializable

public class TeamCategory
extends EnumeratedType
implements Serializable

TeamCategory is a specialization of EnumeratedType to provide localizable team category names The localized values for team categories are maintained in a resource bundle RoleRB, and its locale derivatives



Supported API: true

Extendable: false

See Also:
EnumeratedType, wt.team.TeamCategoryRB, Serialized Form

Nested Class Summary
 
Nested classes inherited from class wt.fc.EnumeratedType
 
Field Summary
private static String CLASS_RESOURCE
           
private static String CLASSNAME
           
static TeamCategory DEFAULT
          static final constant

Supported API: false
private static Hashtable localeSets
           
private static String RESOURCE
           
private static EnumeratedType[] valueSet
           
 
Fields inherited from class wt.fc.EnumeratedType
secretHandshake, SEP_CHAR
 
Fields inherited from interface wt.meta.EnumeratedType
DEFAULT_VALUE, ORDER, SELECTABLE
 
Constructor Summary
protected TeamCategory()
          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 TeamCategory getTeamCategoryDefault()
          Returns the default value (instance) for the TeamCategory set.
static TeamCategory[] getTeamCategorySet()
          Returns a copy of the set of valid values (instances) for the TeamCategory 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 TeamCategory newTeamCategory(int secretHandshake)
          Used by EnumeratedType for constructing instances of TeamCategory, from a resource bundle.
static TeamCategory toTeamCategory(String internal_value)
          Returns the TeamCategory 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.EnumeratedType
defaultEnumeratedType, dynamicInstance, equals, getAbbreviatedDisplay, getComment, getComment, getDisplay, getDisplay, getFullDisplay, getInternalKey, getLocalizedMessage, getLocalizedValues, getLongDescription, getOrder, getSelectableValueSet, getShortDescription, getShortDescription, getStringValue, getStringValue, getValidSet, getValue, hashCode, instantiateSet, isDefaultValue, isDefaultValue, isPrimaryKey, isSelectable, main, readResolve, toEnumeratedType, toEnumeratedType, toEnumeratedType, toString, validateFriendship
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

CLASS_RESOURCE

private static final String CLASS_RESOURCE
See Also:
Constant Field Values

valueSet

private static final EnumeratedType[] valueSet

localeSets

private static Hashtable localeSets

DEFAULT

public static final TeamCategory DEFAULT
static final constant

Supported API: false

Constructor Detail

TeamCategory

protected TeamCategory()
Used by sub-classes that need a default constructor.

Supported API: false

Method Detail

newTeamCategory

public static TeamCategory newTeamCategory(int secretHandshake)
                                    throws IllegalAccessException
Used by EnumeratedType for constructing instances of TeamCategory, from a resource bundle.

Supported API: false

Parameters:
secretHandshake -
Returns:
TeamCategory
Throws:
IllegalAccessException

toTeamCategory

public static TeamCategory toTeamCategory(String internal_value)
                                   throws WTInvalidParameterException
Returns the TeamCategory instance for the internal_value argument.

Supported API: true

Parameters:
internal_value - The internal (persistent) value for a valid instance of TeamCategory.
Returns:
TeamCategory
Throws:
WTInvalidParameterException

getTeamCategoryDefault

public static TeamCategory getTeamCategoryDefault()
Returns the default value (instance) for the TeamCategory set.

Supported API: true

Returns:
TeamCategory

getTeamCategorySet

public static TeamCategory[] getTeamCategorySet()
Returns a copy of the set of valid values (instances) for the TeamCategory class.

Supported API: true

Returns:
TeamCategory[]

getValueSet

public EnumeratedType[] getValueSet()
Returns a copy of the set of valid values (instances) for this instance, for the current user locale.

Supported API: true

Specified by:
getValueSet in class EnumeratedType
Returns:
EnumeratedType[]

valueSet

protected EnumeratedType[] valueSet()
Returns a reference to the set of valid values (instances) for this instance.

Supported API: false

Specified by:
valueSet in class EnumeratedType
Returns:
EnumeratedType[]

getLocaleSet

protected EnumeratedType[] getLocaleSet(Locale locale)
Returns the set of values (instances) for this instance, for the specified locale.

Supported API: false

Specified by:
getLocaleSet in class EnumeratedType
Parameters:
locale -
Returns:
EnumeratedType[]

initializeLocaleSet

private static EnumeratedType[] initializeLocaleSet(Locale locale)
                                             throws Throwable
Parameters:
locale -
Returns:
EnumeratedType[]
Throws:
Throwable