org.milyn.edi.unedifact.d09b.MEDRUC.SegmentGroup10 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.MEDRUC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d09b.common.PNAPartyIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.RFFReference;
import org.milyn.edi.unedifact.d09b.common.ADRAddress;
import org.milyn.edi.unedifact.d09b.common.COMCommunicationContact;
import org.milyn.edi.unedifact.d09b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d09b.common.PDIPersonDemographicInformation;
import org.milyn.edi.unedifact.d09b.common.RSLResult;
import org.milyn.edi.unedifact.d09b.common.NATNationality;
import org.milyn.edi.unedifact.d09b.common.LANLanguage;
import org.milyn.edi.unedifact.d09b.common.HANHandlingInstructions;
import org.milyn.edi.unedifact.d09b.common.RELRelationship;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup10 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PNAPartyIdentification pNAPartyIdentification;
private List rFFReference;
private List aDRAddress;
private List cOMCommunicationContact;
private List dTMDateTimePeriod;
private PDIPersonDemographicInformation pDIPersonDemographicInformation;
private List rSLResult;
private List nATNationality;
private List lANLanguage;
private List hANHandlingInstructions;
private RELRelationship rELRelationship;
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(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(aDRAddress != null && !aDRAddress.isEmpty()) {
for(ADRAddress aDRAddressInst : aDRAddress) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
aDRAddressInst.write(nodeWriter, delimiters);
}
}
if(cOMCommunicationContact != null && !cOMCommunicationContact.isEmpty()) {
for(COMCommunicationContact cOMCommunicationContactInst : cOMCommunicationContact) {
nodeWriter.write("COM");
nodeWriter.write(delimiters.getField());
cOMCommunicationContactInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(pDIPersonDemographicInformation != null) {
nodeWriter.write("PDI");
nodeWriter.write(delimiters.getField());
pDIPersonDemographicInformation.write(nodeWriter, delimiters);
}
if(rSLResult != null && !rSLResult.isEmpty()) {
for(RSLResult rSLResultInst : rSLResult) {
nodeWriter.write("RSL");
nodeWriter.write(delimiters.getField());
rSLResultInst.write(nodeWriter, delimiters);
}
}
if(nATNationality != null && !nATNationality.isEmpty()) {
for(NATNationality nATNationalityInst : nATNationality) {
nodeWriter.write("NAT");
nodeWriter.write(delimiters.getField());
nATNationalityInst.write(nodeWriter, delimiters);
}
}
if(lANLanguage != null && !lANLanguage.isEmpty()) {
for(LANLanguage lANLanguageInst : lANLanguage) {
nodeWriter.write("LAN");
nodeWriter.write(delimiters.getField());
lANLanguageInst.write(nodeWriter, delimiters);
}
}
if(hANHandlingInstructions != null && !hANHandlingInstructions.isEmpty()) {
for(HANHandlingInstructions hANHandlingInstructionsInst : hANHandlingInstructions) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
hANHandlingInstructionsInst.write(nodeWriter, delimiters);
}
}
if(rELRelationship != null) {
nodeWriter.write("REL");
nodeWriter.write(delimiters.getField());
rELRelationship.write(nodeWriter, delimiters);
}
}
public PNAPartyIdentification getPNAPartyIdentification() {
return pNAPartyIdentification;
}
public SegmentGroup10 setPNAPartyIdentification(PNAPartyIdentification pNAPartyIdentification) {
this.pNAPartyIdentification = pNAPartyIdentification; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup10 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getADRAddress() {
return aDRAddress;
}
public SegmentGroup10 setADRAddress(List aDRAddress) {
this.aDRAddress = aDRAddress; return this;
}
public List getCOMCommunicationContact() {
return cOMCommunicationContact;
}
public SegmentGroup10 setCOMCommunicationContact(List cOMCommunicationContact) {
this.cOMCommunicationContact = cOMCommunicationContact; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup10 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public PDIPersonDemographicInformation getPDIPersonDemographicInformation() {
return pDIPersonDemographicInformation;
}
public SegmentGroup10 setPDIPersonDemographicInformation(PDIPersonDemographicInformation pDIPersonDemographicInformation) {
this.pDIPersonDemographicInformation = pDIPersonDemographicInformation; return this;
}
public List getRSLResult() {
return rSLResult;
}
public SegmentGroup10 setRSLResult(List rSLResult) {
this.rSLResult = rSLResult; return this;
}
public List getNATNationality() {
return nATNationality;
}
public SegmentGroup10 setNATNationality(List nATNationality) {
this.nATNationality = nATNationality; return this;
}
public List getLANLanguage() {
return lANLanguage;
}
public SegmentGroup10 setLANLanguage(List lANLanguage) {
this.lANLanguage = lANLanguage; return this;
}
public List getHANHandlingInstructions() {
return hANHandlingInstructions;
}
public SegmentGroup10 setHANHandlingInstructions(List hANHandlingInstructions) {
this.hANHandlingInstructions = hANHandlingInstructions; return this;
}
public RELRelationship getRELRelationship() {
return rELRelationship;
}
public SegmentGroup10 setRELRelationship(RELRelationship rELRelationship) {
this.rELRelationship = rELRelationship; return this;
}
}