|
Novell exteNd Web Services SDK API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sssw.jbroker.web.xsd.Validator com.sssw.jbroker.web.xsd.Duration
A wrapper class that contains a duration
.
Please refer to the XML Schema
for the complete definition of this simple type.
Constructor Summary | |
Duration(String value)
Construct a duration with the specified value. |
Method Summary | |
boolean |
equals(Object other)
|
int |
getDays()
Get the days of this duration. |
int |
getHours()
Get the hours of this duration. |
int |
getMinutes()
Get the minutes of this duration. |
int |
getMonths()
Get the months of this duration. |
double |
getSeconds()
Get the seconds of this duration. |
String |
getValue()
Get the string value of this duration. |
int |
getYears()
Get the years of this duration. |
int |
hashCode()
|
boolean |
isNegative()
Check if duration is negative |
void |
setDays(int days)
Set the days of this duration. |
void |
setHours(int hours)
Set the hours of this duration. |
void |
setMinutes(int minutes)
Set the minutes of this duration. |
void |
setMonths(int months)
Set the months of this duration. |
void |
setNegative(boolean negative)
Set duration negative flag |
void |
setSeconds(double seconds)
Set the seconds of this duration. |
void |
setValue(String value)
Set the value of this duration. |
void |
setYears(int years)
Set the years of this duration. |
String |
toString()
Return string form of object |
static void |
validate(Object object)
Validate that a duration is a proper XML Schema duration . |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Duration(String value) throws IllegalArgumentException
value
- the value of the duration
IllegalArgumentException
- if the value can not be validated
as a duration.Method Detail |
public String getValue()
public int getYears()
public int getMonths()
public int getDays()
public int getHours()
public int getMinutes()
public double getSeconds()
public boolean isNegative()
public void setValue(String value) throws IllegalArgumentException
value
- the value of the duration
IllegalArgumentException
- if the value can not be validated
as a duration.public void setYears(int years)
years
- the years of the durationpublic void setMonths(int months)
months
- the months of the durationpublic void setDays(int days)
days
- the days of the durationpublic void setHours(int hours)
hours
- the hours of the durationpublic void setMinutes(int minutes)
minutes
- the minutes of the durationpublic void setSeconds(double seconds)
seconds
- the seconds of the durationpublic void setNegative(boolean negative)
negative
- boolean indicating if duration is negativepublic String toString()
public boolean equals(Object other)
public int hashCode()
public static void validate(Object object) throws IllegalArgumentException
duration
.
IllegalArgumentException
- if the value can not be validated
as a duration.
|
Novell exteNd Web Services SDK API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |