Package org.opencms.importexport
Enum CmsImportExportManager.TimestampMode
- java.lang.Object
-
- java.lang.Enum<CmsImportExportManager.TimestampMode>
-
- org.opencms.importexport.CmsImportExportManager.TimestampMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CmsImportExportManager.TimestampMode>
- Enclosing class:
- CmsImportExportManager
public static enum CmsImportExportManager.TimestampMode extends java.lang.Enum<CmsImportExportManager.TimestampMode>
Time modes to specify how time stamps should be handled.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FILETIME
Use the timestamp of the imported file.IMPORTTIME
Use the time of import for the timestamp.VFSTIME
The timestamp is explicitly given.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CmsImportExportManager.TimestampMode
getDefaultTimeStampMode()
Returns the default timestamp mode.static CmsImportExportManager.TimestampMode
getEnum(java.lang.String value)
More robust version ofEnum.valueOf(java.lang.Class, String)
that is case insensitive and defaults for all "unreadable" arguments to the default timestamp mode.static CmsImportExportManager.TimestampMode
valueOf(java.lang.String name)
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 Detail
-
FILETIME
public static final CmsImportExportManager.TimestampMode FILETIME
Use the timestamp of the imported file.
-
IMPORTTIME
public static final CmsImportExportManager.TimestampMode IMPORTTIME
Use the time of import for the timestamp.
-
VFSTIME
public static final CmsImportExportManager.TimestampMode VFSTIME
The timestamp is explicitly given.
-
-
Method Detail
-
values
public static CmsImportExportManager.TimestampMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CmsImportExportManager.TimestampMode c : CmsImportExportManager.TimestampMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CmsImportExportManager.TimestampMode valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getDefaultTimeStampMode
public static CmsImportExportManager.TimestampMode getDefaultTimeStampMode()
Returns the default timestamp mode.- Returns:
- the default timestamp mode
-
getEnum
public static CmsImportExportManager.TimestampMode getEnum(java.lang.String value)
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.
-
-