Class MapValidator

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

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

    • MapValidator

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

      public MapValidator(ParameterValidator elementValidator, boolean nullable)
      Constructs a new MapValidator
      Parameters:
      elementValidator - validator for map values
      nullable - true if the model node for the list can be null or ModelType.UNDEFINED
    • MapValidator

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