org.milyn.edi.unedifact.d06b.CUSPED.SegmentGroup29 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.CUSPED;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.RelatedIdentificationNumbers;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;
import org.milyn.edi.unedifact.d06b.common.NameAndAddress;
import org.milyn.edi.unedifact.d06b.common.Measurements;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup29 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private RelatedIdentificationNumbers relatedIdentificationNumbers;
private List processingInformation;
private NameAndAddress nameAndAddress;
private List measurements;
private List segmentGroup30;
private List segmentGroup32;
private List segmentGroup33;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(relatedIdentificationNumbers != null) {
nodeWriter.write("GIR");
nodeWriter.write(delimiters.getField());
relatedIdentificationNumbers.write(nodeWriter, delimiters);
}
if(processingInformation != null && !processingInformation.isEmpty()) {
for(ProcessingInformation processingInformationInst : processingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformationInst.write(nodeWriter, delimiters);
}
}
if(nameAndAddress != null) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddress.write(nodeWriter, delimiters);
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup30 != null && !segmentGroup30.isEmpty()) {
for(SegmentGroup30 segmentGroup30Inst : segmentGroup30) {
segmentGroup30Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup32 != null && !segmentGroup32.isEmpty()) {
for(SegmentGroup32 segmentGroup32Inst : segmentGroup32) {
segmentGroup32Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup33 != null && !segmentGroup33.isEmpty()) {
for(SegmentGroup33 segmentGroup33Inst : segmentGroup33) {
segmentGroup33Inst.write(nodeWriter, delimiters);
}
}
}
public RelatedIdentificationNumbers getRelatedIdentificationNumbers() {
return relatedIdentificationNumbers;
}
public SegmentGroup29 setRelatedIdentificationNumbers(RelatedIdentificationNumbers relatedIdentificationNumbers) {
this.relatedIdentificationNumbers = relatedIdentificationNumbers; return this;
}
public List getProcessingInformation() {
return processingInformation;
}
public SegmentGroup29 setProcessingInformation(List processingInformation) {
this.processingInformation = processingInformation; return this;
}
public NameAndAddress getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup29 setNameAndAddress(NameAndAddress nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup29 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getSegmentGroup30() {
return segmentGroup30;
}
public SegmentGroup29 setSegmentGroup30(List segmentGroup30) {
this.segmentGroup30 = segmentGroup30; return this;
}
public List getSegmentGroup32() {
return segmentGroup32;
}
public SegmentGroup29 setSegmentGroup32(List segmentGroup32) {
this.segmentGroup32 = segmentGroup32; return this;
}
public List getSegmentGroup33() {
return segmentGroup33;
}
public SegmentGroup29 setSegmentGroup33(List segmentGroup33) {
this.segmentGroup33 = segmentGroup33; return this;
}
}