public class StrRegEx extends CellProcessorAdaptor implements StringCellProcessor
next| Constructor and Description | 
|---|
| StrRegEx(String regex)Constructs a new StrRegEx processor, which ensures that the input data matches the given regular
 expression. | 
| StrRegEx(String regex,
        StringCellProcessor next)Constructs a new StrRegEx processor, which ensures that the input data matches the given regular
 expression, then calls the next processor in the chain. | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | execute(Object value,
       CsvContext context)This method is invoked by the framework when the processor needs to process data or check constraints. | 
| static void | registerMessage(String regex,
               String message)Register a message detailing in plain language the constraint representing a regular expression. | 
toString, validateInputNotNullpublic StrRegEx(String regex)
regex - the regular expression to matchNullPointerException - if regex is nullIllegalArgumentException - if regex is emptyPatternSyntaxException - if regex is not a valid regular expressionpublic StrRegEx(String regex, StringCellProcessor next)
regex - the regular expression to matchnext - the next processor in the chainNullPointerException - if regex is nullIllegalArgumentException - if regex is emptyPatternSyntaxException - if regex is not a valid regular expressionpublic Object execute(Object value, CsvContext context)
execute in interface CellProcessorSuperCsvCellProcessorException - if value is nullSuperCsvConstraintViolationException - if value doesn't match the regular expressionpublic static void registerMessage(String regex, String message)
regex - the regular expressionmessage - the message to associate with the regexCopyright © 2007-2013 Super CSV. All Rights Reserved.