Package org.exolab.castor.types
Class TimePeriod
- java.lang.Object
-
- org.exolab.castor.types.RecurringDurationBase
-
- org.exolab.castor.types.RecurringDuration
-
- org.exolab.castor.types.TimePeriod
-
- All Implemented Interfaces:
java.io.Serializable
public class TimePeriod extends RecurringDuration
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:
RecurringDuration
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimePeriod()
Deprecated.TimePeriod(java.lang.String duration)
Deprecated.returns a TimePeriod with the duration facet set up
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
setFields(java.lang.String str)
Deprecated.parse a string to set the fields of a TimePeriodvoid
setPeriod(TimeDuration period)
Deprecated.set the period facet for this recurringDuration-
Methods inherited from class org.exolab.castor.types.RecurringDuration
equal, equals, getCentury, getDay, getMonth, getValues, getYear, isGreater, isLeap, parse, parseRecurringDuration, setCentury, setDay, setMonth, setValues, setYear, toDate, toString
-
Methods inherited from class org.exolab.castor.types.RecurringDurationBase
equal, getDuration, getHour, getMilli, getMinute, getPeriod, getSeconds, getZoneHour, getZoneMinute, isGreater, isNegative, isUTC, isZoneNegative, setDuration, setDuration, setHour, setMinute, setNegative, setPeriod, setSecond, setUTC, setZone, setZoneNegative
-
-
-
-
Method Detail
-
setFields
public void setFields(java.lang.String str) throws java.text.ParseException
Deprecated.parse a string to set the fields of a TimePeriod- Parameters:
str
- the string to parse- Throws:
java.text.ParseException
-
setPeriod
public void setPeriod(TimeDuration period) throws java.lang.UnsupportedOperationException
Deprecated.Description copied from class:RecurringDurationBase
set the period facet for this recurringDuration- Overrides:
setPeriod
in classRecurringDurationBase
- Parameters:
period
- the period to set- Throws:
java.lang.UnsupportedOperationException
-
-