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

org.milyn.edi.unedifact.d96a.PRICAT.SegmentGroup38 Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d96a.PRICAT;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d96a.common.AllowanceOrCharge;    
import java.util.List;    
import org.milyn.edi.unedifact.d96a.common.AdditionalInformation;    
import org.milyn.edi.unedifact.d96a.common.DateTimePeriod;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup38 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private AllowanceOrCharge allowanceOrCharge;
    private List additionalInformation;
    private List dateTimePeriod;
    private SegmentGroup39 segmentGroup39;
    private SegmentGroup40 segmentGroup40;
    private List segmentGroup41;
    private SegmentGroup42 segmentGroup42;
    private List segmentGroup43;

    public void write(Writer writer, Delimiters delimiters) throws IOException {
        
        Writer nodeWriter = writer;

        if(allowanceOrCharge != null) {
            nodeWriter.write("ALC");
            nodeWriter.write(delimiters.getField());
            allowanceOrCharge.write(nodeWriter, delimiters);
        }
        if(additionalInformation != null && !additionalInformation.isEmpty()) {
            for(AdditionalInformation additionalInformationInst : additionalInformation) {
                nodeWriter.write("ALI");
                nodeWriter.write(delimiters.getField());
                additionalInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup39 != null) {
            segmentGroup39.write(nodeWriter, delimiters);
        }
        if(segmentGroup40 != null) {
            segmentGroup40.write(nodeWriter, delimiters);
        }
        if(segmentGroup41 != null && !segmentGroup41.isEmpty()) {
            for(SegmentGroup41 segmentGroup41Inst : segmentGroup41) {
                segmentGroup41Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup42 != null) {
            segmentGroup42.write(nodeWriter, delimiters);
        }
        if(segmentGroup43 != null && !segmentGroup43.isEmpty()) {
            for(SegmentGroup43 segmentGroup43Inst : segmentGroup43) {
                segmentGroup43Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public AllowanceOrCharge getAllowanceOrCharge() {
        return allowanceOrCharge;
    }

    public SegmentGroup38 setAllowanceOrCharge(AllowanceOrCharge allowanceOrCharge) {
        this.allowanceOrCharge = allowanceOrCharge;  return this;
    }

    public List getAdditionalInformation() {
        return additionalInformation;
    }

    public SegmentGroup38 setAdditionalInformation(List additionalInformation) {
        this.additionalInformation = additionalInformation;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup38 setDateTimePeriod(List dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public SegmentGroup39 getSegmentGroup39() {
        return segmentGroup39;
    }

    public SegmentGroup38 setSegmentGroup39(SegmentGroup39 segmentGroup39) {
        this.segmentGroup39 = segmentGroup39;  return this;
    }

    public SegmentGroup40 getSegmentGroup40() {
        return segmentGroup40;
    }

    public SegmentGroup38 setSegmentGroup40(SegmentGroup40 segmentGroup40) {
        this.segmentGroup40 = segmentGroup40;  return this;
    }

    public List getSegmentGroup41() {
        return segmentGroup41;
    }

    public SegmentGroup38 setSegmentGroup41(List segmentGroup41) {
        this.segmentGroup41 = segmentGroup41;  return this;
    }

    public SegmentGroup42 getSegmentGroup42() {
        return segmentGroup42;
    }

    public SegmentGroup38 setSegmentGroup42(SegmentGroup42 segmentGroup42) {
        this.segmentGroup42 = segmentGroup42;  return this;
    }

    public List getSegmentGroup43() {
        return segmentGroup43;
    }

    public SegmentGroup38 setSegmentGroup43(List segmentGroup43) {
        this.segmentGroup43 = segmentGroup43;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy