public class SetValidator extends Object implements IValidator
BAD_RULE, BAD_VALUE, PKG, PREFIX
Constructor and Description |
---|
SetValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
validate(String value,
String set)
Checks if the value is in the set.
|
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
validate
in interface IValidator
value
- Value to validate.set
- Set used by the validation, in the form of a String with
each elements separated by comma.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.