![JAR search and dependency download from the Maven repository](/logo.png)
org.supercsv.ext.annotation.CsvStringConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of super-csv-annotation Show documentation
Show all versions of super-csv-annotation Show documentation
CSVのJavaライブラリであるSuperCSVに、アノテーション機能を追加したライブラリです。
/*
* CsvStringConverter.java
* created in 2013/03/05
*
* (C) Copyright 2003-2013 GreenDay Project. All rights reserved.
*/
package org.supercsv.ext.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* String formmating annotation.
*
* @author T.TSUCHIE
*
*/
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CsvStringConverter {
int minLength() default -1;
int maxLength() default -1;
int exactLength() default -1;
/**
* regular expression pattern.
* set CellProcessor for 'StrRegEx'
* @return
*/
String regex() default "";
/**
* forbidden string.
*
set CellProcessor for 'ForbidSubStr'
* @return
*/
String[] forbid() default {};
/**
* contain string.
*
set CellProcessor for 'RequireSubStr'
* @return
*/
String[] contain() default {};
/**
* not empty
*
set CellProcessor for 'StrNotNullOrEmpty'
* @return
*/
boolean notEmpty() default false;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy