com.missiondata.oss.lakeshore
Class RequiredField

java.lang.Object
  extended bycom.missiondata.oss.lakeshore.Validator
      extended bycom.missiondata.oss.lakeshore.RequiredField

public class RequiredField
extends Validator

First attempt at pulling field level validation up into the framework. Time will tell if it will stay and grow...


Constructor Summary
RequiredField(java.lang.Object model, java.lang.String property)
           
RequiredField(java.lang.Object model, java.lang.String property, java.lang.String niceName)
           
 
Method Summary
 java.lang.String getMessage()
           
protected  boolean isValidImpl()
           
 
Methods inherited from class com.missiondata.oss.lakeshore.Validator
isValid, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequiredField

public RequiredField(java.lang.Object model,
                     java.lang.String property)

RequiredField

public RequiredField(java.lang.Object model,
                     java.lang.String property,
                     java.lang.String niceName)
Method Detail

isValidImpl

protected boolean isValidImpl()
Specified by:
isValidImpl in class Validator

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in class Validator