|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.calendar.Holiday
public class Holiday
Holiday class holds 4 numbers, representing a holiday. Holiday can be
Calendar
,
Serialized FormField Summary | |
---|---|
java.lang.String[] |
monthnames
Holds names of the months. |
Constructor Summary | |
---|---|
Holiday()
Holiday constructor. |
|
Holiday(java.lang.String s)
Holiday constructor. |
Method Summary | |
---|---|
boolean |
equals(java.util.Calendar cal)
Checks whether the parameter suites the holiday holded by the instance. |
int |
getDay()
Returns the day number. |
int |
getMonth()
Returns the number of the month. |
java.lang.String |
getText()
Returns a string describing the holiday in long form. |
int |
getWeek()
Returns the number of the week. |
int |
getYear()
Returns the year. |
void |
initialize()
Creates and initializes needed arrays. |
void |
parse(java.lang.String s)
Parses a coded string and sets the fields of the object. |
void |
setDay(int d)
Sets day number. |
void |
setMonth(int m)
Sets number of month. |
void |
setWeek(int w)
Sets number of week. |
void |
setYear(int y)
Sets year field. |
java.lang.String |
toString()
Returns the coded string form of the held holiday. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String[] monthnames
Constructor Detail |
---|
public Holiday()
public Holiday(java.lang.String s)
s
- java.lang.StringMethod Detail |
---|
public boolean equals(java.util.Calendar cal)
cal
- java.util.Calendar
public int getDay()
public int getMonth()
public java.lang.String getText()
public int getWeek()
public int getYear()
public void initialize()
public void parse(java.lang.String s)
s
- java.lang.Stringpublic void setDay(int d)
d
- intpublic void setMonth(int m)
m
- intpublic void setWeek(int w)
w
- intpublic void setYear(int y)
y
- intpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |