Class TimePeriod
java.lang.Object
org.exolab.castor.types.RecurringDurationBase
org.exolab.castor.types.RecurringDuration
org.exolab.castor.types.TimePeriod
- All Implemented Interfaces:
Serializable
Deprecated.
since Castor 1.0.6 since this type is not in any recommendation.
Describe an XML schema TimePeriod.
The time period type is derived from recurringDuration by setting up the facet:
- period to "P0Y"
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
ConstructorsConstructorDescriptionDeprecated.TimePeriod(String duration) Deprecated.returns a TimePeriod with the duration facet set up -
Method Summary
Modifier 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, parse, parseRecurringDuration, setCentury, setDay, setMonth, setValues, setYear, toDate, toStringModifier 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 ObjectDeprecated.static RecurringDurationDeprecated.Parse a String and convert it into a recurringDuration.voidsetCentury(short century) Deprecated.set the century fieldvoidsetDay(short day) Deprecated.set the Day FieldvoidsetMonth(short month) Deprecated.set the Month FieldvoidsetValues(short[] values) Deprecated.set all the fields by reading the values in an arrayvoidsetYear(short year) Deprecated.set the Year field Note: 0000 is not allowedtoDate()Deprecated.convert this recurringDuration into a local DatetoString()Deprecated.Convert this recurringDuration to a stringMethods inherited from class RecurringDurationBase
equal, getDuration, getHour, getMilli, getMinute, getPeriod, getSeconds, getZoneHour, getZoneMinute, isGreater, isNegative, isUTC, isZoneNegative, setDuration, setDuration, setHour, setMinute, setNegative, setPeriod, setSecond, setUTC, setZone, setZoneNegativeModifier 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 recurringDurationvoidsetHour(short hour) Deprecated.set the hour field for this recurringDurationvoidsetMinute(short minute) Deprecated.set the minute field for this recurringDurationvoidDeprecated.set the negative field to truevoidDeprecated.set the period facet for this recurringDurationvoidsetSecond(short second, short millsecond) Deprecated.set the second field for this recurringDurationvoidsetUTC()Deprecated.set the UTC field to truevoidsetZone(short hour, short minute) Deprecated.set the time zone fields for this recurringDurationvoidDeprecated.set the time zone negative field to true
-
Constructor Details
-
TimePeriod
public TimePeriod()Deprecated. -
TimePeriod
Deprecated.returns a TimePeriod with the duration facet set up- Parameters:
duration- the String value of the duration facet
-
-
Method Details
-
setFields
Deprecated.parse a string to set the fields of a TimePeriod- Parameters:
str- the string to parse- Throws:
ParseException
-
setPeriod
Deprecated.Description copied from class:RecurringDurationBaseset the period facet for this recurringDuration- Overrides:
setPeriodin classRecurringDurationBase- Parameters:
period- the period to set- Throws:
UnsupportedOperationException
-