|
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 |
public interface RelativeTimeSpan
A relative time span. A relative time span defines a start time and stop time that is relative to an absolute point in time.
Instances of Relative Time Span objects can be created using the following factory style method(s).
RelativeTimeSpan object = createRelativeTimeSpan
(
timeBase,
startTime,
stopTime);
RelativeTimeSpan object = createRelativeTimeSpan
(
referencePoint,
timeBase,
startTime,
stopTime);
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 Relative time bases. |
Nested classes/interfaces inherited from interface oracle.irm.engine.core.time.TimeSpan |
---|
TimeSpan.ReferencePoint |
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. |
Methods inherited from interface oracle.irm.engine.core.time.TimeSpan |
---|
getReferencePoint, getStartTime, getStopTime |
Method Detail |
---|
RelativeTimeSpan.TimeBase getTimeBase()
TimePeriod getStartTime()
TimePeriod getStopTime()
|
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 |