org.virtuslab.edi.unedifact.d96a.MEDPID.SegmentGroup5 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.virtuslab.edi.unedifact.d96a.MEDPID;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.virtuslab.edi.unedifact.d96a.common.RELRelationship;
import org.virtuslab.edi.unedifact.d96a.common.PNAPartyName;
import java.util.List;
import org.virtuslab.edi.unedifact.d96a.common.ADRAddress;
import org.virtuslab.edi.unedifact.d96a.common.RFFReference;
import org.virtuslab.edi.unedifact.d96a.common.DTMDateTimePeriod;
import org.virtuslab.edi.unedifact.d96a.common.PDIPersonDemographicInformation;
import org.virtuslab.edi.unedifact.d96a.common.IHCPersonCharacteristic;
import org.virtuslab.edi.unedifact.d96a.common.NATNationality;
import org.virtuslab.edi.unedifact.d96a.common.LANLanguage;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup5 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private RELRelationship rELRelationship;
private PNAPartyName pNAPartyName;
private List aDRAddress;
private List rFFReference;
private List dTMDateTimePeriod;
private PDIPersonDemographicInformation pDIPersonDemographicInformation;
private List iHCPersonCharacteristic;
private List nATNationality;
private List lANLanguage;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(rELRelationship != null) {
nodeWriter.write("REL");
nodeWriter.write(delimiters.getField());
rELRelationship.write(nodeWriter, delimiters);
}
if(pNAPartyName != null) {
nodeWriter.write("PNA");
nodeWriter.write(delimiters.getField());
pNAPartyName.write(nodeWriter, delimiters);
}
if(aDRAddress != null && !aDRAddress.isEmpty()) {
for(ADRAddress aDRAddressInst : aDRAddress) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
aDRAddressInst.write(nodeWriter, delimiters);
}
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.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(iHCPersonCharacteristic != null && !iHCPersonCharacteristic.isEmpty()) {
for(IHCPersonCharacteristic iHCPersonCharacteristicInst : iHCPersonCharacteristic) {
nodeWriter.write("IHC");
nodeWriter.write(delimiters.getField());
iHCPersonCharacteristicInst.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);
}
}
}
public RELRelationship getRELRelationship() {
return rELRelationship;
}
public SegmentGroup5 setRELRelationship(RELRelationship rELRelationship) {
this.rELRelationship = rELRelationship; return this;
}
public PNAPartyName getPNAPartyName() {
return pNAPartyName;
}
public SegmentGroup5 setPNAPartyName(PNAPartyName pNAPartyName) {
this.pNAPartyName = pNAPartyName; return this;
}
public List getADRAddress() {
return aDRAddress;
}
public SegmentGroup5 setADRAddress(List aDRAddress) {
this.aDRAddress = aDRAddress; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup5 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup5 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public PDIPersonDemographicInformation getPDIPersonDemographicInformation() {
return pDIPersonDemographicInformation;
}
public SegmentGroup5 setPDIPersonDemographicInformation(PDIPersonDemographicInformation pDIPersonDemographicInformation) {
this.pDIPersonDemographicInformation = pDIPersonDemographicInformation; return this;
}
public List getIHCPersonCharacteristic() {
return iHCPersonCharacteristic;
}
public SegmentGroup5 setIHCPersonCharacteristic(List iHCPersonCharacteristic) {
this.iHCPersonCharacteristic = iHCPersonCharacteristic; return this;
}
public List getNATNationality() {
return nATNationality;
}
public SegmentGroup5 setNATNationality(List nATNationality) {
this.nATNationality = nATNationality; return this;
}
public List getLANLanguage() {
return lANLanguage;
}
public SegmentGroup5 setLANLanguage(List lANLanguage) {
this.lANLanguage = lANLanguage; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy