org.milyn.edi.unedifact.d97a.CUSDEC.SegmentGroup1 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d97a.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d97a.common.RFFReference;
import org.milyn.edi.unedifact.d97a.common.DTMDateTimePeriod;
import java.util.List;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup1 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private RFFReference rFFReference;
private DTMDateTimePeriod dTMDateTimePeriod;
private List segmentGroup2;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(rFFReference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReference.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriod.write(nodeWriter, delimiters);
}
if(segmentGroup2 != null && !segmentGroup2.isEmpty()) {
for(SegmentGroup2 segmentGroup2Inst : segmentGroup2) {
segmentGroup2Inst.write(nodeWriter, delimiters);
}
}
}
public RFFReference getRFFReference() {
return rFFReference;
}
public SegmentGroup1 setRFFReference(RFFReference rFFReference) {
this.rFFReference = rFFReference; return this;
}
public DTMDateTimePeriod getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup1 setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getSegmentGroup2() {
return segmentGroup2;
}
public SegmentGroup1 setSegmentGroup2(List segmentGroup2) {
this.segmentGroup2 = segmentGroup2; return this;
}
}