Class BytesValidator

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

public class BytesValidator extends ModelTypeValidator implements MinMaxValidator
Validates that a parameter is a byte[] of an acceptable length.
Author:
Brian Stansberry (c) 2011 Red Hat Inc.
  • Constructor Details

    • BytesValidator

      public BytesValidator(int min, int max, boolean nullable)
      Creates a BytesValidator that allows potentially more than one type.
      Parameters:
      min - the minimum length of the byte[]
      max - the maximum length of the byte[]
      nullable - whether an undefined value is allowed
    • BytesValidator

      public BytesValidator(int min, int max, org.jboss.dmr.ModelType... otherValidTypes)
      Creates a BytesValidator
      Parameters:
      min - the minimum length of the byte[]
      max - the maximum length of the byte[]
      otherValidTypes - additional valid types (i.e one of those whose value can convert to a byte[].) May be null
  • Method Details