@@ -50,6 +50,7 @@ public Preprocessor(StreamConfig stream) {
50
50
* Initializes a stream configuration before its children have been processed.
51
51
* @param stream the stream configuration to process
52
52
*/
53
+ @ Override
53
54
protected void initializeStream (StreamConfig stream ) throws BeanIOConfigurationException {
54
55
if (stream .getMinOccurs () == null ) {
55
56
stream .setMinOccurs (0 );
@@ -68,6 +69,7 @@ protected void initializeStream(StreamConfig stream) throws BeanIOConfigurationE
68
69
* Finalizes a stream configuration after its children have been processed.
69
70
* @param stream the stream configuration to finalize
70
71
*/
72
+ @ Override
71
73
protected void finalizeStream (StreamConfig stream ) throws BeanIOConfigurationException {
72
74
finalizeGroup (stream );
73
75
@@ -78,6 +80,7 @@ protected void finalizeStream(StreamConfig stream) throws BeanIOConfigurationExc
78
80
79
81
if (sorted ) {
80
82
stream .sort (new Comparator <ComponentConfig >() {
83
+ @ Override
81
84
public int compare (ComponentConfig c1 , ComponentConfig c2 ) {
82
85
Integer p1 = getPosition (c1 );
83
86
Integer p2 = getPosition (c2 );
@@ -125,6 +128,7 @@ private Integer getPosition(ComponentConfig c) {
125
128
* Initializes a group configuration before its children have been processed.
126
129
* @param group the group configuration to process
127
130
*/
131
+ @ Override
128
132
protected void initializeGroup (GroupConfig group ) throws BeanIOConfigurationException {
129
133
130
134
if (group .getMinOccurs () == null ) {
@@ -171,6 +175,7 @@ protected void initializeGroup(GroupConfig group) throws BeanIOConfigurationExce
171
175
* Finalizes a group configuration after its children have been processed.
172
176
* @param group the group configuration to finalize
173
177
*/
178
+ @ Override
174
179
protected void finalizeGroup (GroupConfig group ) throws BeanIOConfigurationException {
175
180
176
181
// order must be set for all group children, or for none of them
@@ -225,6 +230,7 @@ else if (orderSet ^ (child.getOrder() != null)) {
225
230
* Initializes a record configuration before its children have been processed.
226
231
* @param record the record configuration to process
227
232
*/
233
+ @ Override
228
234
protected void initializeRecord (RecordConfig record ) throws BeanIOConfigurationException {
229
235
230
236
// a record is ignored if a 'class' was not set and the property root is null
@@ -262,6 +268,7 @@ protected void initializeRecord(RecordConfig record) throws BeanIOConfigurationE
262
268
* Finalizes a record configuration after its children have been processed.
263
269
* @param record the record configuration to process
264
270
*/
271
+ @ Override
265
272
protected void finalizeRecord (RecordConfig record ) throws BeanIOConfigurationException {
266
273
finalizeSegment (record );
267
274
@@ -274,6 +281,7 @@ protected void finalizeRecord(RecordConfig record) throws BeanIOConfigurationExc
274
281
* Initializes a segment configuration before its children have been processed.
275
282
* @param segment the segment configuration to process
276
283
*/
284
+ @ Override
277
285
protected void initializeSegment (SegmentConfig segment ) throws BeanIOConfigurationException {
278
286
279
287
if (segment .getName () == null ) {
@@ -339,6 +347,7 @@ protected void initializeSegment(SegmentConfig segment) throws BeanIOConfigurati
339
347
* Finalizes a segment configuration after its children have been processed.
340
348
* @param segment the segment configuration to process
341
349
*/
350
+ @ Override
342
351
protected void finalizeSegment (SegmentConfig segment ) throws BeanIOConfigurationException {
343
352
for (PropertyConfig child : segment .getPropertyList ()) {
344
353
if (child .isIdentifier ()) {
@@ -352,6 +361,7 @@ protected void finalizeSegment(SegmentConfig segment) throws BeanIOConfiguration
352
361
* Processes a field configuration.
353
362
* @param field the field configuration to process
354
363
*/
364
+ @ Override
355
365
protected void handleField (FieldConfig field ) throws BeanIOConfigurationException {
356
366
// ignore fields that belong to ignored records
357
367
if (recordIgnored ) {
@@ -418,6 +428,7 @@ protected void handleField(FieldConfig field) throws BeanIOConfigurationExceptio
418
428
* Processes a constant configuration.
419
429
* @param constant the constant configuration to process
420
430
*/
431
+ @ Override
421
432
protected void handleConstant (ConstantConfig constant ) throws BeanIOConfigurationException {
422
433
constant .setBound (true );
423
434
0 commit comments