org.milyn.edi.unedifact.d13a.IFCSUM.SegmentGroup60 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d13a.IFCSUM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d13a.common.GORGovernmentalRequirements;
import java.util.List;
import org.milyn.edi.unedifact.d13a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d13a.common.LOCPlaceLocationIdentification;
import org.milyn.edi.unedifact.d13a.common.SELSealNumber;
import org.milyn.edi.unedifact.d13a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup60 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GORGovernmentalRequirements gORGovernmentalRequirements;
private List dTMDateTimePeriod;
private List lOCPlaceLocationIdentification;
private List sELSealNumber;
private List fTXFreeText;
private List segmentGroup61;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(gORGovernmentalRequirements != null) {
nodeWriter.write("GOR");
nodeWriter.write(delimiters.getField());
gORGovernmentalRequirements.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(sELSealNumber != null && !sELSealNumber.isEmpty()) {
for(SELSealNumber sELSealNumberInst : sELSealNumber) {
nodeWriter.write("SEL");
nodeWriter.write(delimiters.getField());
sELSealNumberInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup61 != null && !segmentGroup61.isEmpty()) {
for(SegmentGroup61 segmentGroup61Inst : segmentGroup61) {
segmentGroup61Inst.write(nodeWriter, delimiters);
}
}
}
public GORGovernmentalRequirements getGORGovernmentalRequirements() {
return gORGovernmentalRequirements;
}
public SegmentGroup60 setGORGovernmentalRequirements(GORGovernmentalRequirements gORGovernmentalRequirements) {
this.gORGovernmentalRequirements = gORGovernmentalRequirements; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup60 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup60 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public List getSELSealNumber() {
return sELSealNumber;
}
public SegmentGroup60 setSELSealNumber(List sELSealNumber) {
this.sELSealNumber = sELSealNumber; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup60 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup61() {
return segmentGroup61;
}
public SegmentGroup60 setSegmentGroup61(List segmentGroup61) {
this.segmentGroup61 = segmentGroup61; return this;
}
}