public class RequireSubStr extends CellProcessorAdaptor implements StringCellProcessor
next| Constructor and Description | 
|---|
| RequireSubStr(List<String> requiredSubStrings,
             CellProcessor next)Converts the input to a String, ensures that the input contains at least one of the specified substrings, then
 calls the next processor in the chain. | 
| RequireSubStr(String... requiredSubStrings)Converts the input to a String and ensures that the input contains at least one of the specified substrings. | 
| RequireSubStr(String[] requiredSubStrings,
             CellProcessor next)Converts the input to a String, ensures that the input contains at least one of the specified substrings, then
 calls the next processor in the chain. | 
| RequireSubStr(String requiredSubString,
             CellProcessor next)Converts the input to a String, ensures that the input contains the specified substring, 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. | 
toString, validateInputNotNullpublic RequireSubStr(String... requiredSubStrings)
requiredSubStrings - the required substringsNullPointerException - if requiredSubStrings or one of its elements is nullIllegalArgumentException - if requiredSubStrings is emptypublic RequireSubStr(List<String> requiredSubStrings, CellProcessor next)
requiredSubStrings - the List of required substringsnext - the next processor in the chainNullPointerException - if requiredSubStrings, one of its elements or next is nullIllegalArgumentException - if requiredSubStrings is emptypublic RequireSubStr(String requiredSubString, CellProcessor next)
requiredSubString - the required substringnext - the next processor in the chainNullPointerException - if requiredSubString or next is nullpublic RequireSubStr(String[] requiredSubStrings, CellProcessor next)
requiredSubStrings - the List of required substringsnext - the next processor in the chainNullPointerException - if requiredSubStrings, one of its elements or next is nullIllegalArgumentException - if requiredSubStrings is emptypublic Object execute(Object value, CsvContext context)
execute in interface CellProcessorSuperCsvCellProcessorException - if value is nullSuperCsvConstraintViolationException - if value doesn't contain any of the required substringsCopyright © 2007-2013 Super CSV. All Rights Reserved.