org.milyn.edi.unedifact.d05a.SUPRES.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.SUPRES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.NADNameAndAddress;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.COMCommunicationContact;
import org.milyn.edi.unedifact.d05a.common.LANLanguage;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private NADNameAndAddress nADNameAndAddress;
private List cOMCommunicationContact;
private LANLanguage lANLanguage;
private SegmentGroup9 segmentGroup9;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(nADNameAndAddress != null) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nADNameAndAddress.write(nodeWriter, delimiters);
}
if(cOMCommunicationContact != null && !cOMCommunicationContact.isEmpty()) {
for(COMCommunicationContact cOMCommunicationContactInst : cOMCommunicationContact) {
nodeWriter.write("COM");
nodeWriter.write(delimiters.getField());
cOMCommunicationContactInst.write(nodeWriter, delimiters);
}
}
if(lANLanguage != null) {
nodeWriter.write("LAN");
nodeWriter.write(delimiters.getField());
lANLanguage.write(nodeWriter, delimiters);
}
if(segmentGroup9 != null) {
segmentGroup9.write(nodeWriter, delimiters);
}
}
public NADNameAndAddress getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup8 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public List getCOMCommunicationContact() {
return cOMCommunicationContact;
}
public SegmentGroup8 setCOMCommunicationContact(List cOMCommunicationContact) {
this.cOMCommunicationContact = cOMCommunicationContact; return this;
}
public LANLanguage getLANLanguage() {
return lANLanguage;
}
public SegmentGroup8 setLANLanguage(LANLanguage lANLanguage) {
this.lANLanguage = lANLanguage; return this;
}
public SegmentGroup9 getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup8 setSegmentGroup9(SegmentGroup9 segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
}