corelib.services.web.components
Class RegularExpressionValidator

java.lang.Object
  extended by corelib.services.web.components.WebComponent
      extended by corelib.services.web.components.VisualComponent
          extended by corelib.services.web.components.Validator
              extended by corelib.services.web.components.RegularExpressionValidator

public class RegularExpressionValidator
extends Validator

Checks if the considered input component's value match with the specified regular expression.

Since:
0.2.0
Author:
Dominique Liard

Field Summary
static java.lang.String EMAIL_REG_EXP
           
protected  java.lang.String regularExpression
           
 
Fields inherited from class corelib.services.web.components.Validator
clientScript, errorMessage
 
Fields inherited from class corelib.services.web.components.VisualComponent
cssClass, cssStyle, toolTipText, visible
 
Fields inherited from class corelib.services.web.components.WebComponent
dataBindings, webPage, xmlNode
 
Constructor Summary
RegularExpressionValidator()
           
 
Method Summary
 void generateClientValidation(java.io.PrintWriter out)
           
 java.lang.String getRegularExpression()
           
 void setRegularExpression(java.lang.String regularExpression)
           
 void validate()
           
 
Methods inherited from class corelib.services.web.components.Validator
component_renderBegin, component_renderEnd, getClientScript, getComponentToValidate, getCssClassComponentError, getErrorMessage, isValid, setClientScript, setComponentToValidate, setCssClassComponentError, setErrorMessage, setValid
 
Methods inherited from class corelib.services.web.components.VisualComponent
component_postRender, component_preRender, component_renderChildren, component_renderJavascriptLocalisation, encodeAttributeValue, getCssClass, getCssStyle, getOnClickListener, getSharedAttributesHtmlEncoding, getToolTipText, isVisible, renderElement, setCssClass, setCssStyle, setOnClickListener, setToolTipText, setVisible
 
Methods inherited from class corelib.services.web.components.WebComponent
addBindingExpression, addChildComponent, component_init, component_load, component_preRepeaterDuplications, getChildComponents, getDataBinding, getElementsByTagName, getId, getWebPage, getXmlNode, setId, setWebPage, setXmlNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMAIL_REG_EXP

public static final java.lang.String EMAIL_REG_EXP
Since:
0.4.0
See Also:
Constant Field Values

regularExpression

protected java.lang.String regularExpression
Constructor Detail

RegularExpressionValidator

public RegularExpressionValidator()
Method Detail

getRegularExpression

public java.lang.String getRegularExpression()

setRegularExpression

public void setRegularExpression(java.lang.String regularExpression)

validate

public void validate()
Specified by:
validate in class Validator

generateClientValidation

public void generateClientValidation(java.io.PrintWriter out)
Specified by:
generateClientValidation in class Validator


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.