org.jwarp.service.param
Class DateTimeValidator

java.lang.Object
  |
  +--org.jwarp.service.param.AValidator
        |
        +--org.jwarp.service.param.DateTimeValidator
All Implemented Interfaces:
IConfigurable, IValidator
Direct Known Subclasses:
DateValidator, TimeValidator

public class DateTimeValidator
extends AValidator

A date/time validator.

Version:
1.01
Author:
Anatole Tresch, Martin Schaefer

Field Summary
(package private)  java.lang.String dateFormat
           
 
Fields inherited from class org.jwarp.service.param.AValidator
contentValidator, mayBeEmpty, required
 
Constructor Summary
DateTimeValidator()
           
DateTimeValidator(java.lang.String format)
           
 
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)
          not yet implemented
 
Methods inherited from class org.jwarp.service.param.AValidator
getMayBeEmpty, getNextValidator, getRequired, setMayBeEmpty, setNextValidator, setRequired
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dateFormat

java.lang.String dateFormat
Constructor Detail

DateTimeValidator

public DateTimeValidator()

DateTimeValidator

public DateTimeValidator(java.lang.String format)
Method Detail

configure

public void configure(org.jdom.Element config)
               throws ConfigurationException
Description copied from interface: IConfigurable
Pass the Configuration to the Configurable class. This method must always be called after the constructor and before any other method.
Following copied from interface: org.jwarp.service.configuration.IConfigurable
Parameters:
configuration - the class configurations.

validate

public void validate(java.lang.Object value)
              throws ParameterException
not yet implemented
Overrides:
validate in class AValidator
Parameters:
content - The String to be validated
Returns:
true if content is a date false if not (NYI)

getValidationClass

public java.lang.String getValidationClass()
Returns the class name of the class being validated.
Returns:
the full class name

©   O R C A   S y s t e m s