java.io.Serializablepublic class Year extends TimePeriod
Describe an XML schema Year.
The date type is derived from time period by setting up the facet :
Note: This datatype is not included in any recommendation. It was introduced in http://www.w3.org/TR/2000/WD-xmlschema-2-20000407/ and was last in http://www.w3.org/TR/2000/CR-xmlschema-2-20001024/ and was removed by http://www.w3.org/TR/2001/PR-xmlschema-2-20010316/. It was not in the final approved recommendation: http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/
| Constructor | Description |
|---|---|
Year() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.Object |
parse(java.lang.String str) |
Deprecated.
parse a String and convert it into a java.lang.Object
|
static Year |
parseYear(java.lang.String str) |
Deprecated.
parse a String and convert it into a Year
|
void |
setDay(short day) |
Deprecated.
set the Day Field
|
void |
setHour(short hour) |
Deprecated.
set the hour field for this recurringDuration
|
void |
setMinute(short minute) |
Deprecated.
set the minute field for this recurringDuration
|
void |
setMonth(short month) |
Deprecated.
set the Month Field
|
void |
setSecond(short second,
short millsecond) |
Deprecated.
set the second field for this recurringDuration
|
void |
setZone(short hour,
short minute) |
Deprecated.
set the time zone fields for this recurringDuration
|
void |
setZoneNegative() |
Deprecated.
set the time zone negative field to true
|
java.util.Date |
toDate() |
Deprecated.
convert this recurringDuration into a local Date
|
java.lang.String |
toString() |
Deprecated.
convert this Year to a string
The format is defined by W3C XML Schema draft and ISO8601
i.e (+|-)CCYY
|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequal, equals, getCentury, getDay, getMonth, getValues, getYear, isGreater, isLeap, parseRecurringDuration, setCentury, setValues, setYearequal, getDuration, getHour, getMilli, getMinute, getPeriod, getSeconds, getZoneHour, getZoneMinute, isGreater, isNegative, isUTC, isZoneNegative, setDuration, setDuration, setNegative, setPeriod, setUTCsetFields, setPeriodpublic void setMonth(short month)
throws java.lang.UnsupportedOperationException
RecurringDurationsetMonth in class RecurringDurationmonth - the value to set up
Note 1java.lang.UnsupportedOperationExceptionpublic void setDay(short day)
throws java.lang.UnsupportedOperationException
RecurringDurationsetDay in class RecurringDurationday - the value to set up
Note a validation is done on the day fieldjava.lang.UnsupportedOperationExceptionpublic void setHour(short hour)
throws java.lang.UnsupportedOperationException
RecurringDurationBasesetHour in class RecurringDurationBasehour - the hour to setjava.lang.UnsupportedOperationException - this exception is thrown when changing the value of the hour
field is not allowedpublic void setMinute(short minute)
throws java.lang.UnsupportedOperationException
RecurringDurationBasesetMinute in class RecurringDurationBaseminute - the minute to setjava.lang.UnsupportedOperationException - this exception is thrown when changing the value of the
minute field is not allowedpublic void setSecond(short second,
short millsecond)
throws java.lang.UnsupportedOperationException
RecurringDurationBasesetSecond in class RecurringDurationBasesecond - the second to setmillsecond - the millisecond to setjava.lang.UnsupportedOperationException - this exception is thrown when changing the value of the
second field is not allowedpublic void setZone(short hour,
short minute)
throws java.lang.UnsupportedOperationException
RecurringDurationBasesetZone in class RecurringDurationBasehour - the time zone hour to setminute - the time zone minute to setjava.lang.UnsupportedOperationException - this exception is thrown when changing the value of the time
zone fields is not allowedpublic void setZoneNegative()
throws java.lang.UnsupportedOperationException
RecurringDurationBasesetZoneNegative in class RecurringDurationBasejava.lang.UnsupportedOperationException - this exception is thrown when changing the time zone fields
is not allowedpublic java.lang.String toString()
toString in class RecurringDurationpublic static java.lang.Object parse(java.lang.String str)
throws java.text.ParseException
str - the string to parsejava.text.ParseException - a parse exception is thrown if the string to parse
does not follow the rigth format (see the description
of this class)public static Year parseYear(java.lang.String str) throws java.text.ParseException
str - the string to parsejava.text.ParseException - a parse exception is thrown if the string to parse
does not follow the rigth format (see the description
of this class)public java.util.Date toDate()
throws java.text.ParseException
RecurringDurationNote : Be aware a the 'local' property of the date i.e toDate() will de the conversion between a UTC date and your computer date format. For instance if you have set up your computer time zone on the Pacific Day Time the conversion of 2000-10-20T00:00:00.000 into a java.util.Date will return Thu Oct 19 17:00:00 PDT 2000
toDate in class RecurringDurationjava.text.ParseExceptionIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com