org.milyn.edi.unedifact.d05a.IPPOMO.SegmentGroup18 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.IPPOMO;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.PNAPartyIdentification;
import org.milyn.edi.unedifact.d05a.common.GEIProcessingInformation;
import org.milyn.edi.unedifact.d05a.common.ADRAddress;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup18 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PNAPartyIdentification pNAPartyIdentification;
private GEIProcessingInformation gEIProcessingInformation;
private ADRAddress aDRAddress;
private List fTXFreeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(pNAPartyIdentification != null) {
nodeWriter.write("PNA");
nodeWriter.write(delimiters.getField());
pNAPartyIdentification.write(nodeWriter, delimiters);
}
if(gEIProcessingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
gEIProcessingInformation.write(nodeWriter, delimiters);
}
if(aDRAddress != null) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
aDRAddress.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
}
public PNAPartyIdentification getPNAPartyIdentification() {
return pNAPartyIdentification;
}
public SegmentGroup18 setPNAPartyIdentification(PNAPartyIdentification pNAPartyIdentification) {
this.pNAPartyIdentification = pNAPartyIdentification; return this;
}
public GEIProcessingInformation getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup18 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
public ADRAddress getADRAddress() {
return aDRAddress;
}
public SegmentGroup18 setADRAddress(ADRAddress aDRAddress) {
this.aDRAddress = aDRAddress; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup18 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}