org.hibernate.validator
Class EANValidator
java.lang.Object
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
Method Summary |
void |
initialize(EAN parameters)
Take the annotations values |
boolean |
isValid(Object value)
does the object/element pass the constraints |
EANValidator
public EANValidator()
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.