Package wt.series
Class MultilevelSeries
java.lang.Object
wt.series._Series
wt.series.Series
wt.series._MultilevelSeries
wt.series.MultilevelSeries
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,wt.fc._NetFactor,wt.fc._ObjectMappable,NetFactor,ObjectMappable
- Direct Known Subclasses:
wt.series._HarvardSeries
@GenAsObjectMappable(superClass=Series.class,extendable=true,versions=3903716765246872597L,properties={@GeneratedProperty(name="level",type=java.lang.Integer.class,initialValue="new Integer( 0 )",supportedAPI=PUBLIC,javaDoc="The current level within a series that marks the depth.",accessors=@PropertyAccessors(setAccess=PROTECTED,setExceptions={})),@GeneratedProperty(name="sortId",type=java.lang.String.class,accessors=@PropertyAccessors(getAccess=PACKAGE))})
public abstract class MultilevelSeries
extends _MultilevelSeries
Defines a sequencing model of a multilevel series where each level is
of another subclassed simple (non-multilevel) series.
Supported API: true
Extendable: true
For example, this series could be 3 levels deep where the first level may be an integer series, and the second and third a character series. Thus, level one would produce increments like 1, 2, 3, etc. Levels two and three would produce increments like A, B, C, etc.
Supported API: true
Extendable: true
- See Also:
-
Field Summary
Fields inherited from class wt.series._MultilevelSeries
LEVEL -
Method Summary
Modifier and TypeMethodDescriptionvoidDecrements the subvalue at the current level within the series to the next adjacent value.booleanTests if the subvalue at the current level within this series is equal to the subvalue at the current level within given one and returns true.static IntegergetDepth()Gets the value of the attribute: DEPTH.static String[]Gets the value of the attribute: SUBSERIES.Gets the subvalue at the current level within the series.booleangreaterThan(Series object) Tests if the subvalue at the current level within this series is greater than to the subvalue at the current level within given one and returns true.voidIncrements the subvalue at the current level within the series to the next adjacent value.booleanTests if the subvalue at the current level within this series is less than to the subvalue at the current level within given one and returns true.static final MultilevelSeriesnewMultilevelSeries(String userClassName) Makes a new instance where the value is set to the given array of series.static final MultilevelSeriesnewMultilevelSeries(String userClassName, String value) Makes a new instance where the value is set to the given value.static final MultilevelSeriesnewMultilevelSeries(String userClassName, String value, Integer level) Makes a new instance where the value is set to the given value and level.voidreset()Resets the subvalue at the current level within the series to its min.protected static voidSets the value of the attribute: DEPTH.protected voidSets the value of the attribute: LEVEL.protected static voidsetSubseries(String[] a_Subseries) Sets the value of the attribute: SUBSERIES.protected voidsetSubvalue(Series aValue) Sets the subvalue at the current level within the series.voidsetValueWithValidation(String a_Value, Integer a_Level) Sets the series value and level with validation.voidtoLeft()Moves the current level one to the left.voidtoRight()Moves the current level one to the right.Methods inherited from class wt.series._MultilevelSeries
getLevelMethods inherited from class wt.series.Series
getUniqueSeriesName, newSeries, newSeries
-
Method Details
-
getDepth
Gets the value of the attribute: DEPTH. The maximum depth of levels the series can nest.
Supported API: true- Returns:
- Integer
-
setDepth
Sets the value of the attribute: DEPTH. The maximum depth of levels the series can nest.
Supported API: true- Parameters:
a_Depth-- Throws:
WTPropertyVetoException
-
getSubseries
Gets the value of the attribute: SUBSERIES. The one or more subseries that constitute each level of the series.
Supported API: true- Returns:
- String[]
-
setSubseries
Sets the value of the attribute: SUBSERIES. The one or more subseries that constitute each level of the series.
Supported API: true- Parameters:
a_Subseries-- Throws:
WTPropertyVetoException
-
setLevel
Sets the value of the attribute: LEVEL. The current level within a series that marks the depth.
Supported API: true- Overrides:
setLevelin class_MultilevelSeries- Parameters:
a_Level-- See Also:
-
newMultilevelSeries
public static final MultilevelSeries newMultilevelSeries(String userClassName) throws SeriesException Makes a new instance where the value is set to the given array of series.
Supported API: true- Parameters:
userClassName-- Returns:
- MultilevelSeries
- Throws:
SeriesException
-
newMultilevelSeries
public static final MultilevelSeries newMultilevelSeries(String userClassName, String value) throws SeriesException Makes a new instance where the value is set to the given value.
Supported API: true- Parameters:
userClassName-value-- Returns:
- MultilevelSeries
- Throws:
SeriesException
-
newMultilevelSeries
public static final MultilevelSeries newMultilevelSeries(String userClassName, String value, Integer level) throws SeriesException Makes a new instance where the value is set to the given value and level.
Supported API: true- Parameters:
userClassName-value-level-- Returns:
- MultilevelSeries
- Throws:
SeriesException
-
reset
Resets the subvalue at the current level within the series to its min.
Supported API: true- Specified by:
resetin classSeries- Throws:
SeriesExceptionWTPropertyVetoException
-
increment
Increments the subvalue at the current level within the series to the next adjacent value.
Supported API: true- Specified by:
incrementin classSeries- Throws:
SeriesExceptionWTPropertyVetoException
-
decrement
Decrements the subvalue at the current level within the series to the next adjacent value.
Supported API: true- Specified by:
decrementin classSeries- Throws:
SeriesExceptionWTPropertyVetoException
-
equals
Tests if the subvalue at the current level within this series is equal to the subvalue at the current level within given one and returns true. Otherwise, returns false.
Supported API: true -
lessThan
Tests if the subvalue at the current level within this series is less than to the subvalue at the current level within given one and returns true. Otherwise, returns false.
Supported API: true -
greaterThan
Tests if the subvalue at the current level within this series is greater than to the subvalue at the current level within given one and returns true. Otherwise, returns false.
Supported API: true- Specified by:
greaterThanin classSeries- Parameters:
object-- Returns:
- boolean
-
toLeft
Moves the current level one to the left.
Supported API: true -
toRight
Moves the current level one to the right.
Supported API: true -
getSubvalue
Gets the subvalue at the current level within the series.
Supported API: true- Returns:
- Series
- Throws:
SeriesExceptionWTPropertyVetoException
-
setSubvalue
Sets the subvalue at the current level within the series.
Supported API: true- Parameters:
aValue-- Throws:
WTPropertyVetoException
-
setValueWithValidation
public void setValueWithValidation(String a_Value, Integer a_Level) throws wt.series.SeriesVersionSchemeMismatchException, WTPropertyVetoException Sets the series value and level with validation. For example we want to set the value of version label to "B" at level 1. The revision scheme is set to IntegerSeries at level 1, This API will throw a SeriesRevisionSchemeMismatchException.
Supported API: true- Parameters:
a_Value-a_Level-- Throws:
wt.series.SeriesVersionSchemeMismatchExceptionWTPropertyVetoException
-