public abstract class Base extends Serializer
NULL_SER_STRING, VERSION
Constructor and Description |
---|
Base(byte[] ab)
De-serialization of Holiday from byte stream
|
Base(java.lang.String strDescription)
Constructs the holiday instance from the description
|
Modifier and Type | Method and Description |
---|---|
abstract double |
getDateInYear(int iYear,
boolean bAdjusted)
Generates the full date specific to the input year
|
java.lang.String |
getDescription()
Returns the description
|
static double |
RollHoliday(double dblDate,
boolean bBalkOnYearShift,
Weekend wkend)
Rolls the date to a non-holiday according to the rule specified
|
byte[] |
serialize()
Serialize into a byte array.
|
deserialize, getCollectionKeyValueDelimiter, getCollectionMultiLevelKeyDelimiter, getCollectionRecordDelimiter, getFieldDelimiter, getObjectTrailer
public Base(java.lang.String strDescription)
strDescription
- Holiday Descriptionpublic Base(byte[] ab) throws java.lang.Exception
ab
- Byte streamjava.lang.Exception
- Thrown if cannot properly de-serialize Holidaypublic static final double RollHoliday(double dblDate, boolean bBalkOnYearShift, Weekend wkend) throws java.lang.Exception
dblDate
- Date to be rolledbBalkOnYearShift
- Throw an exception if the year change happenswkend
- Object representing the weekend daysjava.lang.Exception
- Thrown if the holiday cannot be rolledpublic java.lang.String getDescription()
public abstract double getDateInYear(int iYear, boolean bAdjusted)
iYear
- Input YearbAdjusted
- Whether adjustment is desiredpublic byte[] serialize()
Serializer
serialize
in class Serializer