org.milyn.edi.unedifact.d09b.GESMES.SegmentGroup11 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.GESMES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d09b.common.SCDStructureComponentDefinition;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.ATTAttribute;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup11 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private SCDStructureComponentDefinition sCDStructureComponentDefinition;
private List aTTAttribute;
private List segmentGroup12;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(sCDStructureComponentDefinition != null) {
nodeWriter.write("SCD");
nodeWriter.write(delimiters.getField());
sCDStructureComponentDefinition.write(nodeWriter, delimiters);
}
if(aTTAttribute != null && !aTTAttribute.isEmpty()) {
for(ATTAttribute aTTAttributeInst : aTTAttribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
aTTAttributeInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
segmentGroup12Inst.write(nodeWriter, delimiters);
}
}
}
public SCDStructureComponentDefinition getSCDStructureComponentDefinition() {
return sCDStructureComponentDefinition;
}
public SegmentGroup11 setSCDStructureComponentDefinition(SCDStructureComponentDefinition sCDStructureComponentDefinition) {
this.sCDStructureComponentDefinition = sCDStructureComponentDefinition; return this;
}
public List getATTAttribute() {
return aTTAttribute;
}
public SegmentGroup11 setATTAttribute(List aTTAttribute) {
this.aTTAttribute = aTTAttribute; return this;
}
public List getSegmentGroup12() {
return segmentGroup12;
}
public SegmentGroup11 setSegmentGroup12(List segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
}