org.apache.myfaces.tobago.validator
Class SubmittedValueLengthValidator

java.lang.Object
  extended by javax.faces.validator.LengthValidator
      extended by org.apache.myfaces.tobago.validator.SubmittedValueLengthValidator
All Implemented Interfaces:
java.util.EventListener, StateHolder, Validator

public class SubmittedValueLengthValidator
extends LengthValidator

SubmittedLengthValidator is a Validator that checks the number of characters in the submitted value of the associated component.


Field Summary
static java.lang.String VALIDATOR_ID
           
 
Fields inherited from class javax.faces.validator.LengthValidator
MAXIMUM_MESSAGE_ID, MINIMUM_MESSAGE_ID
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
SubmittedValueLengthValidator()
           
SubmittedValueLengthValidator(int maximum)
           
SubmittedValueLengthValidator(int maximum, int minimum)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getMaximum()
           
 int getMinimum()
           
 int hashCode()
           
 void restoreState(FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(FacesContext context)
           
 void setMaximum(int maximum)
           
 void setMinimum(int minimum)
           
 void validate(FacesContext facesContext, UIComponent uiComponent, java.lang.Object value)
           
 
Methods inherited from class javax.faces.validator.LengthValidator
isTransient, setTransient
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATOR_ID

public static final java.lang.String VALIDATOR_ID
See Also:
Constant Field Values
Constructor Detail

SubmittedValueLengthValidator

public SubmittedValueLengthValidator()

SubmittedValueLengthValidator

public SubmittedValueLengthValidator(int maximum)

SubmittedValueLengthValidator

public SubmittedValueLengthValidator(int maximum,
                                     int minimum)
Method Detail

getMinimum

public int getMinimum()
Overrides:
getMinimum in class LengthValidator

setMinimum

public void setMinimum(int minimum)
Overrides:
setMinimum in class LengthValidator

getMaximum

public int getMaximum()
Overrides:
getMaximum in class LengthValidator

setMaximum

public void setMaximum(int maximum)
Overrides:
setMaximum in class LengthValidator

validate

public void validate(FacesContext facesContext,
                     UIComponent uiComponent,
                     java.lang.Object value)
              throws ValidatorException
Specified by:
validate in interface Validator
Overrides:
validate in class LengthValidator
Throws:
ValidatorException

saveState

public java.lang.Object saveState(FacesContext context)
Specified by:
saveState in interface StateHolder
Overrides:
saveState in class LengthValidator

restoreState

public void restoreState(FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface StateHolder
Overrides:
restoreState in class LengthValidator

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class LengthValidator

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.