Package org.supercsv.cellprocessor.constraint

Examples of org.supercsv.cellprocessor.constraint.Strlen


            } else if (name.equalsIgnoreCase("Strlen")) {
                if (params.length == 0) {
                    throw SupportLogger.LOGGER.invalidParamsForCellProcessor(name, params);
                }
                if (params.length == 1) {
                    current = previous == null ? new Strlen(Integer.parseInt(params[0])) : new Strlen(Integer.parseInt(params[0]), previous);
                } else {
                    current = previous == null ? new Strlen(CsvItemReader.convertToIntParams(params, 0, params.length)) :
                            new Strlen(CsvItemReader.convertToIntParams(params, 0, params.length), previous);
                }
            } else if (name.equalsIgnoreCase("StrMinMax")) {
                if (params.length == 2) {  // min, max
                    current = previous == null ? new StrMinMax(Long.parseLong(params[0]), Long.parseLong(params[1])) :
                            new StrMinMax(Long.parseLong(params[0]), Long.parseLong(params[1]), previous);
View Full Code Here


            } else if (name.equalsIgnoreCase("Strlen")) {
                if (params.length == 0) {
                    throw SupportLogger.LOGGER.invalidParamsForCellProcessor(name, params);
                }
                if (params.length == 1) {
                    current = previous == null ? new Strlen(Integer.parseInt(params[0])) : new Strlen(Integer.parseInt(params[0]), previous);
                } else {
                    current = previous == null ? new Strlen(CsvItemReader.convertToIntParams(params, 0, params.length)) :
                            new Strlen(CsvItemReader.convertToIntParams(params, 0, params.length), previous);
                }
            } else if (name.equalsIgnoreCase("StrMinMax")) {
                if (params.length == 2) {  // min, max
                    current = previous == null ? new StrMinMax(Long.parseLong(params[0]), Long.parseLong(params[1])) :
                            new StrMinMax(Long.parseLong(params[0]), Long.parseLong(params[1]), previous);
View Full Code Here

            } else if (name.equalsIgnoreCase("Strlen")) {
                if (params.length == 0) {
                    throw SupportMessages.MESSAGES.invalidParamsForCellProcessor(name, params);
                }
                if (params.length == 1) {
                    current = previous == null ? new Strlen(Integer.parseInt(params[0])) : new Strlen(Integer.parseInt(params[0]), previous);
                } else {
                    current = previous == null ? new Strlen(CsvItemReader.convertToIntParams(params, 0, params.length)) :
                            new Strlen(CsvItemReader.convertToIntParams(params, 0, params.length), previous);
                }
            } else if (name.equalsIgnoreCase("StrMinMax")) {
                if (params.length == 2) {  // min, max
                    current = previous == null ? new StrMinMax(Long.parseLong(params[0]), Long.parseLong(params[1])) :
                            new StrMinMax(Long.parseLong(params[0]), Long.parseLong(params[1]), previous);
View Full Code Here

            } else if (name.equalsIgnoreCase("Strlen")) {
                if (params.length == 0) {
                    throw SupportMessages.MESSAGES.invalidParamsForCellProcessor(name, params);
                }
                if (params.length == 1) {
                    current = previous == null ? new Strlen(Integer.parseInt(params[0])) : new Strlen(Integer.parseInt(params[0]), previous);
                } else {
                    current = previous == null ? new Strlen(CsvItemReader.convertToIntParams(params, 0, params.length)) :
                            new Strlen(CsvItemReader.convertToIntParams(params, 0, params.length), previous);
                }
            } else if (name.equalsIgnoreCase("StrMinMax")) {
                if (params.length == 2) {  // min, max
                    current = previous == null ? new StrMinMax(Long.parseLong(params[0]), Long.parseLong(params[1])) :
                            new StrMinMax(Long.parseLong(params[0]), Long.parseLong(params[1]), previous);
View Full Code Here

TOP

Related Classes of org.supercsv.cellprocessor.constraint.Strlen

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.