|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object brahms.base.util.BrahmsCalendar
public class BrahmsCalendar
The BrahmsCalendar class manages a set of class attributes to increase performance in the use of the Brahms Calendar class with the related external activities.
Field Summary | |
---|---|
static java.lang.String[] |
ATTRIBUTE_NAMES
|
static int |
DATE
|
static int |
DAY_OF_MONTH
|
static int |
DAY_OF_WEEK
|
static java.text.SimpleDateFormat |
DAY_OF_WEEK_FORMAT
|
static int |
DAY_OF_WEEK_IN_MONTH
|
static int |
HOUR
|
static int |
MILLISECOND
|
static int |
MINUTE
|
static int |
MONTH
|
static java.text.SimpleDateFormat |
MONTH_FORMAT
|
static int |
NUM_ATTRIBUTES
|
static int |
S_DAY_OF_WEEK
|
static int |
S_MONTH
|
static int |
SECOND
|
static int |
TIME_STAMP
|
static java.text.SimpleDateFormat |
TIME_STAMP_FORMAT
|
static java.text.SimpleDateFormat |
TIME_STAMP_FORMAT_NO_TZ
|
static int |
TIME_ZONE
|
static int |
TIME_ZONE_SHORT
|
static int |
TIMEMS
|
static int |
WEEK_OF_MONTH
|
static int |
WEEK_OF_YEAR
|
static int |
YEAR
|
Constructor Summary | |
---|---|
BrahmsCalendar()
|
Method Summary | |
---|---|
static java.lang.String |
createTimeStamp(java.util.GregorianCalendar calendar)
Creates a new timestamp from the specified calendar formatted as MM/dd/yyyy HH:mm:ss zzzz |
static IAttribute |
getAttribute(int attribute)
Returns the specified Calendar attribute. |
static IObject |
getBrahmsCalendar(java.util.GregorianCalendar calendar,
IObject brahmsCalendar,
IContext ctx)
Converts a Java GregorianCalendar into a Brahms Calendar. |
static IClass |
getCalendarClass()
Returns the Brahms Calendar class. |
static java.util.GregorianCalendar |
getJavaCalendar(IObject calendar,
IContext ctx)
Converts a Brahms Calendar into a Java GregorianCalendar. |
static void |
init()
Initializes the class attributes. |
static java.util.GregorianCalendar |
parseTimeStamp(java.lang.String timeStamp)
Parses the specified timestamp into a GregorianCalendar. |
static void |
reset()
Resets the static variables maintained by this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NUM_ATTRIBUTES
public static final int DATE
public static final int MONTH
public static final int YEAR
public static final int HOUR
public static final int MINUTE
public static final int SECOND
public static final int MILLISECOND
public static final int DAY_OF_WEEK
public static final int DAY_OF_MONTH
public static final int DAY_OF_WEEK_IN_MONTH
public static final int WEEK_OF_MONTH
public static final int WEEK_OF_YEAR
public static final int TIME_ZONE
public static final int TIME_ZONE_SHORT
public static final int S_MONTH
public static final int S_DAY_OF_WEEK
public static final int TIME_STAMP
public static final int TIMEMS
public static final java.lang.String[] ATTRIBUTE_NAMES
public static final java.text.SimpleDateFormat TIME_STAMP_FORMAT
public static final java.text.SimpleDateFormat TIME_STAMP_FORMAT_NO_TZ
public static final java.text.SimpleDateFormat MONTH_FORMAT
public static final java.text.SimpleDateFormat DAY_OF_WEEK_FORMAT
Constructor Detail |
---|
public BrahmsCalendar()
Method Detail |
---|
public static final void init() throws ExternalException
ExternalException
- if an error occurs during the initializationpublic static final void reset()
public static final IClass getCalendarClass() throws ExternalException
ExternalException
- if the class could not be found or retrieved.public static final IAttribute getAttribute(int attribute)
attribute
- the constant indicating the desired attribute
public static final java.lang.String createTimeStamp(java.util.GregorianCalendar calendar)
calendar
- the GregorianCalendar to be converted to a timestamp
public static final java.util.GregorianCalendar parseTimeStamp(java.lang.String timeStamp) throws ExternalException
timeStamp
- the timeStamp to be parsed
ExternalException
- if the timestamp can't be parsedpublic static final java.util.GregorianCalendar getJavaCalendar(IObject calendar, IContext ctx) throws ExternalException
calendar
- the Brahms Calendar to be convertedctx
- the IContext to be used to access Brahms object information
ExternalException
- if an error occurs during the conversionpublic static final IObject getBrahmsCalendar(java.util.GregorianCalendar calendar, IObject brahmsCalendar, IContext ctx) throws ExternalException
calendar
- the Java Calendar to be convertedbrahmsCalendar
- the Brahms Calendar to store the information into, null if a new one is to be
createdctx
- the IContext to be used to add Brahms object information
ExternalException
- if an error occurs during the conversion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |