ch.security4web.esapi.validator
Class EsapiTestValidationComponent

java.lang.Object
  extended by ch.security4web.esapi.validator.EsapiTestValidationComponent

* 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.

Since:
1.0
Version:
2.0
Author:
Rakesh, Dr.Prof.Emmanuel, Matthey Samuel

Field Summary
static java.lang.String MATCH_EXCEPTION_MESSAGE_ID
          
Constructor Summary
EsapiTestValidationComponent()
          
Method Summary
 void clearInitialState()
          
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
Converter ID, as defined by the JSF 2.0 specification.

See Also:
Constant Field Values

PATTERN_NOT_SET_MESSAGE_ID

public static final java.lang.String PATTERN_NOT_SET_MESSAGE_ID
This message ID is used when the pattern is null, or an empty String.

See Also:
Constant Field Values

NOT_MATCHED_MESSAGE_ID

public static final 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.

See Also:
Constant Field Values

MATCH_EXCEPTION_MESSAGE_ID

public static final 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

See Also:
Constant Field Values
Constructor Detail

EsapiTestValidationComponent

public EsapiTestValidationComponent()
Method Detail

validate

public void validate(FacesContext context,
                     UIComponent component,
                     java.lang.Object value)


saveState

public java.lang.Object saveState(FacesContext context)


restoreState

public void restoreState(FacesContext context,
                         java.lang.Object state)


isTransient

public boolean isTransient()


setTransient

public void setTransient(boolean isTransient)


setPattern

public void setPattern(java.lang.String pattern)
The Regular Expression property to validate against. This property must be a ValueExpression that resolves to a String in the format of the java.util.regex patterns.

Parameters:
pattern - a ValueExpression that evaluates to a String that is the regular expression pattern

getPattern

Return the ValueExpression that yields the regular expression pattern when evaluated.

Returns:
The pattern.

clearInitialState

public void clearInitialState()

initialStateMarked

public boolean initialStateMarked()

markInitialState

public void markInitialState()