|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.series.Series
wt.series.FileBasedSeries
Defines a sequencing model based on an XML input file stored in the SeriesTemplate table.
Use the newFileBasedSeries
static factory method(s), not
the FileBasedSeries
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: false
Nested Class Summary | |
(package private) static class |
FileBasedSeries.Singleton
|
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
private String |
maturity
|
static String |
MATURITY
Label for the attribute. |
static String |
NO_SEED
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private String |
series
|
static String |
SERIES
Label for the attribute. |
private static List |
values
|
Fields inherited from class wt.series.Series |
VALUE |
Constructor Summary | |
FileBasedSeries()
|
Method Summary | |
private int |
compare(FileBasedSeries series)
This method was created because we can't trust the maturity level on the series -- 1 can be associated to MILSTD and A to NUMERIC. |
void |
decrement()
Specifies an abstract means of decrementing the value to the next adjacent descending value in a series. |
boolean |
equals(Series object)
Tests if this series is equal to the given one and returns true. |
String |
getConceptualClassname()
Deprecated. |
String |
getMaturity()
Gets the value of the attribute: MATURITY. |
private int |
getMaturityIndex(String a_maturity)
|
String |
getSeries()
Gets the value of the attribute: SERIES. |
private int |
getSeriesIndex(String a_series)
|
private String |
getSeriesKey()
|
int |
getValueIndex()
|
private List |
getValues(String a_series,
String a_maturity)
|
boolean |
greaterThan(Series object)
Tests if this series is greater than to the given one and returns true. |
void |
increment()
Specifies an abstract means of incrementing the value to the next adjacent ascending value in a series. |
protected void |
initialize(String series,
String maturity)
Supports initialization, following construction of an instance. |
private boolean |
isPromote()
|
boolean |
lessThan(Series object)
Tests if this series is less than to the given one and returns true. |
static FileBasedSeries |
newFileBasedSeries(String series,
String maturity)
Makes a new instance where the value at the given series and maturity level is set to the given string. |
private String |
nextValue()
|
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(FileBasedSeries thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
reset()
Specifies an abstract means of resetting the value to the first one in a series. |
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 |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String SERIES
private String series
public static final String MATURITY
private String maturity
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static List values
public static final String NO_SEED
Constructor Detail |
public FileBasedSeries()
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(FileBasedSeries 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 String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String getSeries()
public String getMaturity()
public static FileBasedSeries newFileBasedSeries(String series, String maturity) throws SeriesException, WTPropertyVetoException
series
- maturity
-
SeriesException
WTPropertyVetoException
protected void initialize(String series, String maturity) throws SeriesException, WTPropertyVetoException
series
- maturity
-
SeriesException
WTPropertyVetoException
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 int getValueIndex()
private String getSeriesKey() throws WTException
WTException
private int getSeriesIndex(String a_series) throws WTException
WTException
private int getMaturityIndex(String a_maturity) throws WTException
WTException
private List getValues(String a_series, String a_maturity) throws WTException
WTException
private boolean isPromote() throws WTException
WTException
private String nextValue() throws WTException
WTException
private int compare(FileBasedSeries series) throws WTException
series
-
WTException
- if these can't be compared, to which lessThan/greaterThan will return false
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |