org.milyn.edi.unedifact.d02a.IPPOMO.SegmentGroup26 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.IPPOMO;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.ComponentDetails;
import org.milyn.edi.unedifact.d02a.common.GeneralIndicator;
import java.util.List;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup26 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ComponentDetails componentDetails;
private GeneralIndicator generalIndicator;
private List segmentGroup27;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(componentDetails != null) {
nodeWriter.write("COD");
nodeWriter.write(delimiters.getField());
componentDetails.write(nodeWriter, delimiters);
}
if(generalIndicator != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicator.write(nodeWriter, delimiters);
}
if(segmentGroup27 != null && !segmentGroup27.isEmpty()) {
for(SegmentGroup27 segmentGroup27Inst : segmentGroup27) {
segmentGroup27Inst.write(nodeWriter, delimiters);
}
}
}
public ComponentDetails getComponentDetails() {
return componentDetails;
}
public SegmentGroup26 setComponentDetails(ComponentDetails componentDetails) {
this.componentDetails = componentDetails; return this;
}
public GeneralIndicator getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup26 setGeneralIndicator(GeneralIndicator generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
public List getSegmentGroup27() {
return segmentGroup27;
}
public SegmentGroup26 setSegmentGroup27(List segmentGroup27) {
this.segmentGroup27 = segmentGroup27; return this;
}
}