Enum CustomOperationShowForm
- java.lang.Object
-
- java.lang.Enum<CustomOperationShowForm>
-
- org.cyclos.model.system.operations.CustomOperationShowForm
-
- All Implemented Interfaces:
Serializable,Comparable<CustomOperationShowForm>,HasMessageKey
public enum CustomOperationShowForm extends Enum<CustomOperationShowForm> implements HasMessageKey
Determines in which parameters condition the form is shown
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYSAlways show the parameters formMISSING_ANYShow form only if any parameter (optional or required) is missingMISSING_REQUIREDShow form only if required parameters are missing
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()booleanshowForm(boolean hasMissingRequired, boolean hasMissingOptional)static CustomOperationShowFormvalueOf(String name)Returns the enum constant of this type with the specified name.static CustomOperationShowForm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MISSING_REQUIRED
public static final CustomOperationShowForm MISSING_REQUIRED
Show form only if required parameters are missing
-
MISSING_ANY
public static final CustomOperationShowForm MISSING_ANY
Show form only if any parameter (optional or required) is missing
-
ALWAYS
public static final CustomOperationShowForm ALWAYS
Always show the parameters form
-
-
Method Detail
-
values
public static CustomOperationShowForm[] 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 (CustomOperationShowForm c : CustomOperationShowForm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CustomOperationShowForm 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
showForm
public boolean showForm(boolean hasMissingRequired, boolean hasMissingOptional)
-
-