org.milyn.edi.unedifact.d02a.BUSCRD.SegmentGroup16 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.PartyIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.Relationship;
import org.milyn.edi.unedifact.d02a.common.Address;
import org.milyn.edi.unedifact.d02a.common.FinancialInstitutionInformation;
import org.milyn.edi.unedifact.d02a.common.Attribute;
import org.milyn.edi.unedifact.d02a.common.PersonDemographicInformation;
import org.milyn.edi.unedifact.d02a.common.EmploymentDetails;
import org.milyn.edi.unedifact.d02a.common.Nationality;
import org.milyn.edi.unedifact.d02a.common.Reference;
import org.milyn.edi.unedifact.d02a.common.Language;
import org.milyn.edi.unedifact.d02a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d02a.common.InformationDetail;
import org.milyn.edi.unedifact.d02a.common.PercentageDetails;
import org.milyn.edi.unedifact.d02a.common.CommunicationContact;
import org.milyn.edi.unedifact.d02a.common.Quantity;
import org.milyn.edi.unedifact.d02a.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup16 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PartyIdentification partyIdentification;
private List relationship;
private List address;
private List financialInstitutionInformation;
private List attribute;
private PersonDemographicInformation personDemographicInformation;
private List employmentDetails;
private List nationality;
private List reference;
private List language;
private List dateTimePeriod;
private List informationDetail;
private List percentageDetails;
private List communicationContact;
private List quantity;
private List freeText;
private List segmentGroup17;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(partyIdentification != null) {
nodeWriter.write("PNA");
nodeWriter.write(delimiters.getField());
partyIdentification.write(nodeWriter, delimiters);
}
if(relationship != null && !relationship.isEmpty()) {
for(Relationship relationshipInst : relationship) {
nodeWriter.write("REL");
nodeWriter.write(delimiters.getField());
relationshipInst.write(nodeWriter, delimiters);
}
}
if(address != null && !address.isEmpty()) {
for(Address addressInst : address) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
addressInst.write(nodeWriter, delimiters);
}
}
if(financialInstitutionInformation != null && !financialInstitutionInformation.isEmpty()) {
for(FinancialInstitutionInformation financialInstitutionInformationInst : financialInstitutionInformation) {
nodeWriter.write("FII");
nodeWriter.write(delimiters.getField());
financialInstitutionInformationInst.write(nodeWriter, delimiters);
}
}
if(attribute != null && !attribute.isEmpty()) {
for(Attribute attributeInst : attribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
attributeInst.write(nodeWriter, delimiters);
}
}
if(personDemographicInformation != null) {
nodeWriter.write("PDI");
nodeWriter.write(delimiters.getField());
personDemographicInformation.write(nodeWriter, delimiters);
}
if(employmentDetails != null && !employmentDetails.isEmpty()) {
for(EmploymentDetails employmentDetailsInst : employmentDetails) {
nodeWriter.write("EMP");
nodeWriter.write(delimiters.getField());
employmentDetailsInst.write(nodeWriter, delimiters);
}
}
if(nationality != null && !nationality.isEmpty()) {
for(Nationality nationalityInst : nationality) {
nodeWriter.write("NAT");
nodeWriter.write(delimiters.getField());
nationalityInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(language != null && !language.isEmpty()) {
for(Language languageInst : language) {
nodeWriter.write("LAN");
nodeWriter.write(delimiters.getField());
languageInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(informationDetail != null && !informationDetail.isEmpty()) {
for(InformationDetail informationDetailInst : informationDetail) {
nodeWriter.write("IFD");
nodeWriter.write(delimiters.getField());
informationDetailInst.write(nodeWriter, delimiters);
}
}
if(percentageDetails != null && !percentageDetails.isEmpty()) {
for(PercentageDetails percentageDetailsInst : percentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetailsInst.write(nodeWriter, delimiters);
}
}
if(communicationContact != null && !communicationContact.isEmpty()) {
for(CommunicationContact communicationContactInst : communicationContact) {
nodeWriter.write("COM");
nodeWriter.write(delimiters.getField());
communicationContactInst.write(nodeWriter, delimiters);
}
}
if(quantity != null && !quantity.isEmpty()) {
for(Quantity quantityInst : quantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantityInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
segmentGroup17Inst.write(nodeWriter, delimiters);
}
}
}
public PartyIdentification getPartyIdentification() {
return partyIdentification;
}
public SegmentGroup16 setPartyIdentification(PartyIdentification partyIdentification) {
this.partyIdentification = partyIdentification; return this;
}
public List getRelationship() {
return relationship;
}
public SegmentGroup16 setRelationship(List relationship) {
this.relationship = relationship; return this;
}
public List getAddress() {
return address;
}
public SegmentGroup16 setAddress(List address) {
this.address = address; return this;
}
public List getFinancialInstitutionInformation() {
return financialInstitutionInformation;
}
public SegmentGroup16 setFinancialInstitutionInformation(List financialInstitutionInformation) {
this.financialInstitutionInformation = financialInstitutionInformation; return this;
}
public List getAttribute() {
return attribute;
}
public SegmentGroup16 setAttribute(List attribute) {
this.attribute = attribute; return this;
}
public PersonDemographicInformation getPersonDemographicInformation() {
return personDemographicInformation;
}
public SegmentGroup16 setPersonDemographicInformation(PersonDemographicInformation personDemographicInformation) {
this.personDemographicInformation = personDemographicInformation; return this;
}
public List getEmploymentDetails() {
return employmentDetails;
}
public SegmentGroup16 setEmploymentDetails(List employmentDetails) {
this.employmentDetails = employmentDetails; return this;
}
public List getNationality() {
return nationality;
}
public SegmentGroup16 setNationality(List nationality) {
this.nationality = nationality; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup16 setReference(List reference) {
this.reference = reference; return this;
}
public List getLanguage() {
return language;
}
public SegmentGroup16 setLanguage(List language) {
this.language = language; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup16 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getInformationDetail() {
return informationDetail;
}
public SegmentGroup16 setInformationDetail(List informationDetail) {
this.informationDetail = informationDetail; return this;
}
public List getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup16 setPercentageDetails(List percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public List getCommunicationContact() {
return communicationContact;
}
public SegmentGroup16 setCommunicationContact(List communicationContact) {
this.communicationContact = communicationContact; return this;
}
public List getQuantity() {
return quantity;
}
public SegmentGroup16 setQuantity(List quantity) {
this.quantity = quantity; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup16 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup17() {
return segmentGroup17;
}
public SegmentGroup16 setSegmentGroup17(List segmentGroup17) {
this.segmentGroup17 = segmentGroup17; return this;
}
}