se.lu.thep.waf.constraints
Class VDate

java.lang.Object
  extended by se.lu.thep.waf.constraints.VParameter
      extended by se.lu.thep.waf.constraints.VString
          extended by se.lu.thep.waf.constraints.VDate

public class VDate
extends VString

Supports the following datetime formats

  YYYY-MM-DD hh:mm:ss 
  YYYY-MM-DD hh:mm
  YYYY-MM-DD
 

Author:
gregory
See Also:
ParameterValidator

Constructor Summary
VDate(java.lang.String name, java.lang.Boolean required, Format... formats)
          Constructs a valid date with multiple valid formats
VDate(java.lang.String name, java.lang.Boolean required, Format format)
           
 
Method Summary
 Format getFormat()
           
 java.util.List<Format> getFormats()
           
 
Methods inherited from class se.lu.thep.waf.constraints.VString
getMaxCharacterLength, getMinCharacterLength
 
Methods inherited from class se.lu.thep.waf.constraints.VParameter
getName, isRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VDate

public VDate(java.lang.String name,
             java.lang.Boolean required,
             Format format)

VDate

public VDate(java.lang.String name,
             java.lang.Boolean required,
             Format... formats)
Constructs a valid date with multiple valid formats

Parameters:
name - of the parameter
required - true if this field is required
formats - list of valid formats
Method Detail

getFormat

public Format getFormat()

getFormats

public java.util.List<Format> getFormats()