|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.mlfc.xforms.data.Duration
This class contains a duration object.
| Field Summary | |
static java.lang.String |
du
|
| Constructor Summary | |
Duration(int[] xercesduration)
Added by JJK to support Xerces' stopgap internal representation as delivered through DTMSequence. |
|
Duration(int year,
int month,
int day,
int hour,
int minute,
double second)
|
|
Duration(java.lang.String duration)
The duration string must be a string in the format defined as the lexical representation of xs:duration in [3.2.6 duration] of [XML Schema Part 2: Datatypes]. |
|
| Method Summary | |
Duration |
addDTDuration(Duration du)
|
Duration |
addYMDuration(Duration d)
|
Duration |
divideDTDuration(double dec)
|
Duration |
divideYMDuration(double dec)
|
static Duration |
DTDuration(java.lang.String duration)
|
static Duration |
DTDurationFromSecs(double secs)
The duration function returns the duration specified in the duration string given as the argument.. |
boolean |
DTEqual(Duration du)
The duration function returns the duration specified in the duration string given as the argument.. |
boolean |
DTGreaterThan(Duration du)
The duration function returns the duration specified in the duration string given as the argument.. |
boolean |
DTGreaterThanOrEqual(Duration du)
The duration function returns the duration specified in the duration string given as the argument.. |
boolean |
DTLessThan(Duration du)
The duration function returns the duration specified in the duration string given as the argument.. |
boolean |
DTLessThanOrEqual(Duration du)
The duration function returns the duration specified in the duration string given as the argument.. |
static Duration |
duration(Duration du)
The duration function returns the duration specified in the duration string given as the argument.. |
boolean |
equals(Duration du)
The duration function returns the duration specified in the duration string given as the argument.. |
int |
getDays()
|
int |
getHours()
|
int |
getMinutes()
|
int |
getMonths()
|
double |
getSeconds()
|
boolean |
getSigned()
|
int |
getYears()
|
Duration |
multiplyDTDuration(double dec)
|
Duration |
multiplyYMDuration(double dec)
|
void |
setDays(int days)
|
void |
setHours(int hours)
|
void |
setMinutes(int mts)
|
void |
setMonths(int months)
|
void |
setSeconds(double secs)
|
void |
setYears(int years)
|
Duration |
subtractDTDuration(Duration du)
|
Duration |
subtractYMDuration(Duration d)
|
java.lang.String |
toString()
|
static Duration |
YMDuration(java.lang.String duration)
The duration function returns the duration specified in the duration string given as the argument.. |
static Duration |
YMDurationFromMonths(int months)
The duration function returns the duration specified in the duration string given as the argument.. |
boolean |
YMEqual(Duration du)
The duration function returns the duration specified in the duration string given as the argument.. |
boolean |
YMGreaterThan(Duration du)
The duration function returns the duration specified in the duration string given as the argument.. |
boolean |
YMGreaterThanOrEqual(Duration du)
The duration function returns the duration specified in the duration string given as the argument.. |
boolean |
YMLessThan(Duration du)
The duration function returns the duration specified in the duration string given as the argument.. |
boolean |
YMLessThanOrEqual(Duration du)
The duration function returns the duration specified in the duration string given as the argument.. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String du
| Constructor Detail |
public Duration(java.lang.String duration)
throws javax.xml.transform.TransformerException
public Duration(int[] xercesduration)
public Duration(int year,
int month,
int day,
int hour,
int minute,
double second)
| Method Detail |
public static Duration duration(Duration du)
public static Duration YMDuration(java.lang.String duration)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public static Duration YMDurationFromMonths(int months)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public static Duration DTDuration(java.lang.String duration)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public static Duration DTDurationFromSecs(double secs)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerExceptionpublic boolean DTEqual(Duration du)
public boolean DTLessThan(Duration du)
public boolean DTLessThanOrEqual(Duration du)
public boolean DTGreaterThan(Duration du)
public boolean DTGreaterThanOrEqual(Duration du)
public boolean YMEqual(Duration du)
public boolean YMLessThan(Duration du)
public boolean YMLessThanOrEqual(Duration du)
public boolean YMGreaterThan(Duration du)
public boolean YMGreaterThanOrEqual(Duration du)
public boolean equals(Duration du)
public Duration addYMDuration(Duration d)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public Duration subtractYMDuration(Duration d)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public Duration multiplyYMDuration(double dec)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public Duration divideYMDuration(double dec)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public Duration addDTDuration(Duration du)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public Duration subtractDTDuration(Duration du)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public Duration multiplyDTDuration(double dec)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public Duration divideDTDuration(double dec)
throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerExceptionpublic void setYears(int years)
public int getYears()
public void setMonths(int months)
public int getMonths()
public void setDays(int days)
public int getDays()
public void setHours(int hours)
public int getHours()
public void setSeconds(double secs)
public double getSeconds()
public void setMinutes(int mts)
public int getMinutes()
public boolean getSigned()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||