Package org.opencms.importexport
Enum CmsImportExportManager.TimestampMode
java.lang.Object
java.lang.Enum<CmsImportExportManager.TimestampMode>
org.opencms.importexport.CmsImportExportManager.TimestampMode
- All Implemented Interfaces:
Serializable
,Comparable<CmsImportExportManager.TimestampMode>
,java.lang.constant.Constable
- Enclosing class:
- CmsImportExportManager
public static enum CmsImportExportManager.TimestampMode
extends Enum<CmsImportExportManager.TimestampMode>
Time modes to specify how time stamps should be handled.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUse the timestamp of the imported file.Use the time of import for the timestamp.The timestamp is explicitly given. -
Method Summary
Modifier and TypeMethodDescriptionReturns the default timestamp mode.More robust version ofEnum.valueOf(java.lang.Class, String)
that is case insensitive and defaults for all "unreadable" arguments to the default timestamp mode.Returns the enum constant of this type with the specified name.static CmsImportExportManager.TimestampMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FILETIME
Use the timestamp of the imported file. -
IMPORTTIME
Use the time of import for the timestamp. -
VFSTIME
The timestamp is explicitly given.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefaultTimeStampMode
Returns the default timestamp mode.- Returns:
- the default timestamp mode
-
getEnum
More robust version ofEnum.valueOf(java.lang.Class, String)
that is case insensitive and defaults for all "unreadable" arguments to the default timestamp mode.- Parameters:
value
- the TimeMode value as String- Returns:
value
as TimeMode object, or the default time mode, ifvalue
can't be converted to a TimeMode object.
-