|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.series.Series
wt.series.MultilevelSeries
Defines a sequencing model of a multilevel series where each level is of another subclassed simple (non-multilevel) series.
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.
Field Summary | |
private static String |
CLASSNAME
|
private static Integer |
depth
|
static String |
DEPTH
Label for the attribute; The maximum depth of levels the series can nest. |
static long |
EXTERNALIZATION_VERSION_UID
|
private Integer |
level
|
static String |
LEVEL
Label for the attribute; The current level within a series that marks the depth. |
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static String[] |
subseries
|
static String |
SUBSERIES
Label for the attribute; The one or more subseries that constitute each level of the series. |
Fields inherited from class wt.series.Series |
VALUE |
Constructor Summary | |
MultilevelSeries()
|
Method Summary | |
protected abstract Integer |
calculateLevel(String aValue)
Supported API: false |
void |
decrement()
Decrements the subvalue at the current level within the series to the next adjacent value. |
boolean |
equals(Series object)
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. |
static Integer |
getDepth()
Gets the value of the attribute: DEPTH. |
Integer |
getLevel()
Gets the value of the attribute: LEVEL. |
static String[] |
getSubseries()
Gets the value of the attribute: SUBSERIES. |
Series |
getSubvalue()
Gets the subvalue at the current level within the series. |
boolean |
greaterThan(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. |
void |
increment()
Increments the subvalue at the current level within the series to the next adjacent value. |
void |
intSetLevel(Integer a_Level)
|
boolean |
lessThan(Series object)
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. |
static MultilevelSeries |
newMultilevelSeries(String userClassName)
Makes a new instance where the value is set to the given array of series. |
static MultilevelSeries |
newMultilevelSeries(String userClassName,
String value)
Makes a new instance where the value is set to the given value. |
static MultilevelSeries |
newMultilevelSeries(String userClassName,
String value,
Integer level)
Makes a new instance where the value is set to the given value and level. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(MultilevelSeries thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
reset()
Resets the subvalue at the current level within the series to its min. |
protected static void |
setDepth(Integer a_Depth)
Sets the value of the attribute: DEPTH. |
protected void |
setLevel(Integer a_Level)
Sets the value of the attribute: LEVEL. |
protected static void |
setSubseries(String[] a_Subseries)
Sets the value of the attribute: SUBSERIES. |
protected void |
setSubvalue(Series aValue)
Sets the subvalue at the current level within the series. |
void |
toLeft()
Moves the current level one to the left. |
void |
toRight()
Moves the current level one to the right. |
protected abstract void |
validateArgs(String aValue,
Integer aLevel)
Supported API: false |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class wt.series.Series |
clone, getClassInfo, getValue, newSeries, newSeries, readVersion, setValue, setValueWithoutValidating, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.NetFactor |
getConceptualClassname |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String DEPTH
private static Integer depth
public static final String SUBSERIES
private static String[] subseries
public static final String LEVEL
private Integer level
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public MultilevelSeries()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Series
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class Series
input
-
IOException
ClassNotFoundException
protected boolean readVersion(MultilevelSeries thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class Series
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class Series
input
-
SQLException
DatastoreException
public static Integer getDepth()
protected static void setDepth(Integer a_Depth) throws WTPropertyVetoException
a_Depth
-
WTPropertyVetoException
public static String[] getSubseries()
protected static void setSubseries(String[] a_Subseries) throws WTPropertyVetoException
a_Subseries
-
WTPropertyVetoException
public Integer getLevel()
protected void setLevel(Integer a_Level)
a_Level
- public static final MultilevelSeries newMultilevelSeries(String userClassName) throws SeriesException
userClassName
-
SeriesException
public static final MultilevelSeries newMultilevelSeries(String userClassName, String value) throws SeriesException
userClassName
- value
-
SeriesException
public static final MultilevelSeries newMultilevelSeries(String userClassName, String value, Integer level) throws SeriesException
userClassName
- value
- level
-
SeriesException
public void reset() throws SeriesException, WTPropertyVetoException
reset
in class Series
SeriesException
WTPropertyVetoException
public void increment() throws SeriesException, WTPropertyVetoException
increment
in class Series
SeriesException
WTPropertyVetoException
public void decrement() throws SeriesException, WTPropertyVetoException
decrement
in class Series
SeriesException
WTPropertyVetoException
public boolean equals(Series object)
equals
in class Series
object
-
public boolean lessThan(Series object)
lessThan
in class Series
object
-
public boolean greaterThan(Series object)
greaterThan
in class Series
object
-
public void toLeft() throws SeriesException, WTPropertyVetoException
SeriesException
WTPropertyVetoException
public void toRight() throws SeriesException, WTPropertyVetoException
SeriesException
WTPropertyVetoException
public Series getSubvalue() throws SeriesException, WTPropertyVetoException
SeriesException
WTPropertyVetoException
protected void setSubvalue(Series aValue) throws WTPropertyVetoException
aValue
-
WTPropertyVetoException
protected abstract Integer calculateLevel(String aValue)
aValue
-
protected abstract void validateArgs(String aValue, Integer aLevel) throws SeriesException
aValue
- aLevel
-
SeriesException
public void intSetLevel(Integer a_Level)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |