Enum DefaultValidationType

java.lang.Object
java.lang.Enum<DefaultValidationType>
com.broadleafcommerce.catalog.domain.product.option.type.DefaultValidationType
All Implemented Interfaces:
Serializable, Comparable<DefaultValidationType>

public enum DefaultValidationType extends Enum<DefaultValidationType>
Supported means of validating product options. This validation can run at various stages of the order process denoted by DefaultValidationStrategy
Author:
Nathan Moore (nathanmoore), Phillip Verheyden (phillipuniverse)
  • Enum Constant Details

    • REGEX

      public static final DefaultValidationType REGEX
      A regular express is run against the submitted option value
  • Method Details

    • values

      public static DefaultValidationType[] 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 DefaultValidationType 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