|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.sib.wsn.AbsoluteOrRelativeTime
public class AbsoluteOrRelativeTime
This class represents the AbsoluteOrRelativeTime
type defined in the WS-Notification Base Notification schema.
It acts as a holder for either a Calendar
(xsd:dataTime)
or String
(xsd:duration). Only one of these time values
can be non null at any one time.
Constructor Summary | |
---|---|
AbsoluteOrRelativeTime(java.util.Calendar absoluteTime)
Constructor which takes an absolute time value. |
|
AbsoluteOrRelativeTime(java.lang.String relativeTime)
Constructor which takes a relative time value. |
Method Summary | |
---|---|
java.util.Calendar |
getAbsoluteTime()
|
java.lang.String |
getRelativeTime()
|
void |
setDateTime(java.util.Calendar absoluteTime)
Set the absolute time value. |
void |
setRelativeTime(java.lang.String relativeTime)
Set the relative time value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbsoluteOrRelativeTime(java.util.Calendar absoluteTime)
absoluteTime
- The absolute time value
java.lang.IllegalArgumentException
- Thrown if the argument is nullpublic AbsoluteOrRelativeTime(java.lang.String relativeTime)
relativeTime
- The relative time value.
java.lang.IllegalArgumentException
- Thrown if the argument is nullMethod Detail |
---|
public java.util.Calendar getAbsoluteTime()
public void setDateTime(java.util.Calendar absoluteTime)
absoluteTime
- The absolute time value.public java.lang.String getRelativeTime()
public void setRelativeTime(java.lang.String relativeTime)
relativeTime
- The relative time value. For the format of
the string see AbsoluteOrRelativeTime(String)
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |