org.milyn.edi.unedifact.d99b.DESADV.SegmentGroup6 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.DESADV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.DetailsOfTransport;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.PercentageDetails;
import org.milyn.edi.unedifact.d99b.common.TransportMovementDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DetailsOfTransport detailsOfTransport;
private List percentageDetails;
private TransportMovementDetails transportMovementDetails;
private List segmentGroup7;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(detailsOfTransport != null) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
detailsOfTransport.write(nodeWriter, delimiters);
}
if(percentageDetails != null && !percentageDetails.isEmpty()) {
for(PercentageDetails percentageDetailsInst : percentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetailsInst.write(nodeWriter, delimiters);
}
}
if(transportMovementDetails != null) {
nodeWriter.write("TMD");
nodeWriter.write(delimiters.getField());
transportMovementDetails.write(nodeWriter, delimiters);
}
if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
segmentGroup7Inst.write(nodeWriter, delimiters);
}
}
}
public DetailsOfTransport getDetailsOfTransport() {
return detailsOfTransport;
}
public SegmentGroup6 setDetailsOfTransport(DetailsOfTransport detailsOfTransport) {
this.detailsOfTransport = detailsOfTransport; return this;
}
public List getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup6 setPercentageDetails(List percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public TransportMovementDetails getTransportMovementDetails() {
return transportMovementDetails;
}
public SegmentGroup6 setTransportMovementDetails(TransportMovementDetails transportMovementDetails) {
this.transportMovementDetails = transportMovementDetails; return this;
}
public List getSegmentGroup7() {
return segmentGroup7;
}
public SegmentGroup6 setSegmentGroup7(List segmentGroup7) {
this.segmentGroup7 = segmentGroup7; return this;
}
}