org.milyn.edi.unedifact.d05a.ICSOLI.SegmentGroup3 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.ICSOLI;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.ADRAddress;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.COMCommunicationContact;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup3 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ADRAddress aDRAddress;
private List cOMCommunicationContact;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(aDRAddress != null) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
aDRAddress.write(nodeWriter, delimiters);
}
if(cOMCommunicationContact != null && !cOMCommunicationContact.isEmpty()) {
for(COMCommunicationContact cOMCommunicationContactInst : cOMCommunicationContact) {
nodeWriter.write("COM");
nodeWriter.write(delimiters.getField());
cOMCommunicationContactInst.write(nodeWriter, delimiters);
}
}
}
public ADRAddress getADRAddress() {
return aDRAddress;
}
public SegmentGroup3 setADRAddress(ADRAddress aDRAddress) {
this.aDRAddress = aDRAddress; return this;
}
public List getCOMCommunicationContact() {
return cOMCommunicationContact;
}
public SegmentGroup3 setCOMCommunicationContact(List cOMCommunicationContact) {
this.cOMCommunicationContact = cOMCommunicationContact; return this;
}
}