Package wt.series
Class MulticharacterSeries
java.lang.Object
wt.series._Series
wt.series.Series
wt.series._MulticharacterSeries
wt.series.MulticharacterSeries
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,wt.fc._NetFactor,wt.fc._ObjectMappable,NetFactor,ObjectMappable
@GenAsObjectMappable(superClass=Series.class,
extendable=true,
versions=7620537180150616532L,
properties=@GeneratedProperty(name="seriesName",type=java.lang.String.class,accessors=@PropertyAccessors(setAccess=PRIVATE),columnProperties=@ColumnProperties(persistent=false)))
public class MulticharacterSeries
extends wt.series._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
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected CharactercurrCharAt(int pos) Determines the current character in the series.voidDecrements the value of the series to the next adjacent value.protected CharacterdecrementedCharAt(int pos) Determines the next decremented character of the character at the position in the series.booleanTests if the value of this series is equal to the given one and returns true.protected static IntegergetDelta()Gets the value of the attribute: DELTA.protected static IntegerGets the value of the attribute: LENGTH.static CharactergetMax()Gets the value of the attribute: MAX.static CharactergetMin()Gets the value of the attribute: MIN.getValue()Overrides super class' getter to specifically deal with an integer value stored as a string.booleangreaterThan(Series object) Tests if the value of this series is greater than to the given one and returns true.voidIncrements the value of the series to the next adjacent value.protected CharacterincrementedCharAt(int pos) Determines the next incremented character of the character at the given position in the series.protected void
Supported API: trueprotected voidinitialize(String value) Supports initialization, following construction of an instance.protected voidinitialize(String seriesName, String value) Supports initialization, following construction of an instance.booleanTests if the value of this series is less than to the given one and returns true.static MulticharacterSeriesMakes a new instance.static MulticharacterSeriesnewMulticharacterSeries(String value) Makes a new instance where the value is set to the given string.static MulticharacterSeriesnewMulticharacterSeries(String seriesName, String value) Makes a new instance where the value is set to the given string.voidreset()Resets the value of the series to its min.protected static voidSets the value of the attribute: DELTA.protected static voidSets the value of the attribute: LENGTH.protected static voidSets the value of the attribute: MAX.protected static voidSets the value of the attribute: MIN.protected voidOverrides super class' setter to specifically deal with an integer value stored as a string.
-
Method Details
-
getMin
Gets the value of the attribute: MIN. The minimum limit of a character within the series.
Supported API: true- Returns:
- Character
-
setMin
Sets the value of the attribute: MIN. The minimum limit of a character within the series.
Supported API: true- Parameters:
a_Min-- Throws:
WTPropertyVetoException
-
getMax
Gets the value of the attribute: MAX. The maximum limit of a character within the series.
Supported API: true- Returns:
- Character
-
setMax
Sets the value of the attribute: MAX. The maximum limit of a character within the series.
Supported API: true- Parameters:
a_Max-- Throws:
WTPropertyVetoException
-
getDelta
Gets the value of the attribute: DELTA. The increment between adjacent characters within the series.
Supported API: true- Returns:
- Integer
-
setDelta
Sets the value of the attribute: DELTA. The increment between adjacent characters within the series.
Supported API: true- Parameters:
a_Delta-- Throws:
WTPropertyVetoException
-
getLength
Gets the value of the attribute: LENGTH. The total length in characters that the series can grow.
Supported API: true- Returns:
- Integer
-
setLength
Sets the value of the attribute: LENGTH. The total length in characters that the series can grow.
Supported API: true- Parameters:
a_Length-- Throws:
WTPropertyVetoException
-
newMulticharacterSeries
Makes a new instance.
Supported API: true- Returns:
- MulticharacterSeries
- Throws:
WTPropertyVetoException
-
newMulticharacterSeries
public static MulticharacterSeries newMulticharacterSeries(String value) throws WTPropertyVetoException Makes a new instance where the value is set to the given string.
Supported API: true- Parameters:
value-- Returns:
- MulticharacterSeries
- Throws:
WTPropertyVetoException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
value-- Throws:
WTPropertyVetoException
-
newMulticharacterSeries
public static MulticharacterSeries newMulticharacterSeries(String seriesName, String value) throws WTPropertyVetoException Makes a new instance where the value is set to the given string.
Supported API: true- Parameters:
seriesName-value-- Returns:
- MulticharacterSeries
- Throws:
WTPropertyVetoException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
seriesName-value-- Throws:
WTPropertyVetoException
-
reset
Resets the value of the series to its min.
Supported API: true- Specified by:
resetin classSeries- Throws:
SeriesExceptionWTPropertyVetoException
-
increment
Increments the value of the series to the next adjacent value.
Supported API: true- Specified by:
incrementin classSeries- Throws:
SeriesExceptionWTPropertyVetoException
-
decrement
Decrements the value of the series to the next adjacent value.
Supported API: true- Specified by:
decrementin classSeries- Throws:
SeriesExceptionWTPropertyVetoException
-
equals
Tests if the value of this series is equal to the given one and returns true. Otherwise, returns false.
Supported API: true -
lessThan
Tests if the value of this series is less than to the given one and returns true. Otherwise, returns false.
Supported API: true -
greaterThan
Tests if the value of this series is greater than to the given one and returns true. Otherwise, returns false.
Supported API: true- Specified by:
greaterThanin classSeries- Parameters:
object-- Returns:
- boolean
-
getValue
Overrides super class' getter to specifically deal with an integer value stored as a string.
Supported API: true -
setValue
Overrides super class' setter to specifically deal with an integer value stored as a string.
Supported API: true- Overrides:
setValuein class_Series- Parameters:
aValue-- Throws:
WTPropertyVetoException- See Also:
-
currCharAt
Determines the current character in the series.
Supported API: true- Parameters:
pos-- Returns:
- Character
-
incrementedCharAt
Determines the next incremented character of the character at the given position in the series.
Supported API: true- Parameters:
pos-- Returns:
- Character
-
decrementedCharAt
Determines the next decremented character of the character at the position in the series.
Supported API: true- Parameters:
pos-- Returns:
- Character
-
initialize
Supported API: true- Throws:
WTPropertyVetoException
-