Package org.openxava.validators
Class MACValidator
java.lang.Object
org.openxava.validators.MACValidator
- All Implemented Interfaces:
Serializable,IPropertyValidator
MAC address validator.
- Author:
- Nelson Florez
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MACValidator
public MACValidator()
-
-
Method Details
-
validate
public void validate(Messages errors, Object value, String propertyName, String modelName) throws Exception Description copied from interface:IPropertyValidatorValidate.The validation errors are added to an object of type
Messages.- Specified by:
validatein interfaceIPropertyValidator- Parameters:
errors- Not null. Ids list to read in the resources filevalue- Value to validate. It can be nullpropertyName- Property id in the resources filemodelName- Object id in the resources file.- Throws:
Exception- Any unexpected problem.
-