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

org.milyn.edi.unedifact.d16a.GOVCBR.SegmentGroup71 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d16a.GOVCBR;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d16a.common.GIRRelatedIdentificationNumbers;    
import java.util.List;    
import org.milyn.edi.unedifact.d16a.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d16a.common.VLIValueListIdentification;    
import org.milyn.edi.unedifact.d16a.common.DTMDateTimePeriod;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup71 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbers;
    private List lOCPlaceLocationIdentification;
    private VLIValueListIdentification vLIValueListIdentification;
    private List dTMDateTimePeriod;
    private SegmentGroup72 segmentGroup72;

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

        if(gIRRelatedIdentificationNumbers != null) {
            nodeWriter.write("GIR");
            nodeWriter.write(delimiters.getField());
            gIRRelatedIdentificationNumbers.write(nodeWriter, delimiters);
        }
        if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
            for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(vLIValueListIdentification != null) {
            nodeWriter.write("VLI");
            nodeWriter.write(delimiters.getField());
            vLIValueListIdentification.write(nodeWriter, delimiters);
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup72 != null) {
            segmentGroup72.write(nodeWriter, delimiters);
        }
    }

    public GIRRelatedIdentificationNumbers getGIRRelatedIdentificationNumbers() {
        return gIRRelatedIdentificationNumbers;
    }

    public SegmentGroup71 setGIRRelatedIdentificationNumbers(GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbers) {
        this.gIRRelatedIdentificationNumbers = gIRRelatedIdentificationNumbers;  return this;
    }

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

    public SegmentGroup71 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
        this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification;  return this;
    }

    public VLIValueListIdentification getVLIValueListIdentification() {
        return vLIValueListIdentification;
    }

    public SegmentGroup71 setVLIValueListIdentification(VLIValueListIdentification vLIValueListIdentification) {
        this.vLIValueListIdentification = vLIValueListIdentification;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup71 setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public SegmentGroup72 getSegmentGroup72() {
        return segmentGroup72;
    }

    public SegmentGroup71 setSegmentGroup72(SegmentGroup72 segmentGroup72) {
        this.segmentGroup72 = segmentGroup72;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy