org.milyn.edi.unedifact.d11b.CUSDEC.Cusdec Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d11b.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import org.milyn.edi.unedifact.d11b.common.BGMBeginningOfMessage;
import org.milyn.edi.unedifact.d11b.common.CSTCustomsStatusOfGoods;
import java.util.List;
import org.milyn.edi.unedifact.d11b.common.LOCPlaceLocationIdentification;
import org.milyn.edi.unedifact.d11b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d11b.common.GEIProcessingInformation;
import org.milyn.edi.unedifact.d11b.common.FIIFinancialInstitutionInformation;
import org.milyn.edi.unedifact.d11b.common.MEAMeasurements;
import org.milyn.edi.unedifact.d11b.common.EQDEquipmentDetails;
import org.milyn.edi.unedifact.d11b.common.SELSealNumber;
import org.milyn.edi.unedifact.d11b.common.FTXFreeText;
import org.milyn.edi.unedifact.d11b.common.Uns;
import org.milyn.edi.unedifact.d11b.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 gEIProcessingInformation;
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 List segmentGroup10;
private Uns uNS1SectionControl;
private List segmentGroup11;
private List segmentGroup32;
private Uns uNS2SectionControl;
private List cNTControlTotal;
private List segmentGroup51;
private SegmentGroup52 segmentGroup52;
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(gEIProcessingInformation != null && !gEIProcessingInformation.isEmpty()) {
for(GEIProcessingInformation gEIProcessingInformationInst : gEIProcessingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
gEIProcessingInformationInst.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(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
if(uNS1SectionControl != null) {
nodeWriter.write("UNS");
nodeWriter.write(delimiters.getField());
uNS1SectionControl.write(nodeWriter, delimiters);
}
if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup32 != null && !segmentGroup32.isEmpty()) {
for(SegmentGroup32 segmentGroup32Inst : segmentGroup32) {
segmentGroup32Inst.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(segmentGroup51 != null && !segmentGroup51.isEmpty()) {
for(SegmentGroup51 segmentGroup51Inst : segmentGroup51) {
segmentGroup51Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup52 != null) {
segmentGroup52.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 getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public Cusdec setGEIProcessingInformation(List gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; 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 List getSegmentGroup10() {
return segmentGroup10;
}
public Cusdec setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public Uns getUNS1SectionControl() {
return uNS1SectionControl;
}
public Cusdec setUNS1SectionControl(Uns uNS1SectionControl) {
this.uNS1SectionControl = uNS1SectionControl; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public Cusdec setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public List getSegmentGroup32() {
return segmentGroup32;
}
public Cusdec setSegmentGroup32(List segmentGroup32) {
this.segmentGroup32 = segmentGroup32; 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 getSegmentGroup51() {
return segmentGroup51;
}
public Cusdec setSegmentGroup51(List segmentGroup51) {
this.segmentGroup51 = segmentGroup51; return this;
}
public SegmentGroup52 getSegmentGroup52() {
return segmentGroup52;
}
public Cusdec setSegmentGroup52(SegmentGroup52 segmentGroup52) {
this.segmentGroup52 = segmentGroup52; return this;
}
}