Class MapValueValidator
- java.lang.Object
-
- com.sun.identity.common.configuration.MapValueValidator
-
- All Implemented Interfaces:
ServiceAttributeValidator
public class MapValueValidator extends Object implements ServiceAttributeValidator
Validates map value properties in Agent Properties. e.g.com.sun.identity.agents.config.response.attribute.mapping[]=
Map values should be Strings of the form: [somekey] = somevalue etc l.h.s is key 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. r.h.s can be empty or just whitespace l.h.s key value can NOT be empty l.h.s key values can not be duplicates white space is allowed everywhere blank or empty values are allowed as some props dont have any value to be specified Some strange examples that would be acceptable values: blank or empty set [a_key_but_no_value]= (note no value on r.h.s) []= (a common default value) [ ] = (variation on default value) [key_and_or_value_contains_=_sign] == (equal sign is valid data) Note: brackets are not allowed as part of key or value data exact duplicate keys not allowed
-
-
Constructor Summary
Constructors Constructor Description MapValueValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
validate(Set<String> values)
Returnstrue
if values are of map type format.
-
-
-
Method Detail
-
validate
public boolean validate(Set<String> values)
Returnstrue
if values are of map type format.- Specified by:
validate
in interfaceServiceAttributeValidator
- Parameters:
values
- contains the set of values to be validated- Returns:
true
if values are of map type format.
-
-