Package org.beanio.annotation
Annotation Type Segment
-
@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface Segment
Segment annotation applied to class members or methods.- Since:
- 2.1.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
at
The absolute position of the segment.java.lang.Class<?>
collection
The collection class bound to this segment, if one cannot be derived from the annotated field or method.java.lang.String
getter
The getter method.java.lang.String
key
The name of a child component to use for the key value if this segment is bound to aMap
.boolean
lazy
Whether the class bound to this segment should be instantiated if all child fields are null or empty strings.int
maxOccurs
The maximum occurrences.int
minOccurs
The minimum occurrences.java.lang.String
name
The segment name.boolean
nillable
Whether the element is nillable.java.lang.String
occursRef
The name of a preceding field that governs the number of occurrences of this segment.int
ordinal
The relative position of the segment.java.lang.String
setter
The setter method.java.lang.Class<?>
type
The class bound to this segment, if one cannot be derived from the annotated field or method.int
until
The maximum position of a segment that repeats for an indeterminate number of times.java.lang.String
value
The name of a child component to use for the value of this segment in lieu of a type.java.lang.String
xmlName
The XML attribute or element name.java.lang.String
xmlNamespace
The XML namespace URI of this segment.java.lang.String
xmlPrefix
The XML namespace prefix of this segment.XmlType
xmlType
The XML type of this segment.
-