org.milyn.edi.unedifact.d96a.GESMES.SegmentGroup9 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.GESMES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.StructureComponentDefinition;
import java.util.List;
import org.milyn.edi.unedifact.d96a.common.Attribute;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup9 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private StructureComponentDefinition structureComponentDefinition;
private List attribute;
private List segmentGroup10;
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(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
}
public StructureComponentDefinition getStructureComponentDefinition() {
return structureComponentDefinition;
}
public SegmentGroup9 setStructureComponentDefinition(StructureComponentDefinition structureComponentDefinition) {
this.structureComponentDefinition = structureComponentDefinition; return this;
}
public List getAttribute() {
return attribute;
}
public SegmentGroup9 setAttribute(List attribute) {
this.attribute = attribute; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup9 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
}