public final class: GDuration
All Implemented Interfaces:
Represents an XML Schema-compatible duration.
A duration is made up of a number of years, months, days, hours,
minutes, seconds, and fractions of seconds. See the
XML Schema specification
section on xs:duration
for details on the rules for
comparing durations and
adding durations to dates.
Constructs an empty GDuration representing zero seconds.
public GDuration(CharSequence str)
Constructs a GDuration from a lexical
representation. The lexical space contains the
union of the lexical spaces of all the schema
date/time types (except for duration).
public GDuration(GDurationSpecification gDuration)
Constructs a GDuration from another GDurationSpecification.
public GDuration(int sign,
Constructs a GDuration with the specified sign,
year, month, day, hours, minutes, seconds, and optional
sign - +1 for a positive duration, -1 for a negative duration
java.lang.IllegalArgumentException - if the sign is not 1 or -1
|Method from org.apache.xmlbeans.GDuration Summary:|
add, clone, compareToGDuration, equals, getDay, getFraction, getHour, getMinute, getMonth, getSecond, getSign, getYear, hashCode, isImmutable, isValid, subtract, toString|
|Methods from java.lang.Object:|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait|