Class ListValueValidator

  • All Implemented Interfaces:
    ServiceAttributeValidator

    public class ListValueValidator
    extends Object
    implements ServiceAttributeValidator
    Validates list value in Agent Properties. e.g. com.sun.identity.agents.config.login.form[0]= List values should be Strings of the form: [0] = some value [1] = some value [some sequential index] = some value etc l.h.s is index value surrounded by brackets separator is mandatory "=" equals sign r.h.s is some string value, anything since this is not so fined grained to test values of any one specific property's value set. index value should be an integer >= 0 index values can not be duplicates index values collectively can contain missing mubers white space is allowed everywhere (except between digits of index value) blank or empty values are allowed as some props dont have any value to be specified Some examples that would be acceptable values: blank or empty set [0] = (note no value on r.h.s)
    • Constructor Detail

      • ListValueValidator

        public ListValueValidator()
    • Method Detail

      • validate

        public boolean validate​(Set<String> values)
        Returns true if values are of list typed.
        Specified by:
        validate in interface ServiceAttributeValidator
        Parameters:
        values - the set of values to be validated
        Returns:
        true if values are of list format type.