Enum ComponentInstanceParameterName
- java.lang.Object
-
- java.lang.Enum<ComponentInstanceParameterName>
-
- org.silverpeas.core.admin.component.constant.ComponentInstanceParameterName
-
- All Implemented Interfaces:
Serializable
,Comparable<ComponentInstanceParameterName>
public enum ComponentInstanceParameterName extends Enum<ComponentInstanceParameterName>
Centralization of common parameter names of component instances. User: Yohann Chastagnier Date: 13/12/12
-
-
Enum Constant Summary
Enum Constants Enum Constant Description authorizedFileExtension
forbiddenFileExtension
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentInstanceParameterName
from(String componentParameterName)
Gets the emnum instance (case insensitive)String
getDefaultValue()
Gets the default value.static ComponentInstanceParameterName
valueOf(String name)
Returns the enum constant of this type with the specified name.static ComponentInstanceParameterName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
authorizedFileExtension
public static final ComponentInstanceParameterName authorizedFileExtension
-
forbiddenFileExtension
public static final ComponentInstanceParameterName forbiddenFileExtension
-
-
Method Detail
-
values
public static ComponentInstanceParameterName[] 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 (ComponentInstanceParameterName c : ComponentInstanceParameterName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ComponentInstanceParameterName valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefaultValue
public String getDefaultValue()
Gets the default value.- Returns:
-
from
public static ComponentInstanceParameterName from(String componentParameterName)
Gets the emnum instance (case insensitive)- Parameters:
componentParameterName
-- Returns:
-
-