org.milyn.edi.unedifact.d06b.SOCADE.SegmentGroup3 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.SOCADE;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.PNAPartyIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.FTXFreeText;
import org.milyn.edi.unedifact.d06b.common.PDIPersonDemographicInformation;
import org.milyn.edi.unedifact.d06b.common.RELRelationship;
import org.milyn.edi.unedifact.d06b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.NATNationality;
import org.milyn.edi.unedifact.d06b.common.LOCPlaceLocationIdentification;
import org.milyn.edi.unedifact.d06b.common.FIIFinancialInstitutionInformation;
import org.milyn.edi.unedifact.d06b.common.ATTAttribute;
import org.milyn.edi.unedifact.d06b.common.EMPEmploymentDetails;
import org.milyn.edi.unedifact.d06b.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d06b.common.QTYQuantity;
import org.milyn.edi.unedifact.d06b.common.CTAContactInformation;
import org.milyn.edi.unedifact.d06b.common.COMCommunicationContact;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup3 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PNAPartyIdentification pNAPartyIdentification;
private List fTXFreeText;
private PDIPersonDemographicInformation pDIPersonDemographicInformation;
private RELRelationship rELRelationship;
private List dTMDateTimePeriod;
private NATNationality nATNationality;
private LOCPlaceLocationIdentification lOCPlaceLocationIdentification;
private FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation;
private List aTTAttribute;
private EMPEmploymentDetails eMPEmploymentDetails;
private List mOAMonetaryAmount;
private List qTYQuantity;
private CTAContactInformation cTAContactInformation;
private List cOMCommunicationContact;
private List segmentGroup4;
private List segmentGroup5;
private List segmentGroup6;
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(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(pDIPersonDemographicInformation != null) {
nodeWriter.write("PDI");
nodeWriter.write(delimiters.getField());
pDIPersonDemographicInformation.write(nodeWriter, delimiters);
}
if(rELRelationship != null) {
nodeWriter.write("REL");
nodeWriter.write(delimiters.getField());
rELRelationship.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(nATNationality != null) {
nodeWriter.write("NAT");
nodeWriter.write(delimiters.getField());
nATNationality.write(nodeWriter, delimiters);
}
if(lOCPlaceLocationIdentification != null) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentification.write(nodeWriter, delimiters);
}
if(fIIFinancialInstitutionInformation != null) {
nodeWriter.write("FII");
nodeWriter.write(delimiters.getField());
fIIFinancialInstitutionInformation.write(nodeWriter, delimiters);
}
if(aTTAttribute != null && !aTTAttribute.isEmpty()) {
for(ATTAttribute aTTAttributeInst : aTTAttribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
aTTAttributeInst.write(nodeWriter, delimiters);
}
}
if(eMPEmploymentDetails != null) {
nodeWriter.write("EMP");
nodeWriter.write(delimiters.getField());
eMPEmploymentDetails.write(nodeWriter, delimiters);
}
if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
for(QTYQuantity qTYQuantityInst : qTYQuantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
qTYQuantityInst.write(nodeWriter, delimiters);
}
}
if(cTAContactInformation != null) {
nodeWriter.write("CTA");
nodeWriter.write(delimiters.getField());
cTAContactInformation.write(nodeWriter, delimiters);
}
if(cOMCommunicationContact != null && !cOMCommunicationContact.isEmpty()) {
for(COMCommunicationContact cOMCommunicationContactInst : cOMCommunicationContact) {
nodeWriter.write("COM");
nodeWriter.write(delimiters.getField());
cOMCommunicationContactInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
segmentGroup4Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
segmentGroup5Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
segmentGroup6Inst.write(nodeWriter, delimiters);
}
}
}
public PNAPartyIdentification getPNAPartyIdentification() {
return pNAPartyIdentification;
}
public SegmentGroup3 setPNAPartyIdentification(PNAPartyIdentification pNAPartyIdentification) {
this.pNAPartyIdentification = pNAPartyIdentification; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup3 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public PDIPersonDemographicInformation getPDIPersonDemographicInformation() {
return pDIPersonDemographicInformation;
}
public SegmentGroup3 setPDIPersonDemographicInformation(PDIPersonDemographicInformation pDIPersonDemographicInformation) {
this.pDIPersonDemographicInformation = pDIPersonDemographicInformation; return this;
}
public RELRelationship getRELRelationship() {
return rELRelationship;
}
public SegmentGroup3 setRELRelationship(RELRelationship rELRelationship) {
this.rELRelationship = rELRelationship; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup3 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public NATNationality getNATNationality() {
return nATNationality;
}
public SegmentGroup3 setNATNationality(NATNationality nATNationality) {
this.nATNationality = nATNationality; return this;
}
public LOCPlaceLocationIdentification getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup3 setLOCPlaceLocationIdentification(LOCPlaceLocationIdentification lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public FIIFinancialInstitutionInformation getFIIFinancialInstitutionInformation() {
return fIIFinancialInstitutionInformation;
}
public SegmentGroup3 setFIIFinancialInstitutionInformation(FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation) {
this.fIIFinancialInstitutionInformation = fIIFinancialInstitutionInformation; return this;
}
public List getATTAttribute() {
return aTTAttribute;
}
public SegmentGroup3 setATTAttribute(List aTTAttribute) {
this.aTTAttribute = aTTAttribute; return this;
}
public EMPEmploymentDetails getEMPEmploymentDetails() {
return eMPEmploymentDetails;
}
public SegmentGroup3 setEMPEmploymentDetails(EMPEmploymentDetails eMPEmploymentDetails) {
this.eMPEmploymentDetails = eMPEmploymentDetails; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup3 setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup3 setQTYQuantity(List qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public CTAContactInformation getCTAContactInformation() {
return cTAContactInformation;
}
public SegmentGroup3 setCTAContactInformation(CTAContactInformation cTAContactInformation) {
this.cTAContactInformation = cTAContactInformation; return this;
}
public List getCOMCommunicationContact() {
return cOMCommunicationContact;
}
public SegmentGroup3 setCOMCommunicationContact(List cOMCommunicationContact) {
this.cOMCommunicationContact = cOMCommunicationContact; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public SegmentGroup3 setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
public List getSegmentGroup5() {
return segmentGroup5;
}
public SegmentGroup3 setSegmentGroup5(List segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
public List getSegmentGroup6() {
return segmentGroup6;
}
public SegmentGroup3 setSegmentGroup6(List segmentGroup6) {
this.segmentGroup6 = segmentGroup6; return this;
}
}