Package wt.series
Class HarvardSeries
java.lang.Object
wt.series._Series
wt.series.Series
wt.series._MultilevelSeries
wt.series.MultilevelSeries
wt.series._HarvardSeries
wt.series.HarvardSeries
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,wt.fc._NetFactor,wt.fc._ObjectMappable,NetFactor,ObjectMappable
@GenAsObjectMappable(superClass=MultilevelSeries.class,
extendable=true,
versions=-7455387585645902984L,
properties=@GeneratedProperty(name="seriesName",type=java.lang.String.class,accessors=@PropertyAccessors(setAccess=PRIVATE),columnProperties=@ColumnProperties(persistent=false)))
public class HarvardSeries
extends wt.series._HarvardSeries
Defines a sequencing model of another subclassed series separated by
a delimiter. In the classic definition a harvard series is like 1, 1.1,
1.1.1, etc.
This harvard series can contain any other predefined subclassed series. For example, a harvard series could be like A, A.A, A.A.A, etc.
Use the newHarvardSeries static factory method(s), not the
HarvardSeries 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
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 CharacterGets the value of the attribute: DELIMITER.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.protected void
Supported API: trueprotected voidinitialize(String seriesName, Series[] values) Supports initialization, following construction of an instance.protected voidinitialize(Series[] values) Supports initialization, following construction of an instance.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 HarvardSeriesMakes a new instance.static HarvardSeriesnewHarvardSeries(String seriesName) Makes a new instance.static HarvardSeriesnewHarvardSeries(String seriesName, String value) Makes a new instance.static HarvardSeriesnewHarvardSeries(String seriesName, Series[] values) Makes a new instance where the value is set to the given array of series.static HarvardSeriesnewHarvardSeries(Series[] values) Makes a new instance where the value is set to the given array of series.voidreset()Resets the subvalue at the current level within the series to its min.protected static voidsetDelimiter(Character a_Delimiter) Sets the value of the attribute: DELIMITER.voidsetSubvalue(Series aValue) Sets the subvalue at the current level within the series.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
getDepth, getSubseries, newMultilevelSeries, newMultilevelSeries, newMultilevelSeries, setDepth, setLevel, setSubseries, setValueWithValidationMethods inherited from class wt.series._MultilevelSeries
getLevel
-
Method Details
-
getDelimiter
Gets the value of the attribute: DELIMITER. The delimiter that separates to adjacent subvalues within the series.
Supported API: true- Returns:
- Character
-
setDelimiter
Sets the value of the attribute: DELIMITER. The delimiter that separates to adjacent subvalues within the series.
Supported API: true- Parameters:
a_Delimiter-- Throws:
WTPropertyVetoException
-
newHarvardSeries
Makes a new instance.
Supported API: true- Returns:
- HarvardSeries
- Throws:
SeriesExceptionWTPropertyVetoException
-
newHarvardSeries
public static HarvardSeries newHarvardSeries(Series[] values) throws SeriesException, WTPropertyVetoException Makes a new instance where the value is set to the given array of series.
Supported API: true- Parameters:
values-- Returns:
- HarvardSeries
- Throws:
SeriesExceptionWTPropertyVetoException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
values-- Throws:
SeriesExceptionWTPropertyVetoException
-
reset
Resets the subvalue at the current level within the series to its min.
Supported API: true- Overrides:
resetin classMultilevelSeries- Throws:
SeriesExceptionWTPropertyVetoException
-
increment
Increments the subvalue at the current level within the series to the next adjacent value.
Supported API: true- Overrides:
incrementin classMultilevelSeries- Throws:
SeriesExceptionWTPropertyVetoException
-
decrement
Decrements the subvalue at the current level within the series to the next adjacent value.
Supported API: true- Overrides:
decrementin classMultilevelSeries- 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- Overrides:
equalsin classMultilevelSeries- Parameters:
object-- Returns:
- boolean
-
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- Overrides:
lessThanin classMultilevelSeries- Parameters:
object-- Returns:
- boolean
-
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- Overrides:
greaterThanin classMultilevelSeries- Parameters:
object-- Returns:
- boolean
-
toLeft
Moves the current level one to the left.
Supported API: true- Overrides:
toLeftin classMultilevelSeries- Throws:
SeriesExceptionWTPropertyVetoException
-
toRight
Moves the current level one to the right.
Supported API: true- Overrides:
toRightin classMultilevelSeries- Throws:
SeriesExceptionWTPropertyVetoException
-
getSubvalue
Gets the subvalue at the current level within the series.
Supported API: true- Overrides:
getSubvaluein classMultilevelSeries- Returns:
- Series
- Throws:
SeriesExceptionWTPropertyVetoException
-
setSubvalue
Sets the subvalue at the current level within the series.
Supported API: true- Overrides:
setSubvaluein classMultilevelSeries- Parameters:
aValue-- Throws:
WTPropertyVetoException
-
initialize
Supported API: true- Throws:
WTPropertyVetoException
-
newHarvardSeries
public static HarvardSeries newHarvardSeries(String seriesName, Series[] values) throws SeriesException, WTPropertyVetoException Makes a new instance where the value is set to the given array of series.
Supported API: true- Parameters:
seriesName-values-- Returns:
- HarvardSeries
- Throws:
SeriesExceptionWTPropertyVetoException
-
initialize
protected void initialize(String seriesName, Series[] values) throws SeriesException, WTPropertyVetoException Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
seriesName-values-- Throws:
SeriesExceptionWTPropertyVetoException
-
newHarvardSeries
Makes a new instance.
Supported API: true- Parameters:
seriesName- Name of specific series (e.g. null (for default series), "MilSpec", "StateBased").- Returns:
- HarvardSeries object
- Throws:
SeriesException
-
newHarvardSeries
public static HarvardSeries newHarvardSeries(String seriesName, String value) throws SeriesException Makes a new instance.
Supported API: true- Parameters:
seriesName- Name of specific series (e.g. null (for default series), "MilSpec", "StateBased").value- Revision value (e.g., "A", "A.B").- Returns:
- HarvardSeries object
- Throws:
SeriesException
-