|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.eff.format.AbstractEffFormat
wt.eff.format.UnitEffFormat
wt.eff.format.NumericUnitEffFormat
public class NumericUnitEffFormat
This format supports fixed-length (max. length of 18) effectivity statements
consisting of only numerical digits (0-9).
Use this format if your unit effectivity statements consist of only numbers
and have a fixed length. This format implements the various comparisons
and range arithmetic logic by converting the range value to an equivalent
number. Hence all range value characters must be digits (0-9)
This format accepts the following configurable parameters:
UnitEffFormat,
EffFormat,
EffFormatService,
Serialized Form| Method Summary | |
|---|---|
String |
addToRangeValue(String rangeValue,
int amount,
EffState state,
Map<String,String> formatParams)
Assumes the range value passed is already validated against this format. |
int |
compareRangeValues(String leftValue,
String rightValue,
EffState state,
Map<String,String> formatParams)
Assumes the range value passed is already validated against this format. |
String |
getDisplayDescription(Locale locale)
Supported API: true |
String |
getDisplayName(Locale locale)
Supported API: true |
boolean |
supportsRangeArithmetic()
Supported API: true |
String |
validateRangeValue(String rangeValue,
EffState state,
Map<String,String> formatParams,
boolean isStartRange)
Supported API: true |
| Methods inherited from class wt.eff.format.AbstractEffFormat |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String getDisplayName(Locale locale)
getDisplayName in interface EffFormatlocale -
wt.eff.format#getDisplayDescription()public String getDisplayDescription(Locale locale)
getDisplayDescription in interface EffFormatlocale -
wt.eff.format#getDisplayName()
public String validateRangeValue(String rangeValue,
EffState state,
Map<String,String> formatParams,
boolean isStartRange)
validateRangeValue in interface EffFormatrangeValue - state - formatParams - isStartRange -
public int compareRangeValues(String leftValue,
String rightValue,
EffState state,
Map<String,String> formatParams)
throws EffFormatException
compareRangeValues in interface EffFormatleftValue - rightValue - state - formatParams -
NumberFormatException - if the string does not contain a parsable
integer.
EffFormatExceptionpublic boolean supportsRangeArithmetic()
supportsRangeArithmetic in interface EffFormat#addToRangeValue(String, int, EffState, java.util.Map{@literal
})
public String addToRangeValue(String rangeValue,
int amount,
EffState state,
Map<String,String> formatParams)
throws EffFormatException
addToRangeValue in interface EffFormataddToRangeValue in class AbstractEffFormatrangeValue - amount - state - formatParams -
NumberFormatException - if the string does not contain a parsable
integer.
EffFormatExceptionEffFormat.supportsRangeArithmetic()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||