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.PartyIdentification;
import org.milyn.edi.unedifact.d05a.common.ProcessingInformation;
import org.milyn.edi.unedifact.d05a.common.Address;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.FreeText;
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 PartyIdentification partyIdentification;
private ProcessingInformation processingInformation;
private Address address;
private List freeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(partyIdentification != null) {
nodeWriter.write("PNA");
nodeWriter.write(delimiters.getField());
partyIdentification.write(nodeWriter, delimiters);
}
if(processingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformation.write(nodeWriter, delimiters);
}
if(address != null) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
address.write(nodeWriter, delimiters);
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
}
public PartyIdentification getPartyIdentification() {
return partyIdentification;
}
public SegmentGroup18 setPartyIdentification(PartyIdentification partyIdentification) {
this.partyIdentification = partyIdentification; return this;
}
public ProcessingInformation getProcessingInformation() {
return processingInformation;
}
public SegmentGroup18 setProcessingInformation(ProcessingInformation processingInformation) {
this.processingInformation = processingInformation; return this;
}
public Address getAddress() {
return address;
}
public SegmentGroup18 setAddress(Address address) {
this.address = address; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup18 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
}