Class ListValidator

java.lang.Object
org.jboss.as.controller.operations.validation.ModelTypeValidator
org.jboss.as.controller.operations.validation.ListValidator
All Implemented Interfaces:
MinMaxValidator, ParameterValidator

public class ListValidator extends ModelTypeValidator implements ParameterValidator, MinMaxValidator
Validates parameters of type ModelType.LIST.
Author:
Brian Stansberry (c) 2011 Red Hat Inc.
  • Constructor Details

    • ListValidator

      public ListValidator(ParameterValidator elementValidator)
      Constructs a new ListValidator
      Parameters:
      elementValidator - validator for list elements
    • ListValidator

      public ListValidator(ParameterValidator elementValidator, boolean nullable)
      Parameters:
      elementValidator - validator for list elements
      nullable - true if the model node for the list can be null or ModelType.UNDEFINED
    • ListValidator

      public ListValidator(ParameterValidator elementValidator, boolean nullable, boolean allowDuplicates)
      Parameters:
      elementValidator - validator for list elements
      nullable - true if the model node for the list can be null or ModelType.UNDEFINED
    • ListValidator

      public ListValidator(ParameterValidator elementValidator, boolean nullable, int minSize, int maxSize)
      Parameters:
      elementValidator - validator for list elements
      nullable - true if the model node for the list can be null or ModelType.UNDEFINED
      minSize - minimum number of elements in the list
      maxSize - maximum number of elements in the list
    • ListValidator

      public ListValidator(ParameterValidator elementValidator, boolean nullable, int minSize, int maxSize, boolean allowDuplicates)
      Parameters:
      elementValidator - validator for list elements
      nullable - true if the model node for the list can be null or ModelType.UNDEFINED
      minSize - minimum number of elements in the list
      maxSize - maximum number of elements in the list
      allowDuplicates - validate duplicates in list or not
  • Method Details