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

com.nordea.oss.copybook.serializers.FullLastArrayShortMapper Maven / Gradle / Ivy

Go to download

CopyBook serializer and deserializer for Java where CopyBook lines are used to annotate a normal Java class

The newest version!
/*
 * Copyright (c) 2015. Troels Liebe Bentsen 
 * Copyright (c) 2016. Nordea Bank AB
 * Licensed under the MIT license (LICENSE.txt)
 */

package com.nordea.oss.copybook.serializers;

public class FullLastArrayShortMapper extends FullMapper {
    @Override
    public void initialize(CopyBookSerializerConfig config) {
        super.initialize(config);
        CopyBookField lastField = this.fields.get(this.fields.size() - 1);
        if (lastField.isArray()) {
            lastField.setMinOccurs(0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy