org.milyn.edi.unedifact.d06b.GESMES.SegmentGroup11 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.GESMES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.StructureComponentDefinition;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.Attribute;
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 StructureComponentDefinition structureComponentDefinition;
private List attribute;
private List segmentGroup12;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(structureComponentDefinition != null) {
nodeWriter.write("SCD");
nodeWriter.write(delimiters.getField());
structureComponentDefinition.write(nodeWriter, delimiters);
}
if(attribute != null && !attribute.isEmpty()) {
for(Attribute attributeInst : attribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
attributeInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
segmentGroup12Inst.write(nodeWriter, delimiters);
}
}
}
public StructureComponentDefinition getStructureComponentDefinition() {
return structureComponentDefinition;
}
public SegmentGroup11 setStructureComponentDefinition(StructureComponentDefinition structureComponentDefinition) {
this.structureComponentDefinition = structureComponentDefinition; return this;
}
public List getAttribute() {
return attribute;
}
public SegmentGroup11 setAttribute(List attribute) {
this.attribute = attribute; return this;
}
public List getSegmentGroup12() {
return segmentGroup12;
}
public SegmentGroup11 setSegmentGroup12(List segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
}