All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.supercsv.ext.annotation.CsvStringConverter Maven / Gradle / Ivy

/*
 * 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 - 2024 Weber Informatics LLC | Privacy Policy