Enum SecureOption

java.lang.Object
java.lang.Enum<SecureOption>
org.apache.tapestry5.corelib.data.SecureOption
All Implemented Interfaces:
Serializable, Comparable<SecureOption>, java.lang.constant.Constable

public enum SecureOption extends Enum<SecureOption>
Possible values of the "secure" parameter for components that use a SelectModel (such as Select), to control whether the submitted value must be one of the values in the SelectModel.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Always check that the submitted value is found in the SelectModel (and record a validation error if the SelectModel is not provided (null).
    The default: check that the submitted value is found in the SelectModel, unless the SelectModel is not provided (null) at the time of submission.
    Never check that submitted value is found in the SelectModel.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    static SecureOption[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ALWAYS

      public static final SecureOption ALWAYS
      Always check that the submitted value is found in the SelectModel (and record a validation error if the SelectModel is not provided (null).
    • NEVER

      public static final SecureOption NEVER
      Never check that submitted value is found in the SelectModel. It is left to the user of the component to validate the submitted value.
    • AUTO

      public static final SecureOption AUTO
      The default: check that the submitted value is found in the SelectModel, unless the SelectModel is not provided (null) at the time of submission. Since SelectModels are automatically provided for enums but not custom classes, this is the most useful option in cases where you don't want to persist a custom SelectModel across a form submission or recreate it when the form is submitted).
  • Method Details

    • values

      public static SecureOption[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SecureOption 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 name
      NullPointerException - if the argument is null