Package org.opencms.i18n.tools
Enum CmsContainerPageCopier.CopyMode
- java.lang.Object
-
- java.lang.Enum<CmsContainerPageCopier.CopyMode>
-
- org.opencms.i18n.tools.CmsContainerPageCopier.CopyMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CmsContainerPageCopier.CopyMode>
- Enclosing class:
- CmsContainerPageCopier
public static enum CmsContainerPageCopier.CopyMode extends java.lang.Enum<CmsContainerPageCopier.CopyMode>
Enum representing the element copy mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description automatic
Choose between reuse / copy automatically depending on source / target locale and the configuration .reuse
Do not copy elements.smartCopy
Automatically determine when to copy elements.smartCopyAndChangeLocale
Like smartCopy, but also converts locales of copied elements.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CmsContainerPageCopier.CopyMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CmsContainerPageCopier.CopyMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
automatic
public static final CmsContainerPageCopier.CopyMode automatic
Choose between reuse / copy automatically depending on source / target locale and the configuration .
-
reuse
public static final CmsContainerPageCopier.CopyMode reuse
Do not copy elements.
-
smartCopy
public static final CmsContainerPageCopier.CopyMode smartCopy
Automatically determine when to copy elements.
-
smartCopyAndChangeLocale
public static final CmsContainerPageCopier.CopyMode smartCopyAndChangeLocale
Like smartCopy, but also converts locales of copied elements.
-
-
Method Detail
-
values
public static CmsContainerPageCopier.CopyMode[] 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 (CmsContainerPageCopier.CopyMode c : CmsContainerPageCopier.CopyMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CmsContainerPageCopier.CopyMode 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
-
-