Keel 2.1RC2

org.keel.models.util
Class Validate

java.lang.Object
  extended byorg.keel.services.model.StandardModel
      extended byorg.keel.services.model.StandardLogEnabledModel
          extended byorg.keel.services.model.SecurableStandardLogEnabledModel
              extended byorg.keel.models.util.Validate
All Implemented Interfaces:
Configurable, LogEnabled, Model, Securable

public class Validate
extends SecurableStandardLogEnabledModel

General-purpose "validate" model. Configuration can specify a validator for this Model (or just use the default validator), and it will perform validation, then pass on all of it's request parameters to the model specified in it's configuration via the "model" element.

Version:
$Revision: 1.1 $ $Date: 2004/03/07 19:38:56 $
Author:
Michael Nash

Field Summary
 
Fields inherited from class org.keel.services.model.SecurableStandardLogEnabledModel
 
Fields inherited from class org.keel.services.model.StandardLogEnabledModel
log
 
Fields inherited from class org.keel.services.model.StandardModel
configuration
 
Fields inherited from interface org.keel.services.model.Model
ROLE
 
Constructor Summary
Validate()
           
 
Method Summary
 ModelResponse execute(ModelRequest req)
          Simply execute the model specified in configuration - all validation is done by the time this method begins.
 
Methods inherited from class org.keel.services.model.SecurableStandardLogEnabledModel
getAuthorizationManager, setAuthorizationManager
 
Methods inherited from class org.keel.services.model.StandardLogEnabledModel
enableLogging
 
Methods inherited from class org.keel.services.model.StandardModel
configure, getConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validate

public Validate()
Method Detail

execute

public ModelResponse execute(ModelRequest req)
                      throws ModelException
Simply execute the model specified in configuration - all validation is done by the time this method begins.

Parameters:
req - The usual ModelRequest
Returns:
a ModelResponse from the specified model
Throws:
ModelException - If the model is not configured correctly

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.