public class RecordBuilder extends SegmentBuilderSupport<RecordBuilder>
Constructor and Description |
---|
RecordBuilder(String name)
Constructs a new
RecordBuilder . |
RecordBuilder(String name,
Class<?> type)
Constructs a new
RecordBuilder . |
Modifier and Type | Method and Description |
---|---|
RecordConfig |
build()
Builds the record configuration.
|
protected SegmentConfig |
getConfig()
Returns the configuration settings.
|
RecordBuilder |
length(int n)
Sets the length of the record (i.e the number of fields in a delimited
record, or the number of characters in a fixed length record).
|
RecordBuilder |
length(int min,
int max)
Sets the minimum and maximum length of the record (i.e the number of fields
in a delimited record, or the number of characters in a fixed length
record).
|
RecordBuilder |
maxLength(int max)
Sets the minimum length of the record (i.e the number of fields
in a delimited record, or the number of characters in a fixed length
record).
|
protected RecordBuilder |
me()
Returns this.
|
RecordBuilder |
minLength(int min)
Sets the minimum length of the record (i.e the number of fields
in a delimited record, or the number of characters in a fixed length
record).
|
RecordBuilder |
order(int order)
Sets the order of this record relative to other children
of the same parent.
|
RecordBuilder |
ridLength(int n)
Sets the length of the record for identification.
|
RecordBuilder |
ridLength(int min,
int max)
Sets the minimum and maximum length of the record for identification.
|
addField, addSegment, key, value
collection, getter, lazy, maxOccurs, minOccurs, occurs, occurs, setter, type, xmlName, xmlNamespace, xmlPrefix, xmlType
public RecordBuilder(String name)
RecordBuilder
.name
- the record namepublic RecordBuilder(String name, Class<?> type)
RecordBuilder
.name
- the record nametype
- the record typeprotected RecordBuilder me()
PropertyBuilderSupport
me
in class PropertyBuilderSupport<RecordBuilder>
protected SegmentConfig getConfig()
PropertyBuilderSupport
getConfig
in class SegmentBuilderSupport<RecordBuilder>
public RecordBuilder order(int order)
order
- the orderpublic RecordBuilder minLength(int min)
min
- the minimum lengthpublic RecordBuilder maxLength(int max)
max
- the maximum length, or -1 if unboundedpublic RecordBuilder length(int n)
n
- the lengthpublic RecordBuilder length(int min, int max)
min
- the minimum lengthmax
- the maximum length, or -1 if unboundedpublic RecordBuilder ridLength(int n)
n
- the lengthpublic RecordBuilder ridLength(int min, int max)
min
- the minimum lengthmax
- the maximum length, or -1 if unboundedpublic RecordConfig build()