Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


oracle.irm.engine.types.core.time
Class TimeRange

java.lang.Object
  extended by oracle.irm.engine.types.core.time.TimeRange

All Implemented Interfaces:
Serializable

public class TimeRange
extends Object
implements Serializable

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.

XML Serialization

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>

See Also:
Serialized Form

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

TimeRange

public TimeRange()
No argument constructor.

TimeRange

public TimeRange(Date begin,
                 Date end)
Constructor.

Method Detail

getBegin

public Date getBegin()
Start of the time range.
Returns:
the value of the property.

setBegin

public void setBegin(Date value)
Start of the time range.
Parameters:
value - the new value for the property.

getEnd

public Date getEnd()
End of the time range.
Returns:
the value of the property.

setEnd

public void setEnd(Date value)
End of the time range.
Parameters:
value - the new value for the property.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


Copyright © 2011, Oracle. All rights reserved.