org.exolab.castor.types

Class TimePeriod

Implemented Interfaces:
java.io.Serializable
Known Direct Subclasses:
Century, 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.1.1.1 $
Author:
Arnaud Blandin
See Also:
RecurringDuration, Serialized Form

Constructor Summary

TimePeriod()
TimePeriod(String duration)
returns a TimePeriod with the duration facet set up

Method Summary

void
setFields(String str)
parse a string to set the fields of a TimePeriod
void
setPeriod(TimeDuration period)

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, equals, getDuration, getHour, getMilli, getMinute, getPeriod, getSeconds, getValues, getZoneHour, getZoneMinute, isGreater, isNegative, isUTC, isZoneNegative, setDuration, setDuration, setHour, setMinute, setNegative, setPeriod, setPeriod, setSecond, setUTC, setValues, setZone, setZoneNegative

Constructor Details

TimePeriod

public TimePeriod()

TimePeriod

public TimePeriod(String duration)
returns a TimePeriod with the duration facet set up
Parameters:
duration - the String value of the duration facet

Method Details

setFields

public void setFields(String str)
            throws 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
Overrides:
setPeriod in interface RecurringDurationBase

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com