public class SetValidator extends Object
Constructor and Description |
---|
SetValidator() |
public SetValidator()
public boolean validate(String value, String set)
Example: validate("A", "A,B,C,D,F"); // returns true validate("408", "415,650,408,510"); // returns true validate("770", "415,650,408,510"); // returns false validate(408, "415,650,408,510"); // exception
value
- Value to validate.set
- Set used by the validation, in the form of a String with
each elements separated by comma.Copyright © 2010-2013, ForgeRock All Rights Reserved.