|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.castor.types.RecurringDurationBase | +--org.exolab.castor.types.RecurringDuration | +--org.exolab.castor.types.TimePeriod | +--org.exolab.castor.types.Date
Describe an XML schema Date The date type is derived from time period by setting up the facet :
Constructor Summary | |
Date()
|
|
Date(java.util.Date dateRef)
This constructor is used to convert a java.util.Date into a new org.exolab.castor.types.Date |
Method Summary | |
static java.lang.Object |
parse(java.lang.String str)
parse a String and convert it into an java.lang.Object |
static Date |
parseDate(java.lang.String str)
parse a String and convert it into a Date |
void |
setHour(short hour)
set the hour field for this recurringDuration |
void |
setMinute(short minute)
set the minute field for this recurringDuration |
void |
setSecond(short second,
short millsecond)
set the second field for this recurringDuration |
void |
setZone(short hour,
short minute)
set the time zone fields for this recurringDuration |
void |
setZoneNegative()
set the time zone negative field to true |
java.lang.String |
toString()
convert this Date to a string The format is defined by W3C XML Schema draft and ISO8601 i.e (+|-)CCYY-MM-DD |
Methods inherited from class org.exolab.castor.types.TimePeriod |
setFields,
setPeriod |
Methods inherited from class org.exolab.castor.types.RecurringDuration |
equal,
equals,
getCentury,
getDay,
getMonth,
getValues,
getYear,
isGreater,
isLeap,
parseRecurring,
setCentury,
setDay,
setMonth,
setValues,
setYear,
toDate |
Methods inherited from class org.exolab.castor.types.RecurringDurationBase |
equal,
getDuration,
getHour,
getMilli,
getMinute,
getPeriod,
getSeconds,
getZoneHour,
getZoneMinute,
isGreater,
isNegative,
isUTC,
isZoneNegative,
setDuration,
setDuration,
setNegative,
setPeriod,
setUTC |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Date()
public Date(java.util.Date dateRef)
Note : all the information concerning the time part of the java.util.Date is lost since a W3C Schema Date only represents CCYY-MM-YY
Method Detail |
public void setHour(short hour) throws OperationNotSupportedException
hour
- the hour to setpublic void setMinute(short minute) throws OperationNotSupportedException
minute
- the minute to setpublic void setSecond(short second, short millsecond) throws OperationNotSupportedException
second
- the second to setmillsecond
- the millisecond to setpublic void setZone(short hour, short minute) throws OperationNotSupportedException
hour
- the time zone hour to setminute
- the time zone minute to setpublic void setZoneNegative() throws OperationNotSupportedException
public java.lang.String toString()
public static java.lang.Object parse(java.lang.String str) throws java.text.ParseException
str
- the string to parsepublic static Date parseDate(java.lang.String str) throws java.text.ParseException
str
- the string to parse
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |