org.milyn.edi.unedifact.d02a.BUSCRD.SegmentGroup19 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.BUSCRD;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.LOCPlaceLocationIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.RELRelationship;
import org.milyn.edi.unedifact.d02a.common.ADRAddress;
import org.milyn.edi.unedifact.d02a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d02a.common.COMCommunicationContact;
import org.milyn.edi.unedifact.d02a.common.IFDInformationDetail;
import org.milyn.edi.unedifact.d02a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup19 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private LOCPlaceLocationIdentification lOCPlaceLocationIdentification;
private List rELRelationship;
private List aDRAddress;
private List dTMDateTimePeriod;
private List cOMCommunicationContact;
private List iFDInformationDetail;
private List fTXFreeText;
private List segmentGroup20;
private List segmentGroup21;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(lOCPlaceLocationIdentification != null) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentification.write(nodeWriter, delimiters);
}
if(rELRelationship != null && !rELRelationship.isEmpty()) {
for(RELRelationship rELRelationshipInst : rELRelationship) {
nodeWriter.write("REL");
nodeWriter.write(delimiters.getField());
rELRelationshipInst.write(nodeWriter, delimiters);
}
}
if(aDRAddress != null && !aDRAddress.isEmpty()) {
for(ADRAddress aDRAddressInst : aDRAddress) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
aDRAddressInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(cOMCommunicationContact != null && !cOMCommunicationContact.isEmpty()) {
for(COMCommunicationContact cOMCommunicationContactInst : cOMCommunicationContact) {
nodeWriter.write("COM");
nodeWriter.write(delimiters.getField());
cOMCommunicationContactInst.write(nodeWriter, delimiters);
}
}
if(iFDInformationDetail != null && !iFDInformationDetail.isEmpty()) {
for(IFDInformationDetail iFDInformationDetailInst : iFDInformationDetail) {
nodeWriter.write("IFD");
nodeWriter.write(delimiters.getField());
iFDInformationDetailInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup20 != null && !segmentGroup20.isEmpty()) {
for(SegmentGroup20 segmentGroup20Inst : segmentGroup20) {
segmentGroup20Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup21 != null && !segmentGroup21.isEmpty()) {
for(SegmentGroup21 segmentGroup21Inst : segmentGroup21) {
segmentGroup21Inst.write(nodeWriter, delimiters);
}
}
}
public LOCPlaceLocationIdentification getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup19 setLOCPlaceLocationIdentification(LOCPlaceLocationIdentification lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public List getRELRelationship() {
return rELRelationship;
}
public SegmentGroup19 setRELRelationship(List rELRelationship) {
this.rELRelationship = rELRelationship; return this;
}
public List getADRAddress() {
return aDRAddress;
}
public SegmentGroup19 setADRAddress(List aDRAddress) {
this.aDRAddress = aDRAddress; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup19 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getCOMCommunicationContact() {
return cOMCommunicationContact;
}
public SegmentGroup19 setCOMCommunicationContact(List cOMCommunicationContact) {
this.cOMCommunicationContact = cOMCommunicationContact; return this;
}
public List getIFDInformationDetail() {
return iFDInformationDetail;
}
public SegmentGroup19 setIFDInformationDetail(List iFDInformationDetail) {
this.iFDInformationDetail = iFDInformationDetail; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup19 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup20() {
return segmentGroup20;
}
public SegmentGroup19 setSegmentGroup20(List segmentGroup20) {
this.segmentGroup20 = segmentGroup20; return this;
}
public List getSegmentGroup21() {
return segmentGroup21;
}
public SegmentGroup19 setSegmentGroup21(List segmentGroup21) {
this.segmentGroup21 = segmentGroup21; return this;
}
}