Skip navigation links

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

E12907-03


oracle.irm.engine.core.time
Interface TimePoint


public interface TimePoint

A point in time during the day.

Creation

Instances of Time Point objects can be created using the following factory style method(s).

TimePoint object = createTimePoint(
    hour,
    minute);

XML Serialization

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

<?xml version="1.0" encoding="UTF-8"?>
<core:TimePoint xmlns:core="http://xmlns.oracle.com/irm/core">
    <hour>12</hour>
    <minute>30</minute>
</core:TimePoint>


Method Summary
 short getHour()
          Hour of the day.
 short getMinute()
          Minute in the hour.
 short toMinutes()
          Total number of minutes for the time point.

 

Method Detail

getHour

short getHour()
Hour of the day. Valid values are 0-24.
Returns:
the value of the property.

getMinute

short getMinute()
Minute in the hour. Valid values are 0-59.
Returns:
the value of the property.

toMinutes

short toMinutes()
Total number of minutes for the time point. This includes the hours and minutes.
Returns:
the total number of minutes.

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.