|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.irm.engine.types.core.time.TimeSpan
oracle.irm.engine.types.core.time.RelativeTimeSpan
public class RelativeTimeSpan
Relative Time Span type. A relative time span defines a start time and stop time that is relative to an absolute point in time.
Relative Time Span instances can be serialized as an XML document. This XML document can also be used to recreate a Relative Time Span object. The following XML document shows an example Relative Time Span in XML form.
<?xml version="1.0" encoding="UTF-8"?>
<core:RelativeTimeSpan xmlns:core="http://xmlns.oracle.com/irm/core">
<referencePoint>CURRENT</referencePoint>
<timeBase>CLASSIFICATION</timeBase>
<startTime>
<amount>60</amount>
<units>SECONDS</units>
</startTime>
<stopTime>
<amount>120</amount>
<units>SECONDS</units>
</stopTime>
</core:RelativeTimeSpan>
Nested Class Summary | |
---|---|
static class |
RelativeTimeSpan.TimeBase Time Base enumeration. |
Nested classes/interfaces inherited from class oracle.irm.engine.types.core.time.TimeSpan |
---|
TimeSpan.ReferencePoint |
Constructor Summary | |
---|---|
RelativeTimeSpan() No argument constructor. |
|
RelativeTimeSpan(TimeSpan.ReferencePoint referencePoint, RelativeTimeSpan.TimeBase timeBase, TimePeriod startTime, TimePeriod stopTime) Constructor. |
Method Summary | |
---|---|
TimePeriod |
getStartTime() Start time for the time span. |
TimePeriod |
getStopTime() Stop time for the time span. |
RelativeTimeSpan.TimeBase |
getTimeBase() The relative time base. |
void |
setStartTime(TimePeriod value) Start time for the time span. |
void |
setStopTime(TimePeriod value) Stop time for the time span. |
void |
setTimeBase(RelativeTimeSpan.TimeBase value) The relative time base. |
Methods inherited from class oracle.irm.engine.types.core.time.TimeSpan |
---|
getReferencePoint, setReferencePoint |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RelativeTimeSpan()
public RelativeTimeSpan(TimeSpan.ReferencePoint referencePoint, RelativeTimeSpan.TimeBase timeBase, TimePeriod startTime, TimePeriod stopTime)
Method Detail |
---|
public RelativeTimeSpan.TimeBase getTimeBase()
public void setTimeBase(RelativeTimeSpan.TimeBase value)
value
- the new value for the property.public TimePeriod getStartTime()
public void setStartTime(TimePeriod value)
value
- the new value for the property.public TimePeriod getStopTime()
public void setStopTime(TimePeriod value)
value
- the new value for the property.
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |