1 /* 2 * CSVeed (https://github.com/42BV/CSVeed) 3 * 4 * Copyright 2013-2023 CSVeed. 5 * 6 * All rights reserved. This program and the accompanying materials 7 * are made available under the terms of The Apache Software License, 8 * Version 2.0 which accompanies this distribution, and is available at 9 * https://www.apache.org/licenses/LICENSE-2.0.txt 10 */ 11 package org.csveed.annotations; 12 13 import java.lang.annotation.ElementType; 14 import java.lang.annotation.Retention; 15 import java.lang.annotation.RetentionPolicy; 16 import java.lang.annotation.Target; 17 18 import org.csveed.bean.conversion.Converter; 19 20 /** 21 * Sets a custom converter for the field. The converter must be of type Converter. 22 */ 23 @Target(ElementType.FIELD) 24 @Retention(RetentionPolicy.RUNTIME) 25 public @interface CsvConverter { 26 27 /** 28 * The Converter to use for the field. 29 * 30 * @return PropertyEditor 31 */ 32 Class<? extends Converter> converter(); 33 34 }