|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.irm.engine.types.core.time.TimePeriod
public class TimePeriod
Time Period type. A time period stores a period of time as a numeric value and the time units - years, days, hours, minutes or seconds. A time period can have a positive or negative value - indicating the direction of the time period. A negative time period amount would mean that the time period is in the past, a positive time period would mean the time period is in the future.
Time Period instances can be serialized as an XML document. This XML document can also be used to recreate a Time Period object. The following XML document shows an example Time Period in XML form.
<?xml version="1.0" encoding="UTF-8"?>
<core:TimePeriod xmlns:core="http://xmlns.oracle.com/irm/core">
<amount>30</amount>
<units>MINUTES</units>
</core:TimePeriod>
Nested Class Summary | |
---|---|
static class |
TimePeriod.Units Units enumeration. |
Constructor Summary | |
---|---|
TimePeriod() No argument constructor. |
|
TimePeriod(int amount, TimePeriod.Units units) Constructor. |
Method Summary | |
---|---|
int |
getAmount() The time period amount. |
TimePeriod.Units |
getUnits() Time units. |
void |
setAmount(int value) The time period amount. |
void |
setUnits(TimePeriod.Units value) Time units. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimePeriod()
public TimePeriod(int amount, TimePeriod.Units units)
Method Detail |
---|
public int getAmount()
public void setAmount(int value)
value
- the new value for the property.public TimePeriod.Units getUnits()
public void setUnits(TimePeriod.Units value)
value
- the new value for the property.
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |