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 AbsoluteTimeSpan

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

All Implemented Interfaces:
Serializable

public class AbsoluteTimeSpan
extends TimeSpan
implements Serializable

Absolute Time Span type. An absolute time span defines a period of time bounded by a start and stop time.

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>

See Also:
Serialized Form

Nested Class Summary

 

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

 

Constructor Summary
AbsoluteTimeSpan()
          No argument constructor.
AbsoluteTimeSpan(TimeSpan.ReferencePoint referencePoint, Date startTime, Date stopTime)
          Constructor.

 

Method Summary
 Date getStartTime()
          Start time for the time span.
 Date getStopTime()
          Stop time for the time span.
 void setStartTime(Date value)
          Start time for the time span.
 void setStopTime(Date value)
          Stop time for the time span.

 

Methods inherited from class oracle.irm.engine.types.core.time.TimeSpan
getReferencePoint, setReferencePoint

 

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

 

Constructor Detail

AbsoluteTimeSpan

public AbsoluteTimeSpan()
No argument constructor.

AbsoluteTimeSpan

public AbsoluteTimeSpan(TimeSpan.ReferencePoint referencePoint,
                        Date startTime,
                        Date stopTime)
Constructor.

Method Detail

getStartTime

public 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.
Returns:
the value of the property.

setStartTime

public void setStartTime(Date value)
Start time for the time span. For a time span that just has a stop time this property can be left un-set.
Parameters:
value - the new value for the property.

getStopTime

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

setStopTime

public void setStopTime(Date value)
Stop time for the time span. For an open ended time span this property can be left un-set.
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.