org.milyn.edi.unedifact.d05a.CUSDEC.Cusdec Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import org.milyn.edi.unedifact.d05a.common.BeginningOfMessage;
import org.milyn.edi.unedifact.d05a.common.CustomsStatusOfGoods;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d05a.common.ProcessingInformation;
import org.milyn.edi.unedifact.d05a.common.FinancialInstitutionInformation;
import org.milyn.edi.unedifact.d05a.common.Measurements;
import org.milyn.edi.unedifact.d05a.common.EquipmentDetails;
import org.milyn.edi.unedifact.d05a.common.SealNumber;
import org.milyn.edi.unedifact.d05a.common.FreeText;
import org.milyn.edi.unedifact.d05a.common.SectionControl;
import org.milyn.edi.unedifact.d05a.common.ControlTotal;
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 BeginningOfMessage beginningOfMessage;
private CustomsStatusOfGoods customsStatusOfGoods;
private List placeLocationIdentification;
private List dateTimePeriod;
private List processingInformation;
private FinancialInstitutionInformation financialInstitutionInformation;
private List measurements;
private List equipmentDetails;
private List sealNumber;
private List freeText;
private List segmentGroup1;
private List segmentGroup4;
private List segmentGroup5;
private List segmentGroup6;
private SegmentGroup7 segmentGroup7;
private List segmentGroup8;
private SectionControl sectionControl1;
private List segmentGroup10;
private List segmentGroup30;
private SectionControl sectionControl2;
private List controlTotal;
private List segmentGroup49;
private SegmentGroup50 segmentGroup50;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(beginningOfMessage != null) {
nodeWriter.write("BGM");
nodeWriter.write(delimiters.getField());
beginningOfMessage.write(nodeWriter, delimiters);
}
if(customsStatusOfGoods != null) {
nodeWriter.write("CST");
nodeWriter.write(delimiters.getField());
customsStatusOfGoods.write(nodeWriter, delimiters);
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(processingInformation != null && !processingInformation.isEmpty()) {
for(ProcessingInformation processingInformationInst : processingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformationInst.write(nodeWriter, delimiters);
}
}
if(financialInstitutionInformation != null) {
nodeWriter.write("FII");
nodeWriter.write(delimiters.getField());
financialInstitutionInformation.write(nodeWriter, delimiters);
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(equipmentDetails != null && !equipmentDetails.isEmpty()) {
for(EquipmentDetails equipmentDetailsInst : equipmentDetails) {
nodeWriter.write("EQD");
nodeWriter.write(delimiters.getField());
equipmentDetailsInst.write(nodeWriter, delimiters);
}
}
if(sealNumber != null && !sealNumber.isEmpty()) {
for(SealNumber sealNumberInst : sealNumber) {
nodeWriter.write("SEL");
nodeWriter.write(delimiters.getField());
sealNumberInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.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(sectionControl1 != null) {
nodeWriter.write("UNS");
nodeWriter.write(delimiters.getField());
sectionControl1.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(sectionControl2 != null) {
nodeWriter.write("UNS");
nodeWriter.write(delimiters.getField());
sectionControl2.write(nodeWriter, delimiters);
}
if(controlTotal != null && !controlTotal.isEmpty()) {
for(ControlTotal controlTotalInst : controlTotal) {
nodeWriter.write("CNT");
nodeWriter.write(delimiters.getField());
controlTotalInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup49 != null && !segmentGroup49.isEmpty()) {
for(SegmentGroup49 segmentGroup49Inst : segmentGroup49) {
segmentGroup49Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup50 != null) {
segmentGroup50.write(nodeWriter, delimiters);
}
}
public BeginningOfMessage getBeginningOfMessage() {
return beginningOfMessage;
}
public Cusdec setBeginningOfMessage(BeginningOfMessage beginningOfMessage) {
this.beginningOfMessage = beginningOfMessage; return this;
}
public CustomsStatusOfGoods getCustomsStatusOfGoods() {
return customsStatusOfGoods;
}
public Cusdec setCustomsStatusOfGoods(CustomsStatusOfGoods customsStatusOfGoods) {
this.customsStatusOfGoods = customsStatusOfGoods; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public Cusdec setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public Cusdec setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getProcessingInformation() {
return processingInformation;
}
public Cusdec setProcessingInformation(List processingInformation) {
this.processingInformation = processingInformation; return this;
}
public FinancialInstitutionInformation getFinancialInstitutionInformation() {
return financialInstitutionInformation;
}
public Cusdec setFinancialInstitutionInformation(FinancialInstitutionInformation financialInstitutionInformation) {
this.financialInstitutionInformation = financialInstitutionInformation; return this;
}
public List getMeasurements() {
return measurements;
}
public Cusdec setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getEquipmentDetails() {
return equipmentDetails;
}
public Cusdec setEquipmentDetails(List equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public List getSealNumber() {
return sealNumber;
}
public Cusdec setSealNumber(List sealNumber) {
this.sealNumber = sealNumber; return this;
}
public List getFreeText() {
return freeText;
}
public Cusdec setFreeText(List freeText) {
this.freeText = freeText; 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 SectionControl getSectionControl1() {
return sectionControl1;
}
public Cusdec setSectionControl1(SectionControl sectionControl1) {
this.sectionControl1 = sectionControl1; 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 SectionControl getSectionControl2() {
return sectionControl2;
}
public Cusdec setSectionControl2(SectionControl sectionControl2) {
this.sectionControl2 = sectionControl2; return this;
}
public List getControlTotal() {
return controlTotal;
}
public Cusdec setControlTotal(List controlTotal) {
this.controlTotal = controlTotal; 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;
}
}