se.lu.thep.waf.constraints
Class VParameter

java.lang.Object
  extended by se.lu.thep.waf.constraints.VParameter
Direct Known Subclasses:
VBoolean, VFloat, VInteger, VString

public class VParameter
extends java.lang.Object

Valid param representation. To ease the validation of parameters send with a request each subclass sets it's own constraints. The parameters are then validated using the ParameterValidator.

Author:
gregory

Constructor Summary
VParameter(java.lang.String name)
           
VParameter(java.lang.String name, java.lang.Boolean required)
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.Boolean isRequired()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VParameter

public VParameter(java.lang.String name,
                  java.lang.Boolean required)

VParameter

public VParameter(java.lang.String name)
Method Detail

isRequired

public java.lang.Boolean isRequired()

getName

public java.lang.String getName()