Skip navigation links

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

E12907-02


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

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

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbsoluteTimeSpan, RelativeTimeSpan

public abstract class TimeSpan
extends Object
implements Serializable

Time Span type. A time span can have an optional start and stop time and a flexible time reference point.

XML Serialization

Time Span instances can be serialized as an XML document. This XML document can also be used to recreate a Time Span object. The following XML document shows an example 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>

See Also:
Serialized Form

Nested Class Summary
static class TimeSpan.ReferencePoint
          Reference Point enumeration.

 

Constructor Summary
TimeSpan()
          No argument constructor.
TimeSpan(TimeSpan.ReferencePoint referencePoint)
          Constructor.

 

Method Summary
 TimeSpan.ReferencePoint getReferencePoint()
          The reference point for a time span.
 void setReferencePoint(TimeSpan.ReferencePoint value)
          The reference point for a time span.

 

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

 

Constructor Detail

TimeSpan

public TimeSpan()
No argument constructor.

TimeSpan

public TimeSpan(TimeSpan.ReferencePoint referencePoint)
Constructor.

Method Detail

getReferencePoint

public TimeSpan.ReferencePoint getReferencePoint()
The reference point for a time span.
Returns:
the value of the property.

setReferencePoint

public void setReferencePoint(TimeSpan.ReferencePoint value)
The reference point for a time span.
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-02


Copyright © 2010, Oracle. All rights reserved.