org.milyn.edi.unedifact.d02a.GESMES.SegmentGroup16 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.GESMES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.SCDStructureComponentDefinition;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.ATTAttribute;
import org.milyn.edi.unedifact.d02a.common.DTMDateTimePeriod;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup16 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private SCDStructureComponentDefinition sCDStructureComponentDefinition;
private List aTTAttribute;
private List dTMDateTimePeriod;
private List segmentGroup17;
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(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
segmentGroup17Inst.write(nodeWriter, delimiters);
}
}
}
public SCDStructureComponentDefinition getSCDStructureComponentDefinition() {
return sCDStructureComponentDefinition;
}
public SegmentGroup16 setSCDStructureComponentDefinition(SCDStructureComponentDefinition sCDStructureComponentDefinition) {
this.sCDStructureComponentDefinition = sCDStructureComponentDefinition; return this;
}
public List getATTAttribute() {
return aTTAttribute;
}
public SegmentGroup16 setATTAttribute(List aTTAttribute) {
this.aTTAttribute = aTTAttribute; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup16 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getSegmentGroup17() {
return segmentGroup17;
}
public SegmentGroup16 setSegmentGroup17(List segmentGroup17) {
this.segmentGroup17 = segmentGroup17; return this;
}
}