com.filenet.api.constants
Class DurationUnits
- java.lang.Object
-
- com.filenet.api.constants.DurationUnits
-
- All Implemented Interfaces:
- java.io.Serializable
public final class DurationUnits extends java.lang.Object implements java.io.SerializableProvides a set of constants for setting the RetentionPeriodUnits property. This property specifies the time unit in which the retention duration period (DefaultRetentionPeriod property of a class definition or RetentionDurationUpdate property of a retention update policy) is expressed.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static DurationUnitsDAYSSpecifies a retention period in days.static intDAYS_AS_INTAnintvalue associated with the DAYS instance of this class.static DurationUnitsHOURSSpecifies a retention period in hours.static intHOURS_AS_INTAnintvalue associated with the HOURS instance of this class.static DurationUnitsMINUTESSpecifies a retention period in minutes.static intMINUTES_AS_INTAnintvalue associated with the MINUTES instance of this class.static DurationUnitsMONTHSSpecifies a retention period in months.static intMONTHS_AS_INTAnintvalue associated with the MONTHS instance of this class.static DurationUnitsSECONDSSpecifies a retention period in seconds.static intSECONDS_AS_INTAnintvalue associated with the SECONDS instance of this class.static DurationUnitsWEEKSSpecifies a retention period in weeks.static intWEEKS_AS_INTAnintvalue associated with the WEEKS instance of this class.static DurationUnitsYEARSSpecifies a retention period in years.static intYEARS_AS_INTAnintvalue associated with the YEARS instance of this class.
-
Method Summary
Methods Modifier and Type Method and Description static DurationUnitsgetInstanceFromInt(int value)Returns an instance of this class using its associated integer value.intgetValue()Returns the internal integer value associated with a specific instance of this class.java.lang.StringtoString()Returns aStringrepresentation of this enumeration instance.
-
-
-
Field Detail
-
MINUTES_AS_INT
public static final int MINUTES_AS_INT
Anintvalue associated with the MINUTES instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
MINUTES
public static final DurationUnits MINUTES
Specifies a retention period in minutes.
-
DAYS_AS_INT
public static final int DAYS_AS_INT
Anintvalue associated with the DAYS instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
DAYS
public static final DurationUnits DAYS
Specifies a retention period in days.
-
SECONDS_AS_INT
public static final int SECONDS_AS_INT
Anintvalue associated with the SECONDS instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
SECONDS
public static final DurationUnits SECONDS
Specifies a retention period in seconds.
-
WEEKS_AS_INT
public static final int WEEKS_AS_INT
Anintvalue associated with the WEEKS instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
WEEKS
public static final DurationUnits WEEKS
Specifies a retention period in weeks.
-
YEARS_AS_INT
public static final int YEARS_AS_INT
Anintvalue associated with the YEARS instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
YEARS
public static final DurationUnits YEARS
Specifies a retention period in years.
-
MONTHS_AS_INT
public static final int MONTHS_AS_INT
Anintvalue associated with the MONTHS instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
MONTHS
public static final DurationUnits MONTHS
Specifies a retention period in months.
-
HOURS_AS_INT
public static final int HOURS_AS_INT
Anintvalue associated with the HOURS instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
HOURS
public static final DurationUnits HOURS
Specifies a retention period in hours.
-
-
Method Detail
-
getValue
public int getValue()
Returns the internal integer value associated with a specific instance of this class.- Returns:
- The enumeration instance's ordinal value.
- See Also:
getInstanceFromInt(int)
-
toString
public java.lang.String toString()
Returns aStringrepresentation of this enumeration instance.- Overrides:
toStringin classjava.lang.Object- Returns:
- The enumeration instance's description.
-
getInstanceFromInt
public static DurationUnits getInstanceFromInt(int value)
Returns an instance of this class using its associated integer value.- Parameters:
value- The integer value. (See the *_AS_INT fields.)- Returns:
- The enumeration instance with the given ordinal value.
- Throws:
EngineRuntimeException- If an enumeration instance with the given ordinal value does not exist.- See Also:
getValue()
-
-