Skip navigation links

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

E12907-01


oracle.irm.engine.core.time
Interface AbsoluteTimeSpan

All Superinterfaces:
TimeSpan

public interface AbsoluteTimeSpan
extends TimeSpan

An absolute time span. An absolute time span defines a period of time bounded by a start and stop time.

Creation

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

AbsoluteTimeSpan object = createAbsoluteTimeSpan(
    startTime,
    stopTime);
AbsoluteTimeSpan object = createAbsoluteTimeSpan(
    referencePoint,
    startTime,
    stopTime);

XML Serialization

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

<?xml version="1.0" encoding="UTF-8"?>
<core:AbsoluteTimeSpan xmlns:core="http://xmlns.oracle.com/irm/core">
    <referencePoint>CURRENT</referencePoint>
    <startTime>2007-01-01T12:00:00.000+01:00</startTime>
    <stopTime>2007-01-01T13:00:00.000+01:00</stopTime>
</core:AbsoluteTimeSpan>


Nested Class Summary

 

Nested classes/interfaces inherited from interface oracle.irm.engine.core.time.TimeSpan
TimeSpan.ReferencePoint

 

Method Summary
 Date getStartTime()
          Start time for the time span.
 Date getStopTime()
          Stop time for the time span.

 

Methods inherited from interface oracle.irm.engine.core.time.TimeSpan
getReferencePoint, getStartTime, getStopTime

 

Method Detail

getStartTime

Date getStartTime()
Start time for the time span. For a time span that just has a stop time this property can be left un-set.

State

The date returned by this method can be safely altered without affecting the internal state of the object.
Returns:
the value of the property. This method can return null.

getStopTime

Date getStopTime()
Stop time for the time span. For an open ended time span this property can be left un-set.

State

The date returned by this method can be safely altered without affecting the internal state of the object.
Returns:
the value of the property. This method can return null.

Skip navigation links

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

E12907-01


Copyright © 2010, Oracle. All rights reserved.