org.milyn.edi.unedifact.d09b.CUSDEC.SegmentGroup46 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d09b.common.GIRRelatedIdentificationNumbers;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.GEIProcessingInformation;
import org.milyn.edi.unedifact.d09b.common.NADNameAndAddress;
import org.milyn.edi.unedifact.d09b.common.MEAMeasurements;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup46 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbers;
private List gEIProcessingInformation;
private NADNameAndAddress nADNameAndAddress;
private List mEAMeasurements;
private List segmentGroup47;
private List segmentGroup49;
private List segmentGroup50;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(gIRRelatedIdentificationNumbers != null) {
nodeWriter.write("GIR");
nodeWriter.write(delimiters.getField());
gIRRelatedIdentificationNumbers.write(nodeWriter, delimiters);
}
if(gEIProcessingInformation != null && !gEIProcessingInformation.isEmpty()) {
for(GEIProcessingInformation gEIProcessingInformationInst : gEIProcessingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
gEIProcessingInformationInst.write(nodeWriter, delimiters);
}
}
if(nADNameAndAddress != null) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nADNameAndAddress.write(nodeWriter, delimiters);
}
if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurementsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup47 != null && !segmentGroup47.isEmpty()) {
for(SegmentGroup47 segmentGroup47Inst : segmentGroup47) {
segmentGroup47Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup49 != null && !segmentGroup49.isEmpty()) {
for(SegmentGroup49 segmentGroup49Inst : segmentGroup49) {
segmentGroup49Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup50 != null && !segmentGroup50.isEmpty()) {
for(SegmentGroup50 segmentGroup50Inst : segmentGroup50) {
segmentGroup50Inst.write(nodeWriter, delimiters);
}
}
}
public GIRRelatedIdentificationNumbers getGIRRelatedIdentificationNumbers() {
return gIRRelatedIdentificationNumbers;
}
public SegmentGroup46 setGIRRelatedIdentificationNumbers(GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbers) {
this.gIRRelatedIdentificationNumbers = gIRRelatedIdentificationNumbers; return this;
}
public List getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup46 setGEIProcessingInformation(List gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
public NADNameAndAddress getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup46 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup46 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getSegmentGroup47() {
return segmentGroup47;
}
public SegmentGroup46 setSegmentGroup47(List segmentGroup47) {
this.segmentGroup47 = segmentGroup47; return this;
}
public List getSegmentGroup49() {
return segmentGroup49;
}
public SegmentGroup46 setSegmentGroup49(List segmentGroup49) {
this.segmentGroup49 = segmentGroup49; return this;
}
public List getSegmentGroup50() {
return segmentGroup50;
}
public SegmentGroup46 setSegmentGroup50(List segmentGroup50) {
this.segmentGroup50 = segmentGroup50; return this;
}
}