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

org.milyn.edi.unedifact.d99a.CUSDEC.Cusdec Maven / Gradle / Ivy

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

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.MEAMeasurements;    
import org.milyn.edi.unedifact.d99a.common.EQDEquipmentDetails;    
import org.milyn.edi.unedifact.d99a.common.SELSealNumber;    
import org.milyn.edi.unedifact.d99a.common.FTXFreeText;    
import org.milyn.edi.unedifact.d99a.common.Uns;    
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 Cusdec 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 mEAMeasurements;
    private List eQDEquipmentDetails;
    private List sELSealNumber;
    private List fTXFreeText;
    private List segmentGroup1;
    private List segmentGroup4;
    private List segmentGroup5;
    private List segmentGroup6;
    private SegmentGroup7 segmentGroup7;
    private List segmentGroup8;
    private Uns uNS1SectionControl;
    private List segmentGroup10;
    private List segmentGroup30;
    private Uns uNS2SectionControl;
    private List cNTControlTotal;
    private List segmentGroup49;
    private SegmentGroup50 segmentGroup50;

    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(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
            for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                mEAMeasurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(eQDEquipmentDetails != null && !eQDEquipmentDetails.isEmpty()) {
            for(EQDEquipmentDetails eQDEquipmentDetailsInst : eQDEquipmentDetails) {
                nodeWriter.write("EQD");
                nodeWriter.write(delimiters.getField());
                eQDEquipmentDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(sELSealNumber != null && !sELSealNumber.isEmpty()) {
            for(SELSealNumber sELSealNumberInst : sELSealNumber) {
                nodeWriter.write("SEL");
                nodeWriter.write(delimiters.getField());
                sELSealNumberInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
            for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
                segmentGroup1Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
            for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
                segmentGroup4Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
            for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
                segmentGroup5Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
            for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
                segmentGroup6Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null) {
            segmentGroup7.write(nodeWriter, delimiters);
        }
        if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
            for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
                segmentGroup8Inst.write(nodeWriter, delimiters);
            }
        }
        if(uNS1SectionControl != null) {
            nodeWriter.write("UNS");
            nodeWriter.write(delimiters.getField());
            uNS1SectionControl.write(nodeWriter, delimiters);
        }
        if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
            for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
                segmentGroup10Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup30 != null && !segmentGroup30.isEmpty()) {
            for(SegmentGroup30 segmentGroup30Inst : segmentGroup30) {
                segmentGroup30Inst.write(nodeWriter, delimiters);
            }
        }
        if(uNS2SectionControl != null) {
            nodeWriter.write("UNS");
            nodeWriter.write(delimiters.getField());
            uNS2SectionControl.write(nodeWriter, delimiters);
        }
        if(cNTControlTotal != null && !cNTControlTotal.isEmpty()) {
            for(CNTControlTotal cNTControlTotalInst : cNTControlTotal) {
                nodeWriter.write("CNT");
                nodeWriter.write(delimiters.getField());
                cNTControlTotalInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup49 != null && !segmentGroup49.isEmpty()) {
            for(SegmentGroup49 segmentGroup49Inst : segmentGroup49) {
                segmentGroup49Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup50 != null) {
            segmentGroup50.write(nodeWriter, delimiters);
        }
    }

    public BGMBeginningOfMessage getBGMBeginningOfMessage() {
        return bGMBeginningOfMessage;
    }

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

    public CSTCustomsStatusOfGoods getCSTCustomsStatusOfGoods() {
        return cSTCustomsStatusOfGoods;
    }

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

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

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

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getGISGeneralIndicator() {
        return gISGeneralIndicator;
    }

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

    public FIIFinancialInstitutionInformation getFIIFinancialInstitutionInformation() {
        return fIIFinancialInstitutionInformation;
    }

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

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

    public Cusdec setMEAMeasurements(List mEAMeasurements) {
        this.mEAMeasurements = mEAMeasurements;  return this;
    }

    public List getEQDEquipmentDetails() {
        return eQDEquipmentDetails;
    }

    public Cusdec setEQDEquipmentDetails(List eQDEquipmentDetails) {
        this.eQDEquipmentDetails = eQDEquipmentDetails;  return this;
    }

    public List getSELSealNumber() {
        return sELSealNumber;
    }

    public Cusdec setSELSealNumber(List sELSealNumber) {
        this.sELSealNumber = sELSealNumber;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getSegmentGroup1() {
        return segmentGroup1;
    }

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

    public List getSegmentGroup4() {
        return segmentGroup4;
    }

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

    public List getSegmentGroup5() {
        return segmentGroup5;
    }

    public Cusdec setSegmentGroup5(List segmentGroup5) {
        this.segmentGroup5 = segmentGroup5;  return this;
    }

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

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

    public SegmentGroup7 getSegmentGroup7() {
        return segmentGroup7;
    }

    public Cusdec setSegmentGroup7(SegmentGroup7 segmentGroup7) {
        this.segmentGroup7 = segmentGroup7;  return this;
    }

    public List getSegmentGroup8() {
        return segmentGroup8;
    }

    public Cusdec setSegmentGroup8(List segmentGroup8) {
        this.segmentGroup8 = segmentGroup8;  return this;
    }

    public Uns getUNS1SectionControl() {
        return uNS1SectionControl;
    }

    public Cusdec setUNS1SectionControl(Uns uNS1SectionControl) {
        this.uNS1SectionControl = uNS1SectionControl;  return this;
    }

    public List getSegmentGroup10() {
        return segmentGroup10;
    }

    public Cusdec setSegmentGroup10(List segmentGroup10) {
        this.segmentGroup10 = segmentGroup10;  return this;
    }

    public List getSegmentGroup30() {
        return segmentGroup30;
    }

    public Cusdec setSegmentGroup30(List segmentGroup30) {
        this.segmentGroup30 = segmentGroup30;  return this;
    }

    public Uns getUNS2SectionControl() {
        return uNS2SectionControl;
    }

    public Cusdec setUNS2SectionControl(Uns uNS2SectionControl) {
        this.uNS2SectionControl = uNS2SectionControl;  return this;
    }

    public List getCNTControlTotal() {
        return cNTControlTotal;
    }

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

    public List getSegmentGroup49() {
        return segmentGroup49;
    }

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

    public SegmentGroup50 getSegmentGroup50() {
        return segmentGroup50;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy