org.milyn.edi.unedifact.d99b.IFCSUM.SegmentGroup57 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.IFCSUM;
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 SegmentGroup57 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 segmentGroup58;
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(segmentGroup58 != null && !segmentGroup58.isEmpty()) {
for(SegmentGroup58 segmentGroup58Inst : segmentGroup58) {
segmentGroup58Inst.write(nodeWriter, delimiters);
}
}
}
public GovernmentalRequirements getGovernmentalRequirements() {
return governmentalRequirements;
}
public SegmentGroup57 setGovernmentalRequirements(GovernmentalRequirements governmentalRequirements) {
this.governmentalRequirements = governmentalRequirements; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup57 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup57 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getSealNumber() {
return sealNumber;
}
public SegmentGroup57 setSealNumber(List sealNumber) {
this.sealNumber = sealNumber; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup57 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup58() {
return segmentGroup58;
}
public SegmentGroup57 setSegmentGroup58(List segmentGroup58) {
this.segmentGroup58 = segmentGroup58; return this;
}
}