Package io.goobi.viewer.faces.validators
Class PIValidator
java.lang.Object
io.goobi.viewer.faces.validators.PIValidator
- All Implemented Interfaces:
EventListener
,javax.faces.validator.Validator<String>
- Direct Known Subclasses:
RelatedPIValidator
Syntax validator for passwords addresses.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final char[]
ConstantILLEGAL_CHARS
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value) static boolean
validatePi
(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(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value) throws javax.faces.validator.ValidatorException - Specified by:
validate
in interfacejavax.faces.validator.Validator<String>
- Throws:
javax.faces.validator.ValidatorException
-
validatePi
validatePi.
- Parameters:
pi
- aString
object.- Returns:
- a boolean.
-