Class ValueRequires

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

public class ValueRequires extends Object implements Validator
If this record is present, ensure that the required records are also present
  • Constructor Details

    • ValueRequires

      public ValueRequires(String value, Set<Key> recordNames)
  • 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