public class TimePeriod extends RecurringDuration
Describe an XML schema TimePeriod.
The time period type is derived from recurringDuration by setting up the facet:
RecurringDuration,
Serialized Form| Constructor and Description |
|---|
TimePeriod() |
TimePeriod(java.lang.String duration)
returns a TimePeriod with the duration facet set up
|
| Modifier and Type | Method and Description |
|---|---|
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
|
equal, equals, getCentury, getDay, getMonth, getValues, getYear, isGreater, isLeap, parse, parseRecurringDuration, setCentury, setDay, setMonth, setValues, setYear, toDate, toStringequal, getDuration, getHour, getMilli, getMinute, getPeriod, getSeconds, getZoneHour, getZoneMinute, isGreater, isNegative, isUTC, isZoneNegative, setDuration, setDuration, setHour, setMinute, setNegative, setPeriod, setSecond, setUTC, setZone, setZoneNegativepublic TimePeriod()
public TimePeriod(java.lang.String duration)
duration - the String value of the duration facetpublic void setFields(java.lang.String str)
throws java.text.ParseException
str - the string to parsejava.text.ParseExceptionpublic void setPeriod(TimeDuration period) throws OperationNotSupportedException
RecurringDurationBasesetPeriod in class RecurringDurationBaseperiod - the period to setOperationNotSupportedException - this exception is thrown when
changing the value of the period facet is not allowedIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com