Class ListValueValidator
- java.lang.Object
-
- com.sun.identity.common.configuration.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 Summary
Constructors Constructor Description ListValueValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanvalidate(Set<String> values)Returnstrueif values are of list typed.
-
-
-
Method Detail
-
validate
public boolean validate(Set<String> values)
Returnstrueif values are of list typed.- Specified by:
validatein interfaceServiceAttributeValidator- Parameters:
values- the set of values to be validated- Returns:
trueif values are of list format type.
-
-