|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.EnumeratedType
wt.part.QuantityUnit
An enumeration of units of measure, with EA (each) meaning that the amount
in the Quantity
is the count of parts and AS_NEEDED meaning use
as much as necessary of some supply such as oil; other units of measure
would be for items like rope or ballast that would have a length or a
weight.
Supported API: true
Extendable: false
Nested Class Summary |
Nested classes inherited from class wt.fc.EnumeratedType |
|
Field Summary | |
static QuantityUnit |
AS_NEEDED
Supported API: true |
private static String |
CLASS_RESOURCE
|
private static String |
CLASSNAME
|
static QuantityUnit |
EA
Supported API: true |
static QuantityUnit |
KG
Supported API: true |
static QuantityUnit |
L
Supported API: true |
private static Hashtable |
localeSets
|
static QuantityUnit |
M
Supported API: true |
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 |
QuantityUnit()
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 QuantityUnit |
getQuantityUnitDefault()
Returns the default value (instance) for the QuantityUnit set. |
static QuantityUnit[] |
getQuantityUnitSet()
Returns a copy of the set of valid values (instances) for the QuantityUnit 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 QuantityUnit |
newQuantityUnit(int secretHandshake)
Used by EnumeratedType for constructing instances of QuantityUnit, from a resource bundle. |
static QuantityUnit |
toQuantityUnit(String internal_value)
Returns the QuantityUnit 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 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
public static final QuantityUnit EA
public static final QuantityUnit AS_NEEDED
public static final QuantityUnit KG
public static final QuantityUnit M
public static final QuantityUnit L
Constructor Detail |
protected QuantityUnit()
Method Detail |
public static QuantityUnit newQuantityUnit(int secretHandshake) throws IllegalAccessException
secretHandshake
-
IllegalAccessException
public static QuantityUnit toQuantityUnit(String internal_value) throws WTInvalidParameterException
internal_value
- The internal (persistent) value for a valid instance of QuantityUnit.
WTInvalidParameterException
public static QuantityUnit getQuantityUnitDefault()
public static QuantityUnit[] getQuantityUnitSet()
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 |