Skip navigation links

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

E12907-02


oracle.irm.engine.core.time
Class RelativeTimeSpanFactory

java.lang.Object
  extended by oracle.irm.engine.core.time.RelativeTimeSpanFactory


public final class RelativeTimeSpanFactory
extends Object

Relative Time Span factory. This class provides methods for creating new instances of RelativeTimeSpan objects.


Method Summary
static RelativeTimeSpan createRelativeTimeSpan(RelativeTimeSpan.TimeBase timeBase, TimePeriod startTime, TimePeriod stopTime)
          Create an relative time span for a specified start and stop time.
static RelativeTimeSpan createRelativeTimeSpan(TimeSpan.ReferencePoint referencePoint, RelativeTimeSpan.TimeBase timeBase, TimePeriod startTime, TimePeriod stopTime)
          Create an relative time span for a specified start and stop time.

 

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

 

Method Detail

createRelativeTimeSpan

public static RelativeTimeSpan createRelativeTimeSpan(RelativeTimeSpan.TimeBase timeBase,
                                                      TimePeriod startTime,
                                                      TimePeriod stopTime)
Create an relative time span for a specified start and stop time.
Parameters:
timeBase - the base to compare the relative time comparison. e.g. relative to classification time.
startTime - the start time period. e.g. 30 minutes. This parameter is optional, it is valid to pass null.
stopTime - the stop time period. e.g. 20 hours. This parameter is optional, it is valid to pass null.
Returns:
a new Relative Time Span instance.

createRelativeTimeSpan

public static RelativeTimeSpan createRelativeTimeSpan(TimeSpan.ReferencePoint referencePoint,
                                                      RelativeTimeSpan.TimeBase timeBase,
                                                      TimePeriod startTime,
                                                      TimePeriod stopTime)
Create an relative time span for a specified start and stop time.
Parameters:
referencePoint - time reference point. e.g. compare against current time.
timeBase - the base to compare the relative time comparison. e.g. relative to classification time.
startTime - the start time period. e.g. 30 minutes. This parameter is optional, it is valid to pass null.
stopTime - the stop time period. e.g. 20 hours. This parameter is optional, it is valid to pass null.
Returns:
a new Relative Time Span instance.

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.