oracle.adf.view.faces.validator
Class PatternValidator

java.lang.Object
  |
  +--oracle.adf.view.faces.validator.PatternValidator
All Implemented Interfaces:
java.util.EventListener, javax.faces.component.StateHolder, javax.faces.validator.Validator
Direct Known Subclasses:
RegExpValidator

public abstract class PatternValidator
extends java.lang.Object
implements javax.faces.component.StateHolder, javax.faces.validator.Validator


Field Summary
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
PatternValidator()
          Construct a Validator with no preconfigured pattern.
PatternValidator(java.lang.String pattern)
          Construct a Validator with preconfigured pattern.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares this PatternValidator with the specified Object for equality.
 java.lang.String getPattern()
          Return the pattern value to be enforced by this Validator
 int hashCode()
          Returns the hash code for this Validator.
 boolean isTransient()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setPattern(java.lang.String pattern)
          Set the pattern value to be enforced by this Validator
 void setTransient(boolean transientValue)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.validator.Validator
validate
 

Constructor Detail

PatternValidator

public PatternValidator()

Construct a Validator with no preconfigured pattern.


PatternValidator

public PatternValidator(java.lang.String pattern)

Construct a Validator with preconfigured pattern.

Method Detail

setPattern

public void setPattern(java.lang.String pattern)

Set the pattern value to be enforced by this Validator

Parameters:
pattern - to be enforced.

getPattern

public java.lang.String getPattern()

Return the pattern value to be enforced by this Validator


equals

public boolean equals(java.lang.Object object)

Compares this PatternValidator with the specified Object for equality.

Overrides:
equals in class java.lang.Object
Parameters:
object - Object to which this PatternValidator is to be compared.
Returns:
true if and only if the specified Object is a PatternValidator and if the values pattern and transient are equal.

hashCode

public int hashCode()

Returns the hash code for this Validator.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder

isTransient

public boolean isTransient()
Specified by:
isTransient in interface javax.faces.component.StateHolder

setTransient

public void setTransient(boolean transientValue)
Specified by:
setTransient in interface javax.faces.component.StateHolder


Copyright © 2003-2004 Oracle Corporation. All Rights Reserved.