Object
Cloneable, Comparable, Serializable
This class provides the Java binding for the XML schema type recurringDuration as specified in Section 3.2.7 of XML Schema Part 2: Datatypes.
recurringDuration represents a specific period of time that recurs with a specific frequency, starting from a specific point in time. The value space of timeInstant is the space of timeDurations that recur with a specific timeDuration from a specific timeInstant.
Example: 2001-01-18T09:00:00.0005Z with a duration
P1M and period P2D.
Values of th facets duration and
period must be specified while creating an instance of
RecurringDuration. Otherwise, this class uses defaults of "P0Y" for
both duration and period.
Object
RecurringDuration
Cloneable, Comparable, Serializable
Constructor Summary |
|
|
Method Summary |
public |
|
public int |
|
public int | |
public static |
|
public static |
|
public static |
|
public |
|
public |
|
public |
|
public void |
|
public void |
|
public void |
|
public |
|
Methods from class java.lang. |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods from interface java.lang. |
compareTo |
Constructor Detail |
protected RecurringDuration()
protected RecurringDuration(TimeInstantinstant,TimeDurationduration,TimeDurationperiod)
Constructs a new RecurringDuration instance with the specified duration and period and at the specified point in time.
Method Detail |
public Object clone()
Retuns a copy of this RecurringDuration.
Object.clone()
public int compareTo(RecurringDuration anotherRecurringDuration)
Compares this RecurringDuration with another RecurringDuration.
public int compareTo(Object anotherObject)
Compares this RecurringDuration with another object. If the other object is a RecurringDuration, this method behaves like compareTo(RecurringDuration). Otherwise, it throws a ClassCastException.
public staticReturns a RecurringDuration instance at the specified point in time with a duration of "P0Y" and period of "P0Y".RecurringDurationcreateRecurringDuration(Stringinstant)
throwsParseException
ParseException
public staticRecurringDurationcreateRecurringDuration(Stringinstant,Stringduration,Stringperiod)
throwsParseException
Returns a RecurringDuration instance at the specified point in time with the given duration and period.
ParseException
public staticRecurringDurationcreateRecurringDuration(TimeInstantinstant,TimeDurationduration,TimeDurationperiod)
throwsParseException
Returns a RecurringDuration instance at the specified point in time with the given duration and period.
ParseException
public TimeDuration getDuration()
Returns the duration
public TimeInstant getInstant()
Returns the point in time
public TimeDuration getPeriod()
Returns the period
public void setDuration(TimeDuration duration)
Sets the duration
public void setInstant(TimeInstant instant)
Sets the point in time
public void setPeriod(TimeDuration period)
Sets the period
public String toString()
Returns a XML schema compliant recurringDuration string expressed as the instant of this Recurringduration.
Object.toString()