|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.security4web.esapi.validator.TestValidator
@JSFValidator(name="esapi:validateRegex", bodyContent="empty", tagClass="esapi.unifreiburg.validator.TestValidationTag") @JSFJspProperty(name="binding", returnType="javax.faces.validator.RegexValidator", longDesc="A ValueExpression that evaluates to a RegexValidator.") public class TestValidator
* OWASP Enterprise Security API (ESAPI) This file is part of the Open Web Application Security Project (OWASP) Enterprise Security API (ESAPI) project. For details, please see http://www.owasp.org/index.php/ESAPI. Copyright (c) 2007 - The OWASP Foundation The ESAPI is published by OWASP under the BSD license. You should read and accept the LICENSE before you use, modify, and/or redistribute this software.
Field Summary | |
---|---|
static java.lang.String |
MATCH_EXCEPTION_MESSAGE_ID
This message ID is used when the pattern is not a valid regular expression, according to the rules as defined in class Pattern |
static java.lang.String |
NOT_MATCHED_MESSAGE_ID
This message ID is used when the passed value is not a String, or when the pattern does not match the passed value. |
static java.lang.String |
PATTERN_NOT_SET_MESSAGE_ID
This message ID is used when the pattern is null , or an empty String. |
static java.lang.String |
VALIDATOR_ID
Converter ID, as defined by the JSF 2.0 specification. |
Fields inherited from interface javax.faces.validator.Validator |
---|
NOT_IN_RANGE_MESSAGE_ID |
Constructor Summary | |
---|---|
TestValidator()
|
Method Summary | |
---|---|
void |
clearInitialState()
|
java.lang.String |
getPattern()
Return the ValueExpression that yields the regular expression pattern when evaluated. |
boolean |
initialStateMarked()
|
boolean |
isTransient()
|
void |
markInitialState()
|
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)
The Regular Expression property to validate against. |
void |
setTransient(boolean isTransient)
|
void |
validate(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VALIDATOR_ID
public static final java.lang.String PATTERN_NOT_SET_MESSAGE_ID
null
, or an empty String.
public static final java.lang.String NOT_MATCHED_MESSAGE_ID
public static final java.lang.String MATCH_EXCEPTION_MESSAGE_ID
Pattern
Constructor Detail |
---|
public TestValidator()
Method Detail |
---|
public void validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
validate
in interface javax.faces.validator.Validator
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
public boolean isTransient()
isTransient
in interface javax.faces.component.StateHolder
public void setTransient(boolean isTransient)
setTransient
in interface javax.faces.component.StateHolder
public void setPattern(java.lang.String pattern)
pattern
- a ValueExpression that evaluates to a String that is the regular expression pattern@JSFProperty(required=true) public java.lang.String getPattern()
public void clearInitialState()
clearInitialState
in interface javax.faces.component.PartialStateHolder
public boolean initialStateMarked()
initialStateMarked
in interface javax.faces.component.PartialStateHolder
public void markInitialState()
markInitialState
in interface javax.faces.component.PartialStateHolder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |