|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.series.Series
wt.series.MulticharacterSeries
public class MulticharacterSeries
Defines a sequencing model of multicharacter values from one character up to a span of characters of length, where each single character ranges from min to max with an increment of delta between each adjacent value.
For example, this series could be a length of 3, with a min of A and a max of Z, and a delta of 1. With this the initial value would be A. The max value with the length would be ZZZ. When the series reached a value of Z and was incremented it would then be BA. When the series reached a value of AA and was decremented it would then be Z.
Use the newMulticharacterSeries static factory method(s),
not the MulticharacterSeries constructor, to construct instances
of this class. Instances must be constructed using the static factory(s),
in order to ensure proper initialization of the instance.
Supported API: true
Extendable: true
| Field Summary | |
|---|---|
protected static String |
DELTA
Label for the attribute; The increment between adjacent characters within the series. |
protected static String |
LENGTH
Label for the attribute; The total length in characters that the series can grow. |
static String |
MAX
Label for the attribute; The maximum limit of a character within the series. |
static String |
MIN
Label for the attribute; The minimum limit of a character within the series. |
| Fields inherited from class wt.series.Series |
|---|
VALUE |
| Method Summary | |
|---|---|
protected Character |
currCharAt(int pos)
Determines the current character in the series. |
void |
decrement()
Decrements the value of the series to the next adjacent value. |
protected Character |
decrementedCharAt(int pos)
Determines the next decremented character of the character at the position in the series. |
boolean |
equals(Series object)
Tests if the value of this series is equal to the given one and returns true. |
protected static Integer |
getDelta()
Gets the value of the attribute: DELTA. |
protected static Integer |
getLength()
Gets the value of the attribute: LENGTH. |
static Character |
getMax()
Gets the value of the attribute: MAX. |
static Character |
getMin()
Gets the value of the attribute: MIN. |
String |
getValue()
Overrides super class' getter to specifically deal with an integer value stored as a string. |
boolean |
greaterThan(Series object)
Tests if the value of this series is greater than to the given one and returns true. |
void |
increment()
Increments the value of the series to the next adjacent value. |
protected Character |
incrementedCharAt(int pos)
Determines the next incremented character of the character at the given position in the series. |
protected void |
initialize()
Supported API: true |
protected void |
initialize(String value)
Supports initialization, following construction of an instance. |
protected void |
initialize(String seriesName,
String value)
Supports initialization, following construction of an instance. |
boolean |
lessThan(Series object)
Tests if the value of this series is less than to the given one and returns true. |
static MulticharacterSeries |
newMulticharacterSeries()
Makes a new instance. |
static MulticharacterSeries |
newMulticharacterSeries(String value)
Makes a new instance where the value is set to the given string. |
static MulticharacterSeries |
newMulticharacterSeries(String seriesName,
String value)
Makes a new instance where the value is set to the given string. |
void |
reset()
Resets the value of the series to its min. |
protected static void |
setDelta(Integer a_Delta)
Sets the value of the attribute: DELTA. |
protected static void |
setLength(Integer a_Length)
Sets the value of the attribute: LENGTH. |
protected static void |
setMax(Character a_Max)
Sets the value of the attribute: MAX. |
protected static void |
setMin(Character a_Min)
Sets the value of the attribute: MIN. |
protected void |
setValue(String aValue)
Overrides super class' setter to specifically deal with an integer value stored as a string. |
| Methods inherited from class wt.series.Series |
|---|
newSeries, newSeries |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String MIN
public static final String MAX
protected static final String DELTA
protected static final String LENGTH
| Method Detail |
|---|
public static Character getMin()
protected static void setMin(Character a_Min)
throws WTPropertyVetoException
a_Min -
WTPropertyVetoExceptionpublic static Character getMax()
protected static void setMax(Character a_Max)
throws WTPropertyVetoException
a_Max -
WTPropertyVetoExceptionprotected static Integer getDelta()
protected static void setDelta(Integer a_Delta)
throws WTPropertyVetoException
a_Delta -
WTPropertyVetoExceptionprotected static Integer getLength()
protected static void setLength(Integer a_Length)
throws WTPropertyVetoException
a_Length -
WTPropertyVetoException
public static MulticharacterSeries newMulticharacterSeries()
throws WTPropertyVetoException
WTPropertyVetoException
public static MulticharacterSeries newMulticharacterSeries(String value)
throws WTPropertyVetoException
value -
WTPropertyVetoException
protected void initialize(String value)
throws WTPropertyVetoException
value -
WTPropertyVetoException
public static MulticharacterSeries newMulticharacterSeries(String seriesName,
String value)
throws WTPropertyVetoException
seriesName - value -
WTPropertyVetoException
protected void initialize(String seriesName,
String value)
throws WTPropertyVetoException
seriesName - value -
WTPropertyVetoException
public void reset()
throws SeriesException,
WTPropertyVetoException
reset in class SeriesSeriesException
WTPropertyVetoException
public void increment()
throws SeriesException,
WTPropertyVetoException
increment in class SeriesSeriesException
WTPropertyVetoException
public void decrement()
throws SeriesException,
WTPropertyVetoException
decrement in class SeriesSeriesException
WTPropertyVetoExceptionpublic boolean equals(Series object)
equals in class Seriesobject -
public boolean lessThan(Series object)
lessThan in class Seriesobject -
public boolean greaterThan(Series object)
greaterThan in class Seriesobject -
public String getValue()
getValue in class Series
protected void setValue(String aValue)
throws WTPropertyVetoException
setValue in class SeriesaValue -
WTPropertyVetoExceptionprotected Character currCharAt(int pos)
pos -
protected Character incrementedCharAt(int pos)
pos -
protected Character decrementedCharAt(int pos)
pos -
protected void initialize()
throws WTPropertyVetoException
WTPropertyVetoException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||