Class Century
- All Implemented Interfaces:
Serializable
The date type is derived from time period by setting up the facet:
- duration to "P100Y"
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/
- Version:
- $Revision: 7289 $
- Author:
- Arnaud Blandin
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectDeprecated.parse a String and convert it into a java.lang.Objectstatic CenturyparseCentury(String str) Deprecated.parse a String and convert it into a CenturyvoidsetDay(short day) Deprecated.set the Day FieldvoidsetHour(short hour) Deprecated.set the hour field for this recurringDurationvoidsetMinute(short minute) Deprecated.set the minute field for this recurringDurationvoidsetMonth(short month) Deprecated.set the Month FieldvoidsetSecond(short second, short millsecond) Deprecated.set the second field for this recurringDurationvoidsetYear(short year) Deprecated.//////////////////////// DISALLOWED METHODS ///////////////////////////voidsetZone(short hour, short minute) Deprecated.set the time zone fields for this recurringDurationvoidDeprecated.set the time zone negative field to truetoDate()Deprecated.convert this recurringDuration into a local DatetoString()Deprecated.convert this Year to a string The format is defined by W3C XML Schema draft and ISO8601 i.e (+|-)CCMethods inherited from class TimePeriod
setFields, setPeriodModifier and TypeMethodDescriptionvoidDeprecated.parse a string to set the fields of a TimePeriodvoidsetPeriod(TimeDuration period) Deprecated.set the period facet for this recurringDurationMethods inherited from class RecurringDuration
equal, equals, getCentury, getDay, getMonth, getValues, getYear, isGreater, isLeap, parseRecurringDuration, setCentury, setValuesModifier and TypeMethodDescriptionbooleanequal(RecurringDuration reccD) Deprecated.Returns true if the present instance of Recurring Duration is equal to the parameter.booleanDeprecated.Override the java.lang.equals methodshortDeprecated.shortgetDay()Deprecated.shortgetMonth()Deprecated.short[]Deprecated.returns an array of short with all the fields which describe a RecurringDurationshortgetYear()Deprecated.booleanisGreater(RecurringDuration reccD) Deprecated.Returns true if the present instance of RecurringDuration is greater than the parameterbooleanisLeap()Deprecated.return true if the year field represents a leap year A specific year is a leap year if it is either evenly divisible by 400 OR evenly divisible by 4 and not evenly divisible by 100static RecurringDurationDeprecated.Parse a String and convert it into a recurringDuration.voidsetCentury(short century) Deprecated.set the century fieldvoidsetValues(short[] values) Deprecated.set all the fields by reading the values in an arrayMethods inherited from class RecurringDurationBase
equal, getDuration, getHour, getMilli, getMinute, getPeriod, getSeconds, getZoneHour, getZoneMinute, isGreater, isNegative, isUTC, isZoneNegative, setDuration, setDuration, setNegative, setPeriod, setUTCModifier and TypeMethodDescriptionbooleanequal(RecurringDurationBase reccD) Deprecated.Returns true if the present instance of Recurring Duration Base is equal to the parameter.Deprecated.shortgetHour()Deprecated.shortgetMilli()Deprecated.shortDeprecated.Deprecated.shortDeprecated.shortDeprecated.shortDeprecated.booleanisGreater(RecurringDurationBase reccD) Deprecated.Returns true if the present instance of RecurringDurationBase is greater than the parameterbooleanDeprecated.booleanisUTC()Deprecated.return true if this recurring Duration type is UTC i.e if there is no time zone.booleanDeprecated.voidsetDuration(String duration) Deprecated.set the duration facet for this recurringDurationvoidsetDuration(TimeDuration duration) Deprecated.set the duration facet for this recurringDurationvoidDeprecated.set the negative field to truevoidDeprecated.set the period facet for this recurringDurationvoidsetUTC()Deprecated.set the UTC field to true
-
Constructor Details
-
Century
public Century()Deprecated.
-
-
Method Details
-
toString
Deprecated.convert this Year to a string The format is defined by W3C XML Schema draft and ISO8601 i.e (+|-)CC- Overrides:
toStringin classRecurringDuration- Returns:
- a string representing this Century
-
parse
Deprecated.parse a String and convert it into a java.lang.Object- Parameters:
str- the string to parse- Returns:
- the java.lang.Object represented by the string
- Throws:
ParseException- a parse exception is thrown if the string to parse does not follow the rigth format (see the description of this class)
-
parseCentury
Deprecated.parse a String and convert it into a Century- Parameters:
str- the string to parse- Returns:
- the Century represented by the string
- Throws:
ParseException- a parse exception is thrown if the string to parse does not follow the rigth format (see the description of this class)
-
toDate
Deprecated.Description copied from class:RecurringDurationconvert this recurringDuration into a local DateNote : 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
- Overrides:
toDatein classRecurringDuration- Returns:
- a local date representing this recurringDuration
- Throws:
ParseException
-
setYear
Deprecated.//////////////////////// DISALLOWED METHODS ///////////////////////////- Overrides:
setYearin classRecurringDuration- Parameters:
year- year to set up- Throws:
UnsupportedOperationException
-
setMonth
Deprecated.Description copied from class:RecurringDurationset the Month Field- Overrides:
setMonthin classRecurringDuration- Parameters:
month- the value to set up Note 1invalid input: '<'monthinvalid input: '<'12- Throws:
UnsupportedOperationException
-
setDay
Deprecated.Description copied from class:RecurringDurationset the Day Field- Overrides:
setDayin classRecurringDuration- Parameters:
day- the value to set up Note a validation is done on the day field- Throws:
UnsupportedOperationException
-
setHour
Deprecated.Description copied from class:RecurringDurationBaseset the hour field for this recurringDuration- Overrides:
setHourin classRecurringDurationBase- Parameters:
hour- the hour to set- Throws:
UnsupportedOperationException- this exception is thrown when changing the value of the hour field is not allowed
-
setMinute
Deprecated.Description copied from class:RecurringDurationBaseset the minute field for this recurringDuration- Overrides:
setMinutein classRecurringDurationBase- Parameters:
minute- the minute to set- Throws:
UnsupportedOperationException- this exception is thrown when changing the value of the minute field is not allowed
-
setSecond
Deprecated.Description copied from class:RecurringDurationBaseset the second field for this recurringDuration- Overrides:
setSecondin classRecurringDurationBase- Parameters:
second- the second to setmillsecond- the millisecond to set- Throws:
UnsupportedOperationException- this exception is thrown when changing the value of the second field is not allowed
-
setZone
Deprecated.Description copied from class:RecurringDurationBaseset the time zone fields for this recurringDuration- Overrides:
setZonein classRecurringDurationBase- Parameters:
hour- the time zone hour to setminute- the time zone minute to set- Throws:
UnsupportedOperationException- this exception is thrown when changing the value of the time zone fields is not allowed
-
setZoneNegative
Deprecated.Description copied from class:RecurringDurationBaseset the time zone negative field to true- Overrides:
setZoneNegativein classRecurringDurationBase- Throws:
UnsupportedOperationException- this exception is thrown when changing the time zone fields is not allowed
-