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

org.milyn.edi.unedifact.d99a.CUSPED.Cusped Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.smooks.edi.EDIMessage;    
import org.milyn.edi.unedifact.d99a.common.BGMBeginningOfMessage;    
import org.milyn.edi.unedifact.d99a.common.CSTCustomsStatusOfGoods;    
import java.util.List;    
import org.milyn.edi.unedifact.d99a.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d99a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d99a.common.GISGeneralIndicator;    
import org.milyn.edi.unedifact.d99a.common.FIIFinancialInstitutionInformation;    
import org.milyn.edi.unedifact.d99a.common.CNTControlTotal;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

@EDIMessage    
public class Cusped implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private BGMBeginningOfMessage bGMBeginningOfMessage;
    private CSTCustomsStatusOfGoods cSTCustomsStatusOfGoods;
    private List lOCPlaceLocationIdentification;
    private List dTMDateTimePeriod;
    private List gISGeneralIndicator;
    private FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation;
    private List segmentGroup1;
    private List segmentGroup2;
    private List segmentGroup4;
    private List segmentGroup6;
    private List cNTControlTotal;
    private List segmentGroup7;
    private SegmentGroup34 segmentGroup34;

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

        if(bGMBeginningOfMessage != null) {
            nodeWriter.write("BGM");
            nodeWriter.write(delimiters.getField());
            bGMBeginningOfMessage.write(nodeWriter, delimiters);
        }
        if(cSTCustomsStatusOfGoods != null) {
            nodeWriter.write("CST");
            nodeWriter.write(delimiters.getField());
            cSTCustomsStatusOfGoods.write(nodeWriter, delimiters);
        }
        if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
            for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(gISGeneralIndicator != null && !gISGeneralIndicator.isEmpty()) {
            for(GISGeneralIndicator gISGeneralIndicatorInst : gISGeneralIndicator) {
                nodeWriter.write("GIS");
                nodeWriter.write(delimiters.getField());
                gISGeneralIndicatorInst.write(nodeWriter, delimiters);
            }
        }
        if(fIIFinancialInstitutionInformation != null) {
            nodeWriter.write("FII");
            nodeWriter.write(delimiters.getField());
            fIIFinancialInstitutionInformation.write(nodeWriter, delimiters);
        }
        if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
            for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
                segmentGroup1Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup2 != null && !segmentGroup2.isEmpty()) {
            for(SegmentGroup2 segmentGroup2Inst : segmentGroup2) {
                segmentGroup2Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
            for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
                segmentGroup4Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
            for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
                segmentGroup6Inst.write(nodeWriter, delimiters);
            }
        }
        if(cNTControlTotal != null && !cNTControlTotal.isEmpty()) {
            for(CNTControlTotal cNTControlTotalInst : cNTControlTotal) {
                nodeWriter.write("CNT");
                nodeWriter.write(delimiters.getField());
                cNTControlTotalInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup34 != null) {
            segmentGroup34.write(nodeWriter, delimiters);
        }
    }

    public BGMBeginningOfMessage getBGMBeginningOfMessage() {
        return bGMBeginningOfMessage;
    }

    public Cusped setBGMBeginningOfMessage(BGMBeginningOfMessage bGMBeginningOfMessage) {
        this.bGMBeginningOfMessage = bGMBeginningOfMessage;  return this;
    }

    public CSTCustomsStatusOfGoods getCSTCustomsStatusOfGoods() {
        return cSTCustomsStatusOfGoods;
    }

    public Cusped setCSTCustomsStatusOfGoods(CSTCustomsStatusOfGoods cSTCustomsStatusOfGoods) {
        this.cSTCustomsStatusOfGoods = cSTCustomsStatusOfGoods;  return this;
    }

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

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

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getGISGeneralIndicator() {
        return gISGeneralIndicator;
    }

    public Cusped setGISGeneralIndicator(List gISGeneralIndicator) {
        this.gISGeneralIndicator = gISGeneralIndicator;  return this;
    }

    public FIIFinancialInstitutionInformation getFIIFinancialInstitutionInformation() {
        return fIIFinancialInstitutionInformation;
    }

    public Cusped setFIIFinancialInstitutionInformation(FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation) {
        this.fIIFinancialInstitutionInformation = fIIFinancialInstitutionInformation;  return this;
    }

    public List getSegmentGroup1() {
        return segmentGroup1;
    }

    public Cusped setSegmentGroup1(List segmentGroup1) {
        this.segmentGroup1 = segmentGroup1;  return this;
    }

    public List getSegmentGroup2() {
        return segmentGroup2;
    }

    public Cusped setSegmentGroup2(List segmentGroup2) {
        this.segmentGroup2 = segmentGroup2;  return this;
    }

    public List getSegmentGroup4() {
        return segmentGroup4;
    }

    public Cusped setSegmentGroup4(List segmentGroup4) {
        this.segmentGroup4 = segmentGroup4;  return this;
    }

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

    public Cusped setSegmentGroup6(List segmentGroup6) {
        this.segmentGroup6 = segmentGroup6;  return this;
    }

    public List getCNTControlTotal() {
        return cNTControlTotal;
    }

    public Cusped setCNTControlTotal(List cNTControlTotal) {
        this.cNTControlTotal = cNTControlTotal;  return this;
    }

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

    public Cusped setSegmentGroup7(List segmentGroup7) {
        this.segmentGroup7 = segmentGroup7;  return this;
    }

    public SegmentGroup34 getSegmentGroup34() {
        return segmentGroup34;
    }

    public Cusped setSegmentGroup34(SegmentGroup34 segmentGroup34) {
        this.segmentGroup34 = segmentGroup34;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy