public class Variable extends Base
NULL_SER_STRING, VERSION
Constructor and Description |
---|
Variable(byte[] ab)
De-serialization of FloatingHoliday from byte stream
|
Variable(int iWeekInMonth,
int iWeekDay,
int iMonth,
boolean bFromFront,
Weekend wkend,
java.lang.String strDescription)
Constructs the object from the week, day, month, from front/back, week end, and description
|
Modifier and Type | Method and Description |
---|---|
Serializer |
deserialize(byte[] ab)
De-serialize from a byte array.
|
double |
getDateInYear(int iYear,
boolean bAdjustForWeekend)
Generates the full date specific to the input year
|
java.lang.String |
getFieldDelimiter()
Returns the Field Delimiter String
|
java.lang.String |
getObjectTrailer()
Returns the Object Trailer String
|
static void |
main(java.lang.String[] astrArgs) |
byte[] |
serialize()
Serialize into a byte array.
|
getDescription, RollHoliday
getCollectionKeyValueDelimiter, getCollectionMultiLevelKeyDelimiter, getCollectionRecordDelimiter
public Variable(int iWeekInMonth, int iWeekDay, int iMonth, boolean bFromFront, Weekend wkend, java.lang.String strDescription)
iWeekInMonth
- Week of the MonthiWeekDay
- Day of the WeekiMonth
- MonthbFromFront
- From Front (true), Back (false)wkend
- WeekendstrDescription
- Descriptionpublic Variable(byte[] ab) throws java.lang.Exception
ab
- Byte streamjava.lang.Exception
- Thrown if cannot properly de-serialize FloatingHolidaypublic double getDateInYear(int iYear, boolean bAdjustForWeekend)
Base
getDateInYear
in class Base
iYear
- Input YearbAdjustForWeekend
- Whether adjustment is desiredpublic java.lang.String getFieldDelimiter()
Serializer
getFieldDelimiter
in class Serializer
public java.lang.String getObjectTrailer()
Serializer
getObjectTrailer
in class Serializer
public byte[] serialize()
Serializer
public Serializer deserialize(byte[] ab)
Serializer
deserialize
in class Serializer
public static final void main(java.lang.String[] astrArgs) throws java.lang.Exception
java.lang.Exception