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

dk.nversion.copybook.annotations.CopyBookFieldFormat Maven / Gradle / Ivy

package dk.nversion.copybook.annotations;

import dk.nversion.copybook.converters.TypeConverter;
import dk.nversion.copybook.serializers.CopyBookFieldSigningType;
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.FIELD })
@Repeatable(CopyBookFieldFormats.class)
public @interface CopyBookFieldFormat {
    Class type();

    CopyBookFieldSigningType signingType() default CopyBookFieldSigningType.PREFIX;
    boolean rightPadding() default false;
    char paddingChar() default ' ';
    char nullFillerChar() default (byte)0;
    String defaultValue() default "";
    String errorValue() default ""; // TODO: Implement with @CopyBookFieldFormat(type = IntegerToInteger.class, errorValue = "0")
    String format() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy