Package io.goobi.viewer.faces.validators
Class PIValidator
java.lang.Object
io.goobi.viewer.faces.validators.PIValidator
- All Implemented Interfaces:
Validator<String>,EventListener
- Direct Known Subclasses:
RelatedPIValidator
Syntax validator for passwords addresses.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final char[]ConstantILLEGAL_CHARS. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(FacesContext context, UIComponent component, String value) static booleanvalidatePi(String pi) validatePi.
-
Field Details
-
ILLEGAL_CHARS
protected static final char[] ILLEGAL_CHARSConstantILLEGAL_CHARS.
-
-
Constructor Details
-
PIValidator
public PIValidator()
-
-
Method Details
-
validate
public void validate(FacesContext context, UIComponent component, String value) throws ValidatorException - Specified by:
validatein interfaceValidator<String>- Throws:
ValidatorException
-
validatePi
validatePi.- Parameters:
pi- persistent identifier string to validate for syntax- Returns:
- true if the given persistent identifier is non-blank and contains only valid characters, false otherwise
-