org.exolab.castor.types
Class TimePeriod
java.lang.Object
|
+--org.exolab.castor.types.RecurringDurationBase
|
+--org.exolab.castor.types.RecurringDuration
|
+--org.exolab.castor.types.TimePeriod
- Direct Known Subclasses:
- Century, Date, Month, Year
- public class TimePeriod
- extends RecurringDuration
Describe an XML schema TimePeriod.
The time period type is derived from recurringDuration by setting up the facet:
- Version:
- $Revision: 1.5 $
- Author:
- Arnaud Blandin
- See Also:
RecurringDuration
, Serialized Form
Constructor Summary |
TimePeriod()
|
TimePeriod(java.lang.String duration)
returns a TimePeriod with the duration facet set up |
Method Summary |
void |
setFields(java.lang.String str)
parse a string to set the fields of a TimePeriod |
void |
setPeriod(TimeDuration period)
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,
parseRecurring,
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 |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
TimePeriod
public TimePeriod()
TimePeriod
public TimePeriod(java.lang.String duration)
- returns a TimePeriod with the duration facet set up
- Parameters:
duration
- the String value of the duration facet
setFields
public void setFields(java.lang.String str)
throws java.text.ParseException
- parse a string to set the fields of a TimePeriod
- Parameters:
str
- the string to parse
setPeriod
public void setPeriod(TimeDuration period)
throws OperationNotSupportedException
- Description copied from class: RecurringDurationBase
- set the period facet for this recurringDuration
- Overrides:
- setPeriod in class RecurringDurationBase
- Tags copied from class: RecurringDurationBase
- Parameters:
period
- the period to set- Throws:
- OperationNotSupportedException - this exception is thrown when
changing the value of the period facet is not allowed
Intalio Inc. (C) 1999-2001. All rights reserved http://www.intalio.com