com.sun.rave.web.ui.validator
Class ValueMatchesOptionsValidator

java.lang.Object
  extended by com.sun.rave.web.ui.validator.ValueMatchesOptionsValidator
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.faces.validator.Validator

public class ValueMatchesOptionsValidator
extends java.lang.Object
implements javax.faces.validator.Validator, java.io.Serializable

Use this validator to check the number of characters in a string when you need to set the validation messages.

See Also:
Serialized Form

Field Summary
static java.lang.String VALIDATOR_ID
          The converter id for this converter.
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
ValueMatchesOptionsValidator()
          Creates a new instance of StringLengthValidator
 
Method Summary
 java.lang.String getMessage()
          Getter for property message.
 void setMessage(java.lang.String message)
          Setter for property message.
 void validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
           Validate the value with regard to a UIComponent and a FacesContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATOR_ID

public static final java.lang.String VALIDATOR_ID

The converter id for this converter.

See Also:
Constant Field Values
Constructor Detail

ValueMatchesOptionsValidator

public ValueMatchesOptionsValidator()
Creates a new instance of StringLengthValidator

Method Detail

validate

public void validate(javax.faces.context.FacesContext context,
                     javax.faces.component.UIComponent component,
                     java.lang.Object value)
              throws javax.faces.validator.ValidatorException

Validate the value with regard to a UIComponent and a FacesContext.

Specified by:
validate in interface javax.faces.validator.Validator
Parameters:
context - The FacesContext
component - The component to be validated
value - The submitted value of the component
Throws:
javax.faces.validator.ValidatorException - if the value is not valid

getMessage

public java.lang.String getMessage()
Getter for property message.

Returns:
Value of property message.

setMessage

public void setMessage(java.lang.String message)
Setter for property message.

Parameters:
message - New value of property message.