org.milyn.edi.unedifact.d99b.IFCSUM.SegmentGroup61 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.IFCSUM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.SplitGoodsPlacement;
import org.milyn.edi.unedifact.d99b.common.SequenceDetails;
import java.util.List;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup61 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private SplitGoodsPlacement splitGoodsPlacement;
private SequenceDetails sequenceDetails;
private List segmentGroup62;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(splitGoodsPlacement != null) {
nodeWriter.write("SGP");
nodeWriter.write(delimiters.getField());
splitGoodsPlacement.write(nodeWriter, delimiters);
}
if(sequenceDetails != null) {
nodeWriter.write("SEQ");
nodeWriter.write(delimiters.getField());
sequenceDetails.write(nodeWriter, delimiters);
}
if(segmentGroup62 != null && !segmentGroup62.isEmpty()) {
for(SegmentGroup62 segmentGroup62Inst : segmentGroup62) {
segmentGroup62Inst.write(nodeWriter, delimiters);
}
}
}
public SplitGoodsPlacement getSplitGoodsPlacement() {
return splitGoodsPlacement;
}
public SegmentGroup61 setSplitGoodsPlacement(SplitGoodsPlacement splitGoodsPlacement) {
this.splitGoodsPlacement = splitGoodsPlacement; return this;
}
public SequenceDetails getSequenceDetails() {
return sequenceDetails;
}
public SegmentGroup61 setSequenceDetails(SequenceDetails sequenceDetails) {
this.sequenceDetails = sequenceDetails; return this;
}
public List getSegmentGroup62() {
return segmentGroup62;
}
public SegmentGroup61 setSegmentGroup62(List segmentGroup62) {
this.segmentGroup62 = segmentGroup62; return this;
}
}