wt.part
Class QuantityUnit

java.lang.Object
  extended by wt.fc.EnumeratedType
      extended by wt.part.QuantityUnit
All Implemented Interfaces:
Serializable, Comparable, EnumeratedType, LocalizableMetadata, LocalizableMessage, Message

public final class QuantityUnit
extends EnumeratedType
implements Serializable

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

See Also:
Serialized Form

Field Summary
static QuantityUnit AS_NEEDED
          

Supported API: true
static QuantityUnit CU_M
          

Supported API: true
static QuantityUnit EA
          

Supported API: true
static QuantityUnit KG
          

Supported API: true
static QuantityUnit L
          

Supported API: true
static QuantityUnit M
          

Supported API: true
static QuantityUnit SQ_M
          

Supported API: true
 
Fields inherited from interface wt.meta.EnumeratedType
DEFAULT_VALUE, ORDER, SELECTABLE
 
Method Summary
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.
static QuantityUnit toQuantityUnit(String internal_value)
          Returns the QuantityUnit instance for the internal_value argument.
 
Methods inherited from class wt.fc.EnumeratedType
equals, getAbbreviatedDisplay, getDisplay, getDisplay, getFullDisplay, getLocalizedMessage, getLongDescription, getOrder, getSelectableValueSet, getShortDescription, getStringValue, getStringValue, hashCode, isDefaultValue, isDefaultValue, isSelectable, main, toEnumeratedType, toEnumeratedType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EA

public static final QuantityUnit EA


Supported API: true


AS_NEEDED

public static final QuantityUnit AS_NEEDED


Supported API: true


KG

public static final QuantityUnit KG


Supported API: true


M

public static final QuantityUnit M


Supported API: true


L

public static final QuantityUnit L


Supported API: true


SQ_M

public static final QuantityUnit SQ_M


Supported API: true


CU_M

public static final QuantityUnit CU_M


Supported API: true

Method Detail

toQuantityUnit

public static QuantityUnit toQuantityUnit(String internal_value)
                                   throws WTInvalidParameterException
Returns the QuantityUnit instance for the internal_value argument.

Supported API: true

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

getQuantityUnitDefault

public static QuantityUnit getQuantityUnitDefault()
Returns the default value (instance) for the QuantityUnit set.

Supported API: true

Returns:
QuantityUnit

getQuantityUnitSet

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

Supported API: true

Returns:
QuantityUnit[]

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[]