Class OneOfValidator
java.lang.Object
com.webmethods.caf.faces.validator.BaseValidator
com.webmethods.caf.faces.validator.OneOfValidator
- All Implemented Interfaces:
EventListener
,StateHolder
,Validator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
protected String
static final String
static final String
The standard converter id for this converter.Fields inherited from class com.webmethods.caf.faces.validator.BaseValidator
BAD_PARAMETER_LONG_ID, BAD_PARAMETER_SHORT_ID, BAD_STRING_LONG_ID, BAD_STRING_SHORT_ID, BAD_TYPE_LONG_ID, BAD_TYPE_SHORT_ID, EMPTY_MESSAGE_ID, m_bShowCAFErrorMsg, m_bTransient, m_clientLocale, m_CustomMessage, MIN_MAX_MESSAGE_ID, NULL_PATTERN_MESSAGE_ID, OVER_MAX_MESSAGE_ID, UNDER_MIN_MESSAGE_ID
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
restoreState
(FacesContext context, Object state) saveState
(FacesContext context) void
setPattern
(String string) void
validate
(FacesContext context, UIComponent component, Object value) Methods inherited from class com.webmethods.caf.faces.validator.BaseValidator
getClientLocale, getCustomErrorMsg, getRegionAsString, getshowCAFErrorMsg, isStringObj, isTransient, isValue, setCustomErrorMsg, setRegion, setshowCAFErrorMsg, setTransient
-
Field Details
-
VALIDATOR_ID
The standard converter id for this converter.
- See Also:
-
INVALID_SEARCH_MESSAGE_ID
- See Also:
-
NOT_FOUND_MESSAGE_ID
- See Also:
-
m_sPattern
-
-
Constructor Details
-
OneOfValidator
public OneOfValidator()
-
-
Method Details
-
validate
public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException - Specified by:
validate
in interfaceValidator
- Overrides:
validate
in classBaseValidator
- Throws:
ValidatorException
-
saveState
- Specified by:
saveState
in interfaceStateHolder
- Overrides:
saveState
in classBaseValidator
-
restoreState
- Specified by:
restoreState
in interfaceStateHolder
- Overrides:
restoreState
in classBaseValidator
-
getPattern
- Returns:
- the foreign component_id, on which a value should be validated
-
setPattern
- Parameters:
string
- the foreign component_id, on which a value should be validated
-