Class ValueOneOf

java.lang.Object
ortus.boxlang.runtime.validation.dynamic.ValueOneOf
All Implemented Interfaces:
Validator

public class ValueOneOf extends Object implements Validator
If this record is present, ensure it is one of the valid string values (case insensitive)
  • Constructor Details

    • ValueOneOf

      public ValueOneOf(Set<String> validValues)
  • Method Details

    • validate

      public void validate(IBoxContext context, Key caller, Validatable record, IStruct records)
      Description copied from interface: Validator
      Validate a record instance.
      Specified by:
      validate in interface Validator
      Parameters:
      context - The current Box context
      caller - The component being validated
      record - The specific record being validated
      records - All the records being validated