import org.seasar.flex.message.*;

class RequiredFieldValidator extends mx.validators.Validator {

	var fieldName:String;
	
    function doValidation(value) : Void {
        if (value == undefined || value == "") {
			var args:Array = new Array();
			args[0] = fieldName;
			validationError("required", MessageManager.instance.getMessage("EFLX0001", args));
        }
    }

}
