C# Class Spring.Validation.Actions.ExpressionAction

Implementation of IValidationAction that allows you to define Spring.NET expressions that should be evaluated after validation.
Inheritance: BaseValidationAction
Exibir arquivo Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
ExpressionAction ( ) : System.Collections.Generic

Initializes a new instance of the ExpressionAction class.

ExpressionAction ( IExpression onValid, IExpression onInvalid ) : System.Collections.Generic

Initializes a new instance of the ExpressionAction class.

ExpressionAction ( string onValid, string onInvalid ) : System.Collections.Generic

Initializes a new instance of the ExpressionAction class.

Protected Methods

Method Description
OnInvalid ( object validationContext, object>.IDictionary contextParams, IValidationErrors errors ) : void

Called when associated validator is invalid.

OnValid ( object validationContext, object>.IDictionary contextParams, IValidationErrors errors ) : void

Called when associated validator is valid.

Method Details

ExpressionAction() public method

Initializes a new instance of the ExpressionAction class.
public ExpressionAction ( ) : System.Collections.Generic
return System.Collections.Generic

ExpressionAction() public method

Initializes a new instance of the ExpressionAction class.
public ExpressionAction ( IExpression onValid, IExpression onInvalid ) : System.Collections.Generic
onValid IExpression Expression to execute when validator is valid.
onInvalid IExpression Expression to execute when validator is not valid.
return System.Collections.Generic

ExpressionAction() public method

Initializes a new instance of the ExpressionAction class.
public ExpressionAction ( string onValid, string onInvalid ) : System.Collections.Generic
onValid string Expression to execute when validator is valid.
onInvalid string Expression to execute when validator is not valid.
return System.Collections.Generic

OnInvalid() protected method

Called when associated validator is invalid.
protected OnInvalid ( object validationContext, object>.IDictionary contextParams, IValidationErrors errors ) : void
validationContext object Validation context.
contextParams object>.IDictionary Additional context parameters.
errors IValidationErrors Validation errors container.
return void

OnValid() protected method

Called when associated validator is valid.
protected OnValid ( object validationContext, object>.IDictionary contextParams, IValidationErrors errors ) : void
validationContext object Validation context.
contextParams object>.IDictionary Additional context parameters.
errors IValidationErrors Validation errors container.
return void