org.milyn.edi.unedifact.d94a.MOVINS.SegmentGroup2 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d94a.MOVINS;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d94a.common.HANHandlingInstructions;
import java.util.List;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup2 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private HANHandlingInstructions hANHandlingInstructions;
private List segmentGroup3;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(hANHandlingInstructions != null) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
hANHandlingInstructions.write(nodeWriter, delimiters);
}
if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
segmentGroup3Inst.write(nodeWriter, delimiters);
}
}
}
public HANHandlingInstructions getHANHandlingInstructions() {
return hANHandlingInstructions;
}
public SegmentGroup2 setHANHandlingInstructions(HANHandlingInstructions hANHandlingInstructions) {
this.hANHandlingInstructions = hANHandlingInstructions; return this;
}
public List getSegmentGroup3() {
return segmentGroup3;
}
public SegmentGroup2 setSegmentGroup3(List segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
}