org.sovt.impl
Class RequiredValidator

java.lang.Object
  extended byorg.sovt.impl.AbstractValidator
      extended byorg.sovt.impl.RequiredValidator
All Implemented Interfaces:
java.lang.Cloneable, Validator

public final class RequiredValidator
extends AbstractValidator
implements java.lang.Cloneable

Author:
Vilmantas Baranauskas (vilmantas_baranauskas@yahoo.com)

Constructor Summary
RequiredValidator()
           
 
Method Summary
 java.lang.Object clone()
          Just returns super.clone().
 void validate(java.lang.Object object, ValidationResult result)
          Implementation should validate given object and use result parameter to store stores validation result.
 
Methods inherited from class org.sovt.impl.AbstractValidator
getMessage, setMessage, setMsg
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequiredValidator

public RequiredValidator()
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Just returns super.clone(). There is no need to do a deep-cloning.

Specified by:
clone in interface Validator
Overrides:
clone in class AbstractValidator
Returns:
clone of itself.
Throws:
java.lang.CloneNotSupportedException

validate

public void validate(java.lang.Object object,
                     ValidationResult result)
Description copied from interface: Validator
Implementation should validate given object and use result parameter to store stores validation result.

Specified by:
validate in interface Validator
Parameters:
object - Object to validate
result - Container for validation results.


Copyright © 2003-2005 . All Rights Reserved.