org.milyn.edi.unedifact.d99b.MEDRUC.SegmentGroup7 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.MEDRUC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.PNAPartyIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.RFFReference;
import org.milyn.edi.unedifact.d99b.common.ADRAddress;
import org.milyn.edi.unedifact.d99b.common.COMCommunicationContact;
import org.milyn.edi.unedifact.d99b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.PDIPersonDemographicInformation;
import org.milyn.edi.unedifact.d99b.common.NATNationality;
import org.milyn.edi.unedifact.d99b.common.LANLanguage;
import org.milyn.edi.unedifact.d99b.common.HANHandlingInstructions;
import org.milyn.edi.unedifact.d99b.common.RELRelationship;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup7 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 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(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 SegmentGroup7 setPNAPartyIdentification(PNAPartyIdentification pNAPartyIdentification) {
this.pNAPartyIdentification = pNAPartyIdentification; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup7 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getADRAddress() {
return aDRAddress;
}
public SegmentGroup7 setADRAddress(List aDRAddress) {
this.aDRAddress = aDRAddress; return this;
}
public List getCOMCommunicationContact() {
return cOMCommunicationContact;
}
public SegmentGroup7 setCOMCommunicationContact(List cOMCommunicationContact) {
this.cOMCommunicationContact = cOMCommunicationContact; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup7 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public PDIPersonDemographicInformation getPDIPersonDemographicInformation() {
return pDIPersonDemographicInformation;
}
public SegmentGroup7 setPDIPersonDemographicInformation(PDIPersonDemographicInformation pDIPersonDemographicInformation) {
this.pDIPersonDemographicInformation = pDIPersonDemographicInformation; return this;
}
public List getNATNationality() {
return nATNationality;
}
public SegmentGroup7 setNATNationality(List nATNationality) {
this.nATNationality = nATNationality; return this;
}
public List getLANLanguage() {
return lANLanguage;
}
public SegmentGroup7 setLANLanguage(List lANLanguage) {
this.lANLanguage = lANLanguage; return this;
}
public List getHANHandlingInstructions() {
return hANHandlingInstructions;
}
public SegmentGroup7 setHANHandlingInstructions(List hANHandlingInstructions) {
this.hANHandlingInstructions = hANHandlingInstructions; return this;
}
public RELRelationship getRELRelationship() {
return rELRelationship;
}
public SegmentGroup7 setRELRelationship(RELRelationship rELRelationship) {
this.rELRelationship = rELRelationship; return this;
}
}