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

org.milyn.edi.unedifact.d98a.REQOTE.SegmentGroup46 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.d98a.REQOTE;

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

public class SegmentGroup46 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private AllowanceOrCharge allowanceOrCharge;
    private List additionalInformation;
    private SegmentGroup47 segmentGroup47;
    private SegmentGroup48 segmentGroup48;
    private List segmentGroup49;
    private SegmentGroup50 segmentGroup50;
    private List segmentGroup51;

    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(segmentGroup47 != null) {
            segmentGroup47.write(nodeWriter, delimiters);
        }
        if(segmentGroup48 != null) {
            segmentGroup48.write(nodeWriter, delimiters);
        }
        if(segmentGroup49 != null && !segmentGroup49.isEmpty()) {
            for(SegmentGroup49 segmentGroup49Inst : segmentGroup49) {
                segmentGroup49Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup50 != null) {
            segmentGroup50.write(nodeWriter, delimiters);
        }
        if(segmentGroup51 != null && !segmentGroup51.isEmpty()) {
            for(SegmentGroup51 segmentGroup51Inst : segmentGroup51) {
                segmentGroup51Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public AllowanceOrCharge getAllowanceOrCharge() {
        return allowanceOrCharge;
    }

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

    public List getAdditionalInformation() {
        return additionalInformation;
    }

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

    public SegmentGroup47 getSegmentGroup47() {
        return segmentGroup47;
    }

    public SegmentGroup46 setSegmentGroup47(SegmentGroup47 segmentGroup47) {
        this.segmentGroup47 = segmentGroup47;  return this;
    }

    public SegmentGroup48 getSegmentGroup48() {
        return segmentGroup48;
    }

    public SegmentGroup46 setSegmentGroup48(SegmentGroup48 segmentGroup48) {
        this.segmentGroup48 = segmentGroup48;  return this;
    }

    public List getSegmentGroup49() {
        return segmentGroup49;
    }

    public SegmentGroup46 setSegmentGroup49(List segmentGroup49) {
        this.segmentGroup49 = segmentGroup49;  return this;
    }

    public SegmentGroup50 getSegmentGroup50() {
        return segmentGroup50;
    }

    public SegmentGroup46 setSegmentGroup50(SegmentGroup50 segmentGroup50) {
        this.segmentGroup50 = segmentGroup50;  return this;
    }

    public List getSegmentGroup51() {
        return segmentGroup51;
    }

    public SegmentGroup46 setSegmentGroup51(List segmentGroup51) {
        this.segmentGroup51 = segmentGroup51;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy