|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.series.Series
wt.series.MultilevelSeries
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
Nested Class Summary | |
private static class |
HarvardSeries.SeriesProperties
|
Field Summary | |
private static String |
CLASSNAME
|
private static String |
DEFAULT
|
private static Character |
delimiter
|
static String |
DELIMITER
Label for the attribute; The delimiter that separates to adjacent subvalues within the series. |
static long |
EXTERNALIZATION_VERSION_UID
|
private static Set |
FAILED_CLASSES
|
private static Integer |
NO_ARG_LEVEL
|
private static String |
NO_ARG_VALUE
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static String |
SERIES_NAME
Label for the attribute. |
private static String |
SERIES_NAMES
|
private static Hashtable |
seriesMap
|
private String |
seriesName
|
Fields inherited from class wt.series.MultilevelSeries |
DEPTH, LEVEL, SUBSERIES |
Fields inherited from class wt.series.Series |
VALUE |
Constructor Summary | |
HarvardSeries()
|
|
HarvardSeries(String seriesName)
|
Method Summary | |
protected 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. |
String |
getConceptualClassname()
Deprecated. |
static Character |
getDelimiter()
Gets the value of the attribute: DELIMITER. |
Character |
getSeriesDelimiter()
|
Integer |
getSeriesDepth()
|
String |
getSeriesName()
Gets the value of the attribute: SERIES_NAME. |
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. |
protected void |
initialize()
Supported API: true |
protected void |
initialize(Series[] values)
Supports initialization, following construction of an instance. |
protected void |
initialize(String seriesName,
Series[] values)
Supports initialization, following construction of an instance. |
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. |
private HarvardSeries.SeriesProperties |
lookInMap()
|
static HarvardSeries |
newHarvardSeries()
Makes a new instance. |
static HarvardSeries |
newHarvardSeries(Series[] values)
Makes a new instance where the value is set to the given array of series. |
static HarvardSeries |
newHarvardSeries(String seriesName,
Series[] values)
Makes a new instance where the value is set to the given array of series. |
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(HarvardSeries 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 |
setDelimiter(Character a_Delimiter)
Sets the value of the attribute: DELIMITER. |
void |
setSubvalue(Series aValue)
Sets the subvalue at the current level within the series. |
void |
setValue(String a_Value)
Sets the value of the attribute: VALUE. |
private int |
smallestLevelOf(HarvardSeries left,
HarvardSeries right)
|
void |
toLeft()
Moves the current level one to the left. |
void |
toRight()
Moves the current level one to the right. |
protected 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.MultilevelSeries |
getDepth, getLevel, getSubseries, intSetLevel, newMultilevelSeries, newMultilevelSeries, newMultilevelSeries, readVersion, setDepth, setLevel, setSubseries |
Methods inherited from class wt.series.Series |
clone, getClassInfo, getValue, newSeries, newSeries, readVersion, setValueWithoutValidating, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String DELIMITER
private static Character delimiter
public static final String SERIES_NAME
private String seriesName
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static Hashtable seriesMap
private static final String DEFAULT
private static final String SERIES_NAMES
private static final String NO_ARG_VALUE
private static final Integer NO_ARG_LEVEL
private static final Set FAILED_CLASSES
Constructor Detail |
public HarvardSeries()
public HarvardSeries(String seriesName)
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class MultilevelSeries
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class MultilevelSeries
input
-
IOException
ClassNotFoundException
protected boolean readVersion(HarvardSeries 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 MultilevelSeries
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 MultilevelSeries
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public static Character getDelimiter()
protected static void setDelimiter(Character a_Delimiter) throws WTPropertyVetoException
a_Delimiter
-
WTPropertyVetoException
public String getSeriesName()
public static HarvardSeries newHarvardSeries() throws SeriesException, WTPropertyVetoException
SeriesException
WTPropertyVetoException
public static HarvardSeries newHarvardSeries(Series[] values) throws SeriesException, WTPropertyVetoException
values
-
SeriesException
WTPropertyVetoException
protected void initialize(Series[] values) throws SeriesException, WTPropertyVetoException
values
-
SeriesException
WTPropertyVetoException
public void reset() throws SeriesException, WTPropertyVetoException
reset
in class MultilevelSeries
SeriesException
WTPropertyVetoException
public void increment() throws SeriesException, WTPropertyVetoException
increment
in class MultilevelSeries
SeriesException
WTPropertyVetoException
public void decrement() throws SeriesException, WTPropertyVetoException
decrement
in class MultilevelSeries
SeriesException
WTPropertyVetoException
public boolean equals(Series object)
equals
in class MultilevelSeries
object
-
public boolean lessThan(Series object)
lessThan
in class MultilevelSeries
object
-
public boolean greaterThan(Series object)
greaterThan
in class MultilevelSeries
object
-
public void toLeft() throws SeriesException, WTPropertyVetoException
toLeft
in class MultilevelSeries
SeriesException
WTPropertyVetoException
public void toRight() throws SeriesException, WTPropertyVetoException
toRight
in class MultilevelSeries
SeriesException
WTPropertyVetoException
public Series getSubvalue() throws SeriesException, WTPropertyVetoException
getSubvalue
in class MultilevelSeries
SeriesException
WTPropertyVetoException
public void setSubvalue(Series aValue) throws WTPropertyVetoException
setSubvalue
in class MultilevelSeries
aValue
-
WTPropertyVetoException
protected void initialize() throws WTPropertyVetoException
WTPropertyVetoException
public static HarvardSeries newHarvardSeries(String seriesName, Series[] values) throws SeriesException, WTPropertyVetoException
seriesName
- values
-
SeriesException
WTPropertyVetoException
protected void initialize(String seriesName, Series[] values) throws SeriesException, WTPropertyVetoException
seriesName
- values
-
SeriesException
WTPropertyVetoException
protected Integer calculateLevel(String aValue)
calculateLevel
in class MultilevelSeries
aValue
-
protected void validateArgs(String aValue, Integer aLevel) throws SeriesException
validateArgs
in class MultilevelSeries
aValue
- aLevel
-
SeriesException
public void setValue(String a_Value) throws WTPropertyVetoException
Series
setValue
in class Series
a_Value
-
WTPropertyVetoException
private int smallestLevelOf(HarvardSeries left, HarvardSeries right)
public Character getSeriesDelimiter()
public Integer getSeriesDepth()
private HarvardSeries.SeriesProperties lookInMap()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |