public class DateInMonth
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
INSTANCE_GENERATOR_RULE_EDGE_LAG
Instance Date Generation Rules - Generate from Lag from Front/Back
|
static int |
INSTANCE_GENERATOR_RULE_SPECIFIC_DAY_OF_MONTH
Instance Date Generation Rule - Generate Using the Specific Day of the Month
|
static int |
INSTANCE_GENERATOR_RULE_WEEK_DAY
Instance Date Generation Rule - Generate from Specified Day in Week/Week in Month
|
Constructor and Description |
---|
DateInMonth(int iInstanceGeneratorRule,
boolean bFromBack,
int iLag,
int iDayOfWeek,
int iWeekInMonth,
int iSpecificDayInMonth)
DateInMonth Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
dayOfWeek()
Retrieve the Day Of Week
|
boolean |
fromBack()
Retrieve the Flag indicating whether the Lag is from the Front/Back
|
JulianDate |
instanceDay(int iYear,
int iMonth,
java.lang.String strCalendar)
Generate the Particular Day of the Year, the Month, according to the Calendar
|
int |
instanceGenerator()
Retrieve the Instance Generation Rule
|
int |
lag()
Retrieve the Date Lag
|
int |
specificDayInMonth()
Retrieve the Specific Day in Month
|
java.lang.String |
toString() |
int |
weekInMonth()
Retrieve the Week In Month
|
public static final int INSTANCE_GENERATOR_RULE_EDGE_LAG
public static final int INSTANCE_GENERATOR_RULE_WEEK_DAY
public static final int INSTANCE_GENERATOR_RULE_SPECIFIC_DAY_OF_MONTH
public DateInMonth(int iInstanceGeneratorRule, boolean bFromBack, int iLag, int iDayOfWeek, int iWeekInMonth, int iSpecificDayInMonth) throws java.lang.Exception
iInstanceGeneratorRule
- Instance Generation RulebFromBack
- TRUE - Apply Rules from Back of EOMiLag
- The LagiDayOfWeek
- Day of WeekiWeekInMonth
- Week in the MonthiSpecificDayInMonth
- Specific Daye In Monthjava.lang.Exception
- Thrown if Inputs are Invalidpublic int instanceGenerator()
public boolean fromBack()
public int lag()
public int weekInMonth()
public int dayOfWeek()
public int specificDayInMonth()
public JulianDate instanceDay(int iYear, int iMonth, java.lang.String strCalendar)
iYear
- Target YeariMonth
- Target MonthstrCalendar
- Target Calendarpublic java.lang.String toString()
toString
in class java.lang.Object