Package org.beanio.annotation
Annotation Type Field
-
@Retention(RUNTIME) @Target({FIELD,METHOD,PARAMETER}) public @interface FieldField annotation applied to class attributes, methods or constructor parameters.- Since:
- 2.1.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description AlignalignThe alignment of a padded field.intatSets the absolute position of the field.java.lang.Class<?>collectionThe collection type for repeating fields, if it cannot be detected from the field or method declaration.java.lang.StringdefaultValueThe default value for this field.java.lang.StringformatThe format passed to theTypeHandler.java.lang.StringgetterThe getter method.java.lang.Class<?>handlerClassTheTypeHandlerimplementation class for this field.java.lang.StringhandlerNameThe name of a registeredTypeHandler.booleankeepPaddingWhether to keep the field padding during unmarshalling.booleanlazyWhether an empty string should be converted to null, or null returned for an empty collection.intlengthThe padded length of the field.booleanlenientPaddingWhether to enforce the padding length during unmarshalling.java.lang.StringliteralThe literal text for validating or matching field text.intmaxLengthThe maximum length of the field text (after trimming if enabled).intmaxOccursThe maximum occurrences of the field if it repeats.intminLengthThe minimum length of the field text (after trimming if enabled).intminOccursThe minimum occurrences of the field.java.lang.StringnameThe field name.booleannillableWhether the element is nillable.java.lang.StringoccursRefThe name of a preceding field that governs the number of occurrences of this field.intordinalThe relative position of the field.intpaddingThe character used to pad the field.java.lang.StringregexThe regular expression for validating and/or matching field text.booleanrequiredWhether field text is required.booleanridWhether the field is used to identify the record.java.lang.StringsetterThe setter method.booleantrimWhether to trim the field text before validation and type handling.java.lang.Class<?>typeThe field type, if it can not be detected from the method or field declaration.intuntilSets the maximum position of a field that repeats for an indeterminate number of times.java.lang.StringxmlNameThe XML attribute or element name.java.lang.StringxmlNamespaceThe XML namespace URI of this field.java.lang.StringxmlPrefixThe XML namespace prefix of this field.XmlTypexmlTypeThe XML type of this field.
-
-
-
-
handlerClass
java.lang.Class<?> handlerClass
TheTypeHandlerimplementation class for this field.- Returns:
- the type handler class
- Default:
- java.lang.Void.class
-
-
-
handlerName
java.lang.String handlerName
The name of a registeredTypeHandler.- Returns:
- the type handler name
- Default:
- ""
-
-
-
format
java.lang.String format
The format passed to theTypeHandler.- Returns:
- the format pattern
- Default:
- ""
-
-