org.milyn.edi.unedifact.d06b.BMISRM.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.BMISRM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.TransportInformation;
import org.milyn.edi.unedifact.d06b.common.EquipmentDetails;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.Reference;
import org.milyn.edi.unedifact.d06b.common.Quantity;
import org.milyn.edi.unedifact.d06b.common.Measurements;
import org.milyn.edi.unedifact.d06b.common.PercentageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup7 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private TransportInformation transportInformation;
private EquipmentDetails equipmentDetails;
private List reference;
private Quantity quantity;
private List measurements;
private List percentageDetails;
private List segmentGroup8;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(transportInformation != null) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
transportInformation.write(nodeWriter, delimiters);
}
if(equipmentDetails != null) {
nodeWriter.write("EQD");
nodeWriter.write(delimiters.getField());
equipmentDetails.write(nodeWriter, delimiters);
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(quantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantity.write(nodeWriter, delimiters);
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(percentageDetails != null && !percentageDetails.isEmpty()) {
for(PercentageDetails percentageDetailsInst : percentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetailsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
}
public TransportInformation getTransportInformation() {
return transportInformation;
}
public SegmentGroup7 setTransportInformation(TransportInformation transportInformation) {
this.transportInformation = transportInformation; return this;
}
public EquipmentDetails getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup7 setEquipmentDetails(EquipmentDetails equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup7 setReference(List reference) {
this.reference = reference; return this;
}
public Quantity getQuantity() {
return quantity;
}
public SegmentGroup7 setQuantity(Quantity quantity) {
this.quantity = quantity; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup7 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup7 setPercentageDetails(List percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
}