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

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

Go to download

CSVのJavaライブラリであるSuperCSVに、アノテーション機能を追加したライブラリです。

There is a newer version: 2.3
Show newest version
/*
 * CsvNumberConverter.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;
import java.util.Currency;
import java.util.Locale;


/**
 * Number formmating annotation.
 *
 * @author T.TSUCHIE
 *
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CsvNumberConverter {
    
    /**
     * format pattern
     * 

set for CellProcessor 'FormatLocaleNumber' * @return */ String pattern() default ""; /** * number formatting lenient. *

false : format exactly * @return */ boolean lenient() default false; /** * formatting {@link Currency} Code(ISO 4217 Code) * @return */ String currency() default ""; /** * formatting {@link Locale}. * ex. 'ja', 'ja_JP' * @since 1.2 * @return */ String locale() default ""; /** * formatting {@link Locale} for laugage code. *

example. ja, en *

use {@link #locale()} * @return */ @Deprecated String language() default ""; /** * formatting {@link Locale} for country code. *

example. JP, US *

use {@link #locale()} * @return */ @Deprecated String country() default ""; /** *

set for CellProcessro 'Min' * @return */ String min() default ""; /** * *

set for CellProcessro 'Max' * @return */ String max() default ""; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy