org.milyn.edi.unedifact.d99b.BUSCRD.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.BUSCRD;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.RequirementsAndConditions;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.InformationDetail;
import org.milyn.edi.unedifact.d99b.common.Measurements;
import org.milyn.edi.unedifact.d99b.common.Attribute;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private RequirementsAndConditions requirementsAndConditions;
private List informationDetail;
private List measurements;
private List attribute;
private List segmentGroup9;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(requirementsAndConditions != null) {
nodeWriter.write("RCS");
nodeWriter.write(delimiters.getField());
requirementsAndConditions.write(nodeWriter, delimiters);
}
if(informationDetail != null && !informationDetail.isEmpty()) {
for(InformationDetail informationDetailInst : informationDetail) {
nodeWriter.write("IFD");
nodeWriter.write(delimiters.getField());
informationDetailInst.write(nodeWriter, delimiters);
}
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(attribute != null && !attribute.isEmpty()) {
for(Attribute attributeInst : attribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
attributeInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
segmentGroup9Inst.write(nodeWriter, delimiters);
}
}
}
public RequirementsAndConditions getRequirementsAndConditions() {
return requirementsAndConditions;
}
public SegmentGroup8 setRequirementsAndConditions(RequirementsAndConditions requirementsAndConditions) {
this.requirementsAndConditions = requirementsAndConditions; return this;
}
public List getInformationDetail() {
return informationDetail;
}
public SegmentGroup8 setInformationDetail(List informationDetail) {
this.informationDetail = informationDetail; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup8 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getAttribute() {
return attribute;
}
public SegmentGroup8 setAttribute(List attribute) {
this.attribute = attribute; return this;
}
public List getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup8 setSegmentGroup9(List segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
}