org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup37 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.GOVCBR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d09b.common.EQDEquipmentDetails;
import org.milyn.edi.unedifact.d09b.common.SEQSequenceDetails;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.GEIProcessingInformation;
import org.milyn.edi.unedifact.d09b.common.SELSealNumber;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup37 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private EQDEquipmentDetails eQDEquipmentDetails;
private SEQSequenceDetails sEQSequenceDetails;
private List gEIProcessingInformation;
private List sELSealNumber;
private List segmentGroup38;
private SegmentGroup40 segmentGroup40;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(eQDEquipmentDetails != null) {
nodeWriter.write("EQD");
nodeWriter.write(delimiters.getField());
eQDEquipmentDetails.write(nodeWriter, delimiters);
}
if(sEQSequenceDetails != null) {
nodeWriter.write("SEQ");
nodeWriter.write(delimiters.getField());
sEQSequenceDetails.write(nodeWriter, delimiters);
}
if(gEIProcessingInformation != null && !gEIProcessingInformation.isEmpty()) {
for(GEIProcessingInformation gEIProcessingInformationInst : gEIProcessingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
gEIProcessingInformationInst.write(nodeWriter, delimiters);
}
}
if(sELSealNumber != null && !sELSealNumber.isEmpty()) {
for(SELSealNumber sELSealNumberInst : sELSealNumber) {
nodeWriter.write("SEL");
nodeWriter.write(delimiters.getField());
sELSealNumberInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup38 != null && !segmentGroup38.isEmpty()) {
for(SegmentGroup38 segmentGroup38Inst : segmentGroup38) {
segmentGroup38Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup40 != null) {
segmentGroup40.write(nodeWriter, delimiters);
}
}
public EQDEquipmentDetails getEQDEquipmentDetails() {
return eQDEquipmentDetails;
}
public SegmentGroup37 setEQDEquipmentDetails(EQDEquipmentDetails eQDEquipmentDetails) {
this.eQDEquipmentDetails = eQDEquipmentDetails; return this;
}
public SEQSequenceDetails getSEQSequenceDetails() {
return sEQSequenceDetails;
}
public SegmentGroup37 setSEQSequenceDetails(SEQSequenceDetails sEQSequenceDetails) {
this.sEQSequenceDetails = sEQSequenceDetails; return this;
}
public List getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup37 setGEIProcessingInformation(List gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
public List getSELSealNumber() {
return sELSealNumber;
}
public SegmentGroup37 setSELSealNumber(List sELSealNumber) {
this.sELSealNumber = sELSealNumber; return this;
}
public List getSegmentGroup38() {
return segmentGroup38;
}
public SegmentGroup37 setSegmentGroup38(List segmentGroup38) {
this.segmentGroup38 = segmentGroup38; return this;
}
public SegmentGroup40 getSegmentGroup40() {
return segmentGroup40;
}
public SegmentGroup37 setSegmentGroup40(SegmentGroup40 segmentGroup40) {
this.segmentGroup40 = segmentGroup40; return this;
}
}