public class UnitOfMeasure extends GenericService
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION  | 
protected boolean | 
mI18n  | 
protected double | 
mIncrement  | 
protected java.util.LinkedHashMap<java.lang.String,java.lang.String> | 
mOptions  | 
protected java.lang.String | 
mType  | 
protected static java.lang.String | 
UNIT_OF_MEASURE_BUNDLE_NAME  | 
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
UnitOfMeasure()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
getI18n()
Gets the localization flag (indicates whether to 
 use configured labels or resourced labels) 
 | 
double | 
getIncrement()
Gets the increment for the unit of measure 
 | 
java.lang.String | 
getLocalizedUnitLabel(java.util.Locale pLocale,
                     java.lang.String pKey)
Gets a localized label for an unit of measure option 
 | 
java.util.LinkedHashMap<java.lang.String,java.lang.String> | 
getOptions()
Gets the unit values/labels. 
 | 
static java.util.ResourceBundle | 
getResourceBundle(java.util.Locale pLocale)
Returns a  
ResourceBundle for the given locale | 
java.lang.String | 
getType()
Get the unit breakdown type 
 | 
java.util.LinkedList<UnitOfMeasureOption> | 
getUnitOfMeasureOptionsList(java.util.Locale pLocale)
Gets an ordered list of  
UnitOfMeasureOption beans. | 
void | 
setI18n(boolean pI18n)
Sets the localization flag (indicates whether to 
 use configured labels or resourced labels) 
 | 
void | 
setIncrement(double pIncrement)
Sets the increment for the unit of measure 
 | 
void | 
setOptions(java.util.LinkedHashMap<java.lang.String,java.lang.String> pOptions)
Sets the unit values/labels. 
 | 
void | 
setType(java.lang.String pType)
Sets the unit breakdown type 
 | 
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toStringvlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static java.lang.String CLASS_VERSION
protected static final java.lang.String UNIT_OF_MEASURE_BUNDLE_NAME
protected java.lang.String mType
protected double mIncrement
protected boolean mI18n
protected java.util.LinkedHashMap<java.lang.String,java.lang.String> mOptions
public void setType(java.lang.String pType)
pType - Stringpublic java.lang.String getType()
public void setIncrement(double pIncrement)
pIncrement - doublepublic double getIncrement()
public void setI18n(boolean pI18n)
pI18n - booleanpublic boolean getI18n()
public void setOptions(java.util.LinkedHashMap<java.lang.String,java.lang.String> pOptions)
pOptions - LinkedHashMappublic java.util.LinkedHashMap<java.lang.String,java.lang.String> getOptions()
public static java.util.ResourceBundle getResourceBundle(java.util.Locale pLocale)
                                                  throws java.util.MissingResourceException
ResourceBundle for the given localepLocale - Localejava.util.MissingResourceExceptionpublic java.util.LinkedList<UnitOfMeasureOption> getUnitOfMeasureOptionsList(java.util.Locale pLocale)
UnitOfMeasureOption beans. Ordering of beans 
 is by unit value in increasing order. Unit labels will be localized if 
 i18n flag is true.public java.lang.String getLocalizedUnitLabel(java.util.Locale pLocale,
                                              java.lang.String pKey)
pLocale - The localepKey - The label key