|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.types.Duration
Implementation of the XML Schema type duration
Constructor Summary | |
Duration()
Default no-arg constructor |
|
Duration(boolean negative,
int aYears,
int aMonths,
int aDays,
int aHours,
int aMinutes,
double aSeconds)
|
|
Duration(String duration)
This method takes a string that represents an xsd:duration and parses it. |
Method Summary | |
boolean |
equals(Object object)
This currently does a verbatim check on the object. |
int |
getDays()
|
int |
getHours()
|
int |
getMinutes()
|
int |
getMonths()
|
double |
getSeconds()
|
int |
getYears()
|
int |
hashCode()
|
boolean |
isNegative()
|
void |
parseDate(String date)
This method parses the date portion of a duration. |
void |
parseTime(String time)
This method parses the time portion of a duration. |
void |
setDays(int days)
|
void |
setHours(int hours)
|
void |
setMinutes(int minutes)
|
void |
setMonths(int months)
|
void |
setNegative(boolean negative)
|
void |
setSeconds(int seconds)
|
void |
setYears(int years)
|
String |
toString()
This returns the xml representation of an xsd:duration object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Duration()
public Duration(boolean negative, int aYears, int aMonths, int aDays, int aHours, int aMinutes, double aSeconds)
negative
- aYears
- aMonths
- aDays
- aHours
- aMinutes
- aSeconds
- public Duration(String duration) throws IllegalArgumentException
duration
-
SchemaException
- if the string doesn't parse correctly.
IllegalArgumentException
Method Detail |
public void parseTime(String time)
time
- public void parseDate(String date)
date
- public boolean isNegative()
public int getYears()
public int getMonths()
public int getDays()
public int getHours()
public int getMinutes()
public double getSeconds()
public void setNegative(boolean negative)
negative
- public void setYears(int years)
years
- public void setMonths(int months)
months
- public void setDays(int days)
days
- public void setHours(int hours)
hours
- public void setMinutes(int minutes)
minutes
- public void setSeconds(int seconds)
seconds
- public String toString()
public boolean equals(Object object)
object
- public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |