org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup151 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 SegmentGroup151 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private EQDEquipmentDetails eQDEquipmentDetails;
private SEQSequenceDetails sEQSequenceDetails;
private List gEIProcessingInformation;
private List sELSealNumber;
private List segmentGroup152;
private SegmentGroup154 segmentGroup154;
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(segmentGroup152 != null && !segmentGroup152.isEmpty()) {
for(SegmentGroup152 segmentGroup152Inst : segmentGroup152) {
segmentGroup152Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup154 != null) {
segmentGroup154.write(nodeWriter, delimiters);
}
}
public EQDEquipmentDetails getEQDEquipmentDetails() {
return eQDEquipmentDetails;
}
public SegmentGroup151 setEQDEquipmentDetails(EQDEquipmentDetails eQDEquipmentDetails) {
this.eQDEquipmentDetails = eQDEquipmentDetails; return this;
}
public SEQSequenceDetails getSEQSequenceDetails() {
return sEQSequenceDetails;
}
public SegmentGroup151 setSEQSequenceDetails(SEQSequenceDetails sEQSequenceDetails) {
this.sEQSequenceDetails = sEQSequenceDetails; return this;
}
public List getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup151 setGEIProcessingInformation(List gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
public List getSELSealNumber() {
return sELSealNumber;
}
public SegmentGroup151 setSELSealNumber(List sELSealNumber) {
this.sELSealNumber = sELSealNumber; return this;
}
public List getSegmentGroup152() {
return segmentGroup152;
}
public SegmentGroup151 setSegmentGroup152(List segmentGroup152) {
this.segmentGroup152 = segmentGroup152; return this;
}
public SegmentGroup154 getSegmentGroup154() {
return segmentGroup154;
}
public SegmentGroup151 setSegmentGroup154(SegmentGroup154 segmentGroup154) {
this.segmentGroup154 = segmentGroup154; return this;
}
}