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

org.milyn.edi.unedifact.d02a.PROTAP.SegmentGroup16 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d02a.PROTAP;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d02a.common.LINLineItem;    
import org.milyn.edi.unedifact.d02a.common.STSStatus;    
import java.util.List;    
import org.milyn.edi.unedifact.d02a.common.BIIStructureIdentification;    
import org.milyn.edi.unedifact.d02a.common.RFFReference;    
import org.milyn.edi.unedifact.d02a.common.IMDItemDescription;    
import org.milyn.edi.unedifact.d02a.common.PNAPartyIdentification;    
import org.milyn.edi.unedifact.d02a.common.CCICharacteristicClassId;    
import org.milyn.edi.unedifact.d02a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d02a.common.FTXFreeText;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup16 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private LINLineItem lINLineItem;
    private STSStatus sTSStatus;
    private List bIIStructureIdentification;
    private List rFFReference;
    private List iMDItemDescription;
    private List pNAPartyIdentification;
    private List cCICharacteristicClassId;
    private List dTMDateTimePeriod;
    private List fTXFreeText;
    private List segmentGroup17;
    private List segmentGroup18;
    private List segmentGroup19;
    private List segmentGroup20;
    private List segmentGroup21;

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

        if(lINLineItem != null) {
            nodeWriter.write("LIN");
            nodeWriter.write(delimiters.getField());
            lINLineItem.write(nodeWriter, delimiters);
        }
        if(sTSStatus != null) {
            nodeWriter.write("STS");
            nodeWriter.write(delimiters.getField());
            sTSStatus.write(nodeWriter, delimiters);
        }
        if(bIIStructureIdentification != null && !bIIStructureIdentification.isEmpty()) {
            for(BIIStructureIdentification bIIStructureIdentificationInst : bIIStructureIdentification) {
                nodeWriter.write("BII");
                nodeWriter.write(delimiters.getField());
                bIIStructureIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(iMDItemDescription != null && !iMDItemDescription.isEmpty()) {
            for(IMDItemDescription iMDItemDescriptionInst : iMDItemDescription) {
                nodeWriter.write("IMD");
                nodeWriter.write(delimiters.getField());
                iMDItemDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(pNAPartyIdentification != null && !pNAPartyIdentification.isEmpty()) {
            for(PNAPartyIdentification pNAPartyIdentificationInst : pNAPartyIdentification) {
                nodeWriter.write("PNA");
                nodeWriter.write(delimiters.getField());
                pNAPartyIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(cCICharacteristicClassId != null && !cCICharacteristicClassId.isEmpty()) {
            for(CCICharacteristicClassId cCICharacteristicClassIdInst : cCICharacteristicClassId) {
                nodeWriter.write("CCI");
                nodeWriter.write(delimiters.getField());
                cCICharacteristicClassIdInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
            for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
                segmentGroup17Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
            for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
                segmentGroup18Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup19 != null && !segmentGroup19.isEmpty()) {
            for(SegmentGroup19 segmentGroup19Inst : segmentGroup19) {
                segmentGroup19Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup20 != null && !segmentGroup20.isEmpty()) {
            for(SegmentGroup20 segmentGroup20Inst : segmentGroup20) {
                segmentGroup20Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup21 != null && !segmentGroup21.isEmpty()) {
            for(SegmentGroup21 segmentGroup21Inst : segmentGroup21) {
                segmentGroup21Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public LINLineItem getLINLineItem() {
        return lINLineItem;
    }

    public SegmentGroup16 setLINLineItem(LINLineItem lINLineItem) {
        this.lINLineItem = lINLineItem;  return this;
    }

    public STSStatus getSTSStatus() {
        return sTSStatus;
    }

    public SegmentGroup16 setSTSStatus(STSStatus sTSStatus) {
        this.sTSStatus = sTSStatus;  return this;
    }

    public List getBIIStructureIdentification() {
        return bIIStructureIdentification;
    }

    public SegmentGroup16 setBIIStructureIdentification(List bIIStructureIdentification) {
        this.bIIStructureIdentification = bIIStructureIdentification;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup16 setRFFReference(List rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }

    public List getIMDItemDescription() {
        return iMDItemDescription;
    }

    public SegmentGroup16 setIMDItemDescription(List iMDItemDescription) {
        this.iMDItemDescription = iMDItemDescription;  return this;
    }

    public List getPNAPartyIdentification() {
        return pNAPartyIdentification;
    }

    public SegmentGroup16 setPNAPartyIdentification(List pNAPartyIdentification) {
        this.pNAPartyIdentification = pNAPartyIdentification;  return this;
    }

    public List getCCICharacteristicClassId() {
        return cCICharacteristicClassId;
    }

    public SegmentGroup16 setCCICharacteristicClassId(List cCICharacteristicClassId) {
        this.cCICharacteristicClassId = cCICharacteristicClassId;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup16 setFTXFreeText(List fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public List getSegmentGroup17() {
        return segmentGroup17;
    }

    public SegmentGroup16 setSegmentGroup17(List segmentGroup17) {
        this.segmentGroup17 = segmentGroup17;  return this;
    }

    public List getSegmentGroup18() {
        return segmentGroup18;
    }

    public SegmentGroup16 setSegmentGroup18(List segmentGroup18) {
        this.segmentGroup18 = segmentGroup18;  return this;
    }

    public List getSegmentGroup19() {
        return segmentGroup19;
    }

    public SegmentGroup16 setSegmentGroup19(List segmentGroup19) {
        this.segmentGroup19 = segmentGroup19;  return this;
    }

    public List getSegmentGroup20() {
        return segmentGroup20;
    }

    public SegmentGroup16 setSegmentGroup20(List segmentGroup20) {
        this.segmentGroup20 = segmentGroup20;  return this;
    }

    public List getSegmentGroup21() {
        return segmentGroup21;
    }

    public SegmentGroup16 setSegmentGroup21(List segmentGroup21) {
        this.segmentGroup21 = segmentGroup21;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy