org.milyn.edi.unedifact.d02a.SANCRT.SegmentGroup5 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.SANCRT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.PACPackage;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.PCIPackageIdentification;
import org.milyn.edi.unedifact.d02a.common.MEAMeasurements;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup5 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PACPackage pACPackage;
private List pCIPackageIdentification;
private List mEAMeasurements;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(pACPackage != null) {
nodeWriter.write("PAC");
nodeWriter.write(delimiters.getField());
pACPackage.write(nodeWriter, delimiters);
}
if(pCIPackageIdentification != null && !pCIPackageIdentification.isEmpty()) {
for(PCIPackageIdentification pCIPackageIdentificationInst : pCIPackageIdentification) {
nodeWriter.write("PCI");
nodeWriter.write(delimiters.getField());
pCIPackageIdentificationInst.write(nodeWriter, delimiters);
}
}
if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurementsInst.write(nodeWriter, delimiters);
}
}
}
public PACPackage getPACPackage() {
return pACPackage;
}
public SegmentGroup5 setPACPackage(PACPackage pACPackage) {
this.pACPackage = pACPackage; return this;
}
public List getPCIPackageIdentification() {
return pCIPackageIdentification;
}
public SegmentGroup5 setPCIPackageIdentification(List pCIPackageIdentification) {
this.pCIPackageIdentification = pCIPackageIdentification; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup5 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
}