Class DefaultValue

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

public class DefaultValue extends Object implements Validator
I apply a default value to the record if it is not present
  • Constructor Details

    • DefaultValue

      public DefaultValue()
  • 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