org.milyn.edi.unedifact.d97a.RECADV.SegmentGroup10 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d97a.RECADV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d97a.common.TDTDetailsOfTransport;
import java.util.List;
import org.milyn.edi.unedifact.d97a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d97a.common.CDIPhysicalOrLogicalState;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup10 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private TDTDetailsOfTransport tDTDetailsOfTransport;
private List dTMDateTimePeriod;
private List cDIPhysicalOrLogicalState;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(tDTDetailsOfTransport != null) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
tDTDetailsOfTransport.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(cDIPhysicalOrLogicalState != null && !cDIPhysicalOrLogicalState.isEmpty()) {
for(CDIPhysicalOrLogicalState cDIPhysicalOrLogicalStateInst : cDIPhysicalOrLogicalState) {
nodeWriter.write("CDI");
nodeWriter.write(delimiters.getField());
cDIPhysicalOrLogicalStateInst.write(nodeWriter, delimiters);
}
}
}
public TDTDetailsOfTransport getTDTDetailsOfTransport() {
return tDTDetailsOfTransport;
}
public SegmentGroup10 setTDTDetailsOfTransport(TDTDetailsOfTransport tDTDetailsOfTransport) {
this.tDTDetailsOfTransport = tDTDetailsOfTransport; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup10 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getCDIPhysicalOrLogicalState() {
return cDIPhysicalOrLogicalState;
}
public SegmentGroup10 setCDIPhysicalOrLogicalState(List cDIPhysicalOrLogicalState) {
this.cDIPhysicalOrLogicalState = cDIPhysicalOrLogicalState; return this;
}
}