org.hibernate.validator
Class EANValidator

java.lang.Object
  extended by org.hibernate.validator.EANValidator
All Implemented Interfaces:
Validator<EAN>

public class EANValidator
extends Object
implements Validator<EAN>

Validate EAN13 and UPC-A

Author:
Emmanuel Bernard

Constructor Summary
EANValidator()
           
 
Method Summary
 void initialize(EAN parameters)
          Take the annotations values
 boolean isValid(Object value)
          does the object/element pass the constraints
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EANValidator

public EANValidator()
Method Detail

initialize

public void initialize(EAN parameters)
Description copied from interface: Validator
Take the annotations values

Specified by:
initialize in interface Validator<EAN>

isValid

public boolean isValid(Object value)
Description copied from interface: Validator
does the object/element pass the constraints

Specified by:
isValid in interface Validator<EAN>


Copyright © 2011. All Rights Reserved.