|
|||||||||
| Home >> All >> com >> aendvari >> griffin >> [ validation overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.aendvari.griffin.validation
Class ValidationHandler

java.lang.Objectcom.aendvari.griffin.validation.ValidationHandler
- public class ValidationHandler
- extends java.lang.Object
Defines a ValidationHandler.
This class is used to examine a handler class for its methods.
This class is used by the Validation class to execute validate/error methods.
| Field Summary | |
private java.lang.Object |
handlerObject
The class of the validation handler class |
private com.aendvari.common.util.MultiHashMap |
methods
A com.aendvari.common.util.MultiHashMap of the Method objects available in this handler. |
private java.lang.String |
name
The name of the validation handler class. |
| Constructor Summary | |
ValidationHandler()
Constructs an empty ValidationHandler instance. |
|
ValidationHandler(java.lang.String setName,
java.lang.Class setHandlerClass)
Constructs a ValidationHandler instance. |
|
ValidationHandler(java.lang.String setName,
java.lang.Object setHandlerObject)
Constructs a ValidationHandler instance. |
|
ValidationHandler(java.lang.String setName,
java.lang.String setHandler)
Constructs a ValidationHandler instance. |
|
| Method Summary | |
boolean |
executeMethod(java.lang.String methodName,
java.util.Collection parameters,
com.aendvari.griffin.validation.validator.Handler handler,
com.aendvari.griffin.validation.dataset.Property property)
Executes this classes' part of a com.aendvari.griffin.validation.dataset.Dataset validation. |
java.lang.Object |
getHandlerObject()
Get the class of the validation class. |
java.lang.String |
getName()
Get the value of the validation class. |
void |
initializeHandler()
Examines the handler class, extracting the methods from it and storing them for later access. |
boolean |
isMethodAvailable(java.lang.String methodName)
Determines if the given method is available in this handler |
void |
setHandlerObject(java.lang.String setHandlerObject)
Set the class path of the validation class. |
void |
setName(java.lang.String setName)
Set the value of the validation class. |
java.lang.String |
toString()
Convert this object into a String representation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
name
private java.lang.String name
- The name of the validation handler class.
handlerObject
private java.lang.Object handlerObject
- The class of the validation handler class
methods
private com.aendvari.common.util.MultiHashMap methods
- A com.aendvari.common.util.MultiHashMap of the Method objects available in this handler.
| Constructor Detail |
ValidationHandler
public ValidationHandler()
- Constructs an empty
ValidationHandlerinstance.This does not initialize the handler by default. All other constructors do.
ValidationHandler
public ValidationHandler(java.lang.String setName, java.lang.String setHandler) throws java.lang.Exception
- Constructs a
ValidationHandlerinstance.
ValidationHandler
public ValidationHandler(java.lang.String setName, java.lang.Object setHandlerObject) throws java.lang.Exception
- Constructs a
ValidationHandlerinstance.
ValidationHandler
public ValidationHandler(java.lang.String setName, java.lang.Class setHandlerClass) throws java.lang.Exception
- Constructs a
ValidationHandlerinstance.
| Method Detail |
initializeHandler
public void initializeHandler()
throws java.lang.Exception
- Examines the handler class, extracting the methods from it and storing them for later access.
getName
public java.lang.String getName()
- Get the value of the validation class.
setName
public void setName(java.lang.String setName)
- Set the value of the validation class.
getHandlerObject
public java.lang.Object getHandlerObject()
- Get the class of the validation class.
setHandlerObject
public void setHandlerObject(java.lang.String setHandlerObject)
- Set the class path of the validation class.
executeMethod
public boolean executeMethod(java.lang.String methodName, java.util.Collection parameters, com.aendvari.griffin.validation.validator.Handler handler, com.aendvari.griffin.validation.dataset.Property property) throws java.lang.Exception
- Executes this classes' part of a com.aendvari.griffin.validation.dataset.Dataset validation.
isMethodAvailable
public boolean isMethodAvailable(java.lang.String methodName)
- Determines if the given method is available in this handler
toString
public java.lang.String toString()
- Convert this object into a String representation.
|
|||||||||
| Home >> All >> com >> aendvari >> griffin >> [ validation overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.aendvari.griffin.validation.ValidationHandler