Enum CmsMessageBundleEditorTypes.BundleType
- java.lang.Object
-
- java.lang.Enum<CmsMessageBundleEditorTypes.BundleType>
-
- org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorTypes.BundleType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CmsMessageBundleEditorTypes.BundleType>
- Enclosing class:
- CmsMessageBundleEditorTypes
public static enum CmsMessageBundleEditorTypes.BundleType extends java.lang.Enum<CmsMessageBundleEditorTypes.BundleType>
Types of bundles editable by the Editor.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DESCRIPTOR
A bundle descriptor.PROPERTY
A bundle of type propertyvfsbundle.XML
A bundle of type xmlvfsbundle.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CmsMessageBundleEditorTypes.BundleType
toBundleType(java.lang.String value)
An adjusted version of what is typically Enum.valueOf().java.lang.String
toString()
static CmsMessageBundleEditorTypes.BundleType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CmsMessageBundleEditorTypes.BundleType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROPERTY
public static final CmsMessageBundleEditorTypes.BundleType PROPERTY
A bundle of type propertyvfsbundle.
-
XML
public static final CmsMessageBundleEditorTypes.BundleType XML
A bundle of type xmlvfsbundle.
-
DESCRIPTOR
public static final CmsMessageBundleEditorTypes.BundleType DESCRIPTOR
A bundle descriptor.
-
-
Method Detail
-
values
public static CmsMessageBundleEditorTypes.BundleType[] 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 (CmsMessageBundleEditorTypes.BundleType c : CmsMessageBundleEditorTypes.BundleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CmsMessageBundleEditorTypes.BundleType 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
-
toBundleType
public static CmsMessageBundleEditorTypes.BundleType toBundleType(java.lang.String value)
An adjusted version of what is typically Enum.valueOf().- Parameters:
value
- the resource type name that should be transformed into BundleType- Returns:
- The bundle type for the resource type name, or null, if the resource has no bundle type.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<CmsMessageBundleEditorTypes.BundleType>
- See Also:
Enum.toString()
-
-