Class BytesValidator

    • Constructor Detail

      • 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