org.javalite.activejdbc.validation
Class AttributePresenceValidator

java.lang.Object
  extended by org.javalite.activejdbc.validation.ValidatorAdapter
      extended by org.javalite.activejdbc.validation.AttributePresenceValidator
All Implemented Interfaces:
Validator

public class AttributePresenceValidator
extends ValidatorAdapter


Constructor Summary
AttributePresenceValidator(String attribute)
           
 
Method Summary
 boolean equals(Object other)
           
 int hashCode()
           
 void validate(Model m)
          Called by framework when a Model.validate() method called.
 
Methods inherited from class org.javalite.activejdbc.validation.ValidatorAdapter
formatMessage, getMessage, setMessage
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributePresenceValidator

public AttributePresenceValidator(String attribute)
Method Detail

validate

public void validate(Model m)
Description copied from interface: Validator
Called by framework when a Model.validate() method called.

Parameters:
m - model being validated.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 2015 JavaLite. All rights reserved.