|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TimeRange
An absolute time range. A TimeRange
specifies a range of time starting at the Begin
time and ending at the End
time. A time range can be also be created by specifying a time interval e.g. create a time range from starting now and ending in ten minutes. It is valid for the time range to go backwards. i.e. the begin time can be after the end time.
Instances of Time Range objects can be created using the following factory style method(s).
TimeRange object = createTimeRange
(
begin,
end);
TimeRange object = createTimeRange
(
date,
direction,
interval,
size);
Time Range instances can be serialized as an XML document. This XML document can also be used to recreate a Time Range object. The following XML document shows an example Time Range in XML form.
<?xml version="1.0" encoding="UTF-8"?>
<core:TimeRange xmlns:core="http://xmlns.oracle.com/irm/core">
<begin>2007-01-01T12:00:00.000+01:00</begin>
<end>2007-01-01T13:00:00.000+01:00</end>
</core:TimeRange>
Nested Class Summary | |
---|---|
static class |
TimeRange.Direction Time interval direction. |
static class |
TimeRange.Interval Time interval. |
Method Summary | |
---|---|
Date |
getBegin() Start of the time range. |
Date |
getEnd() End of the time range. |
Method Detail |
---|
Date getBegin()
Date getEnd()
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |