|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.jwarp.service.param.AValidator
|
+--org.jwarp.service.param.CreditCardValidator
A very simple Credit Card validator Class
| Fields inherited from class org.jwarp.service.param.AValidator |
contentValidator, mayBeEmpty, required |
| Constructor Summary | |
CreditCardValidator()
The constructor: No functionallity |
|
| Method Summary | |
void |
configure(org.jdom.Element config)
Pass the Configuration to the Configurable
class. |
java.lang.String |
getValidationClass()
Returns the class name of the class being validated. |
void |
validate(java.lang.Object value)
Checks if there are 16 Cifres and nothing else except spaces |
| Methods inherited from class org.jwarp.service.param.AValidator |
getMayBeEmpty, getNextValidator, getRequired, setMayBeEmpty, setNextValidator, setRequired |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public CreditCardValidator()
| Method Detail |
public void configure(org.jdom.Element config)
throws ConfigurationException
IConfigurableConfiguration to the Configurable
class. This method must always be called after the constructor and before any other method.org.jwarp.service.configuration.IConfigurableconfiguration - the class configurations.
public void validate(java.lang.Object value)
throws ParameterException
validate in class AValidatorcontents - The string to be validatedpublic java.lang.String getValidationClass()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||