All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.milyn.edi.unedifact.d96a.MEDPID.SegmentGroup2 Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d96a.MEDPID;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d96a.common.GeneralIndicator;    
import org.milyn.edi.unedifact.d96a.common.PartyName;    
import java.util.List;    
import org.milyn.edi.unedifact.d96a.common.Address;    
import org.milyn.edi.unedifact.d96a.common.Reference;    
import org.milyn.edi.unedifact.d96a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d96a.common.PersonCharacteristic;    
import org.milyn.edi.unedifact.d96a.common.Nationality;    
import org.milyn.edi.unedifact.d96a.common.FreeText;    
import org.milyn.edi.unedifact.d96a.common.Language;    
import org.milyn.edi.unedifact.d96a.common.HandlingInstructions;    
import org.milyn.edi.unedifact.d96a.common.PlaceLocationIdentification;    
import org.milyn.edi.unedifact.d96a.common.FinancialInstitutionInformation;    
import org.milyn.edi.unedifact.d96a.common.ContactInformation;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup2 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private GeneralIndicator generalIndicator;
    private PartyName partyName;
    private List
address; private List reference; private List dateTimePeriod; private List personCharacteristic; private List nationality; private List freeText; private List language; private List handlingInstructions; private List placeLocationIdentification; private List financialInstitutionInformation; private List contactInformation; private List segmentGroup3; private List segmentGroup4; private List segmentGroup5; public void write(Writer writer, Delimiters delimiters) throws IOException { Writer nodeWriter = writer; if(generalIndicator != null) { nodeWriter.write("GIS"); nodeWriter.write(delimiters.getField()); generalIndicator.write(nodeWriter, delimiters); } if(partyName != null) { nodeWriter.write("PNA"); nodeWriter.write(delimiters.getField()); partyName.write(nodeWriter, delimiters); } if(address != null && !address.isEmpty()) { for(Address addressInst : address) { nodeWriter.write("ADR"); nodeWriter.write(delimiters.getField()); addressInst.write(nodeWriter, delimiters); } } if(reference != null && !reference.isEmpty()) { for(Reference referenceInst : reference) { nodeWriter.write("RFF"); nodeWriter.write(delimiters.getField()); referenceInst.write(nodeWriter, delimiters); } } if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) { for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) { nodeWriter.write("DTM"); nodeWriter.write(delimiters.getField()); dateTimePeriodInst.write(nodeWriter, delimiters); } } if(personCharacteristic != null && !personCharacteristic.isEmpty()) { for(PersonCharacteristic personCharacteristicInst : personCharacteristic) { nodeWriter.write("IHC"); nodeWriter.write(delimiters.getField()); personCharacteristicInst.write(nodeWriter, delimiters); } } if(nationality != null && !nationality.isEmpty()) { for(Nationality nationalityInst : nationality) { nodeWriter.write("NAT"); nodeWriter.write(delimiters.getField()); nationalityInst.write(nodeWriter, delimiters); } } if(freeText != null && !freeText.isEmpty()) { for(FreeText freeTextInst : freeText) { nodeWriter.write("FTX"); nodeWriter.write(delimiters.getField()); freeTextInst.write(nodeWriter, delimiters); } } if(language != null && !language.isEmpty()) { for(Language languageInst : language) { nodeWriter.write("LAN"); nodeWriter.write(delimiters.getField()); languageInst.write(nodeWriter, delimiters); } } if(handlingInstructions != null && !handlingInstructions.isEmpty()) { for(HandlingInstructions handlingInstructionsInst : handlingInstructions) { nodeWriter.write("HAN"); nodeWriter.write(delimiters.getField()); handlingInstructionsInst.write(nodeWriter, delimiters); } } if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) { for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) { nodeWriter.write("LOC"); nodeWriter.write(delimiters.getField()); placeLocationIdentificationInst.write(nodeWriter, delimiters); } } if(financialInstitutionInformation != null && !financialInstitutionInformation.isEmpty()) { for(FinancialInstitutionInformation financialInstitutionInformationInst : financialInstitutionInformation) { nodeWriter.write("FII"); nodeWriter.write(delimiters.getField()); financialInstitutionInformationInst.write(nodeWriter, delimiters); } } if(contactInformation != null && !contactInformation.isEmpty()) { for(ContactInformation contactInformationInst : contactInformation) { nodeWriter.write("CTA"); nodeWriter.write(delimiters.getField()); contactInformationInst.write(nodeWriter, delimiters); } } if(segmentGroup3 != null && !segmentGroup3.isEmpty()) { for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) { segmentGroup3Inst.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); } } } public GeneralIndicator getGeneralIndicator() { return generalIndicator; } public SegmentGroup2 setGeneralIndicator(GeneralIndicator generalIndicator) { this.generalIndicator = generalIndicator; return this; } public PartyName getPartyName() { return partyName; } public SegmentGroup2 setPartyName(PartyName partyName) { this.partyName = partyName; return this; } public List
getAddress() { return address; } public SegmentGroup2 setAddress(List
address) { this.address = address; return this; } public List getReference() { return reference; } public SegmentGroup2 setReference(List reference) { this.reference = reference; return this; } public List getDateTimePeriod() { return dateTimePeriod; } public SegmentGroup2 setDateTimePeriod(List dateTimePeriod) { this.dateTimePeriod = dateTimePeriod; return this; } public List getPersonCharacteristic() { return personCharacteristic; } public SegmentGroup2 setPersonCharacteristic(List personCharacteristic) { this.personCharacteristic = personCharacteristic; return this; } public List getNationality() { return nationality; } public SegmentGroup2 setNationality(List nationality) { this.nationality = nationality; return this; } public List getFreeText() { return freeText; } public SegmentGroup2 setFreeText(List freeText) { this.freeText = freeText; return this; } public List getLanguage() { return language; } public SegmentGroup2 setLanguage(List language) { this.language = language; return this; } public List getHandlingInstructions() { return handlingInstructions; } public SegmentGroup2 setHandlingInstructions(List handlingInstructions) { this.handlingInstructions = handlingInstructions; return this; } public List getPlaceLocationIdentification() { return placeLocationIdentification; } public SegmentGroup2 setPlaceLocationIdentification(List placeLocationIdentification) { this.placeLocationIdentification = placeLocationIdentification; return this; } public List getFinancialInstitutionInformation() { return financialInstitutionInformation; } public SegmentGroup2 setFinancialInstitutionInformation(List financialInstitutionInformation) { this.financialInstitutionInformation = financialInstitutionInformation; return this; } public List getContactInformation() { return contactInformation; } public SegmentGroup2 setContactInformation(List contactInformation) { this.contactInformation = contactInformation; return this; } public List getSegmentGroup3() { return segmentGroup3; } public SegmentGroup2 setSegmentGroup3(List segmentGroup3) { this.segmentGroup3 = segmentGroup3; return this; } public List getSegmentGroup4() { return segmentGroup4; } public SegmentGroup2 setSegmentGroup4(List segmentGroup4) { this.segmentGroup4 = segmentGroup4; return this; } public List getSegmentGroup5() { return segmentGroup5; } public SegmentGroup2 setSegmentGroup5(List segmentGroup5) { this.segmentGroup5 = segmentGroup5; return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy