|
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 |
java.lang.Object
oracle.irm.engine.types.core.time.TimeRange
public class TimeRange
Time Range type. 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.
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 Direction enumeration. |
static class |
TimeRange.Interval Interval enumeration. |
Constructor Summary | |
---|---|
TimeRange() No argument constructor. |
|
TimeRange(Date begin, Date end) Constructor. |
Method Summary | |
---|---|
Date |
getBegin() Start of the time range. |
Date |
getEnd() End of the time range. |
void |
setBegin(Date value) Start of the time range. |
void |
setEnd(Date value) End of the time range. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeRange()
public TimeRange(Date begin, Date end)
Method Detail |
---|
public Date getBegin()
public void setBegin(Date value)
value
- the new value for the property.public Date getEnd()
public void setEnd(Date value)
value
- the new value for the property.
|
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 |