org.milyn.edi.unedifact.d07a.IFTMCA.SegmentGroup24 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d07a.IFTMCA;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d07a.common.GORGovernmentalRequirements;
import java.util.List;
import org.milyn.edi.unedifact.d07a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d07a.common.LOCPlaceLocationIdentification;
import org.milyn.edi.unedifact.d07a.common.SELSealNumber;
import org.milyn.edi.unedifact.d07a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup24 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 segmentGroup25;
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(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
segmentGroup25Inst.write(nodeWriter, delimiters);
}
}
}
public GORGovernmentalRequirements getGORGovernmentalRequirements() {
return gORGovernmentalRequirements;
}
public SegmentGroup24 setGORGovernmentalRequirements(GORGovernmentalRequirements gORGovernmentalRequirements) {
this.gORGovernmentalRequirements = gORGovernmentalRequirements; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup24 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup24 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public List getSELSealNumber() {
return sELSealNumber;
}
public SegmentGroup24 setSELSealNumber(List sELSealNumber) {
this.sELSealNumber = sELSealNumber; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup24 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup25() {
return segmentGroup25;
}
public SegmentGroup24 setSegmentGroup25(List segmentGroup25) {
this.segmentGroup25 = segmentGroup25; return this;
}
}