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 TimeWindow

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

All Implemented Interfaces:
Serializable

public class TimeWindow
extends Object
implements Serializable

Time Window type.

XML Serialization

Time Window instances can be serialized as an XML document. This XML document can also be used to recreate a Time Window object. The following XML document shows an example Time Window in XML form.

<?xml version="1.0" encoding="UTF-8"?>
<core:TimeWindow xmlns:core="http://xmlns.oracle.com/irm/core">
    <day>MONDAY</day>
    <start>
        <hour>9</hour>
        <minute>30</minute>
    </start>
    <end>
        <hour>18</hour>
        <minute>0</minute>
    </end>
</core:TimeWindow>

See Also:
Serialized Form

Nested Class Summary
static class TimeWindow.DayOfWeek
          Day Of Week enumeration.

 

Constructor Summary
TimeWindow()
          No argument constructor.
TimeWindow(TimePoint start, TimePoint end, TimeWindow.DayOfWeek day)
          Constructor.

 

Method Summary
 TimeWindow.DayOfWeek getDay()
          Day of the week this time window applies.
 TimePoint getEnd()
          The end time for this time window.
 TimePoint getStart()
          The starting time for this time window.
 void setDay(TimeWindow.DayOfWeek value)
          Day of the week this time window applies.
 void setEnd(TimePoint value)
          The end time for this time window.
 void setStart(TimePoint value)
          The starting time for this time window.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

TimeWindow

public TimeWindow()
No argument constructor.

TimeWindow

public TimeWindow(TimePoint start,
                  TimePoint end,
                  TimeWindow.DayOfWeek day)
Constructor.

Method Detail

getStart

public TimePoint getStart()
The starting time for this time window. If the start time is not set, the time window starts at 00:00.
Returns:
the value of the property.

setStart

public void setStart(TimePoint value)
The starting time for this time window. If the start time is not set, the time window starts at 00:00.
Parameters:
value - the new value for the property.

getEnd

public TimePoint getEnd()
The end time for this time window. If the end time is not set, the time window ends at 23:59.
Returns:
the value of the property.

setEnd

public void setEnd(TimePoint value)
The end time for this time window. If the end time is not set, the time window ends at 23:59.
Parameters:
value - the new value for the property.

getDay

public TimeWindow.DayOfWeek getDay()
Day of the week this time window applies.
Returns:
the value of the property.

setDay

public void setDay(TimeWindow.DayOfWeek value)
Day of the week this time window applies.
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.