org.milyn.edi.unedifact.d99b.IFTMIN.SegmentGroup4 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.IFTMIN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.GovernmentalRequirements;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d99b.common.SealNumber;
import org.milyn.edi.unedifact.d99b.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup4 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GovernmentalRequirements governmentalRequirements;
private List dateTimePeriod;
private List placeLocationIdentification;
private List sealNumber;
private List freeText;
private List segmentGroup5;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(governmentalRequirements != null) {
nodeWriter.write("GOR");
nodeWriter.write(delimiters.getField());
governmentalRequirements.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(sealNumber != null && !sealNumber.isEmpty()) {
for(SealNumber sealNumberInst : sealNumber) {
nodeWriter.write("SEL");
nodeWriter.write(delimiters.getField());
sealNumberInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
segmentGroup5Inst.write(nodeWriter, delimiters);
}
}
}
public GovernmentalRequirements getGovernmentalRequirements() {
return governmentalRequirements;
}
public SegmentGroup4 setGovernmentalRequirements(GovernmentalRequirements governmentalRequirements) {
this.governmentalRequirements = governmentalRequirements; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup4 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup4 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getSealNumber() {
return sealNumber;
}
public SegmentGroup4 setSealNumber(List sealNumber) {
this.sealNumber = sealNumber; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup4 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup5() {
return segmentGroup5;
}
public SegmentGroup4 setSegmentGroup5(List segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
}