org.milyn.edi.unedifact.d98a.SOCADE.SegmentGroup3 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.SOCADE;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.PartyIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.FreeText;
import org.milyn.edi.unedifact.d98a.common.PersonDemographicInformation;
import org.milyn.edi.unedifact.d98a.common.Relationship;
import org.milyn.edi.unedifact.d98a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d98a.common.Nationality;
import org.milyn.edi.unedifact.d98a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d98a.common.FinancialInstitutionInformation;
import org.milyn.edi.unedifact.d98a.common.Attribute;
import org.milyn.edi.unedifact.d98a.common.EmploymentDetails;
import org.milyn.edi.unedifact.d98a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d98a.common.Quantity;
import org.milyn.edi.unedifact.d98a.common.ContactInformation;
import org.milyn.edi.unedifact.d98a.common.CommunicationContact;
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 PartyIdentification partyIdentification;
private List freeText;
private PersonDemographicInformation personDemographicInformation;
private Relationship relationship;
private List dateTimePeriod;
private Nationality nationality;
private PlaceLocationIdentification placeLocationIdentification;
private FinancialInstitutionInformation financialInstitutionInformation;
private List attribute;
private EmploymentDetails employmentDetails;
private List monetaryAmount;
private List quantity;
private ContactInformation contactInformation;
private List communicationContact;
private List segmentGroup4;
private List segmentGroup5;
private List segmentGroup6;
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(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(personDemographicInformation != null) {
nodeWriter.write("PDI");
nodeWriter.write(delimiters.getField());
personDemographicInformation.write(nodeWriter, delimiters);
}
if(relationship != null) {
nodeWriter.write("REL");
nodeWriter.write(delimiters.getField());
relationship.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(nationality != null) {
nodeWriter.write("NAT");
nodeWriter.write(delimiters.getField());
nationality.write(nodeWriter, delimiters);
}
if(placeLocationIdentification != null) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentification.write(nodeWriter, delimiters);
}
if(financialInstitutionInformation != null) {
nodeWriter.write("FII");
nodeWriter.write(delimiters.getField());
financialInstitutionInformation.write(nodeWriter, delimiters);
}
if(attribute != null && !attribute.isEmpty()) {
for(Attribute attributeInst : attribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
attributeInst.write(nodeWriter, delimiters);
}
}
if(employmentDetails != null) {
nodeWriter.write("EMP");
nodeWriter.write(delimiters.getField());
employmentDetails.write(nodeWriter, delimiters);
}
if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(quantity != null && !quantity.isEmpty()) {
for(Quantity quantityInst : quantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantityInst.write(nodeWriter, delimiters);
}
}
if(contactInformation != null) {
nodeWriter.write("CTA");
nodeWriter.write(delimiters.getField());
contactInformation.write(nodeWriter, delimiters);
}
if(communicationContact != null && !communicationContact.isEmpty()) {
for(CommunicationContact communicationContactInst : communicationContact) {
nodeWriter.write("COM");
nodeWriter.write(delimiters.getField());
communicationContactInst.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 PartyIdentification getPartyIdentification() {
return partyIdentification;
}
public SegmentGroup3 setPartyIdentification(PartyIdentification partyIdentification) {
this.partyIdentification = partyIdentification; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup3 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public PersonDemographicInformation getPersonDemographicInformation() {
return personDemographicInformation;
}
public SegmentGroup3 setPersonDemographicInformation(PersonDemographicInformation personDemographicInformation) {
this.personDemographicInformation = personDemographicInformation; return this;
}
public Relationship getRelationship() {
return relationship;
}
public SegmentGroup3 setRelationship(Relationship relationship) {
this.relationship = relationship; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup3 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public Nationality getNationality() {
return nationality;
}
public SegmentGroup3 setNationality(Nationality nationality) {
this.nationality = nationality; return this;
}
public PlaceLocationIdentification getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup3 setPlaceLocationIdentification(PlaceLocationIdentification placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public FinancialInstitutionInformation getFinancialInstitutionInformation() {
return financialInstitutionInformation;
}
public SegmentGroup3 setFinancialInstitutionInformation(FinancialInstitutionInformation financialInstitutionInformation) {
this.financialInstitutionInformation = financialInstitutionInformation; return this;
}
public List getAttribute() {
return attribute;
}
public SegmentGroup3 setAttribute(List attribute) {
this.attribute = attribute; return this;
}
public EmploymentDetails getEmploymentDetails() {
return employmentDetails;
}
public SegmentGroup3 setEmploymentDetails(EmploymentDetails employmentDetails) {
this.employmentDetails = employmentDetails; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup3 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getQuantity() {
return quantity;
}
public SegmentGroup3 setQuantity(List quantity) {
this.quantity = quantity; return this;
}
public ContactInformation getContactInformation() {
return contactInformation;
}
public SegmentGroup3 setContactInformation(ContactInformation contactInformation) {
this.contactInformation = contactInformation; return this;
}
public List getCommunicationContact() {
return communicationContact;
}
public SegmentGroup3 setCommunicationContact(List communicationContact) {
this.communicationContact = communicationContact; 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;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy