org.milyn.edi.unedifact.d02a.LREACT.SegmentGroup6 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.LREACT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.RTERateDetails;
import org.milyn.edi.unedifact.d02a.common.ATTAttribute;
import org.milyn.edi.unedifact.d02a.common.DTMDateTimePeriod;
import java.util.List;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private RTERateDetails rTERateDetails;
private ATTAttribute aTTAttribute;
private DTMDateTimePeriod dTMDateTimePeriod;
private List segmentGroup7;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(rTERateDetails != null) {
nodeWriter.write("RTE");
nodeWriter.write(delimiters.getField());
rTERateDetails.write(nodeWriter, delimiters);
}
if(aTTAttribute != null) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
aTTAttribute.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriod.write(nodeWriter, delimiters);
}
if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
segmentGroup7Inst.write(nodeWriter, delimiters);
}
}
}
public RTERateDetails getRTERateDetails() {
return rTERateDetails;
}
public SegmentGroup6 setRTERateDetails(RTERateDetails rTERateDetails) {
this.rTERateDetails = rTERateDetails; return this;
}
public ATTAttribute getATTAttribute() {
return aTTAttribute;
}
public SegmentGroup6 setATTAttribute(ATTAttribute aTTAttribute) {
this.aTTAttribute = aTTAttribute; return this;
}
public DTMDateTimePeriod getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup6 setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getSegmentGroup7() {
return segmentGroup7;
}
public SegmentGroup6 setSegmentGroup7(List segmentGroup7) {
this.segmentGroup7 = segmentGroup7; return this;
}
}