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

org.milyn.edi.unedifact.d99b.MEDREQ.SegmentGroup5 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.d99b.MEDREQ;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.Attribute;    
import java.util.List;    
import org.milyn.edi.unedifact.d99b.common.Reference;    
import org.milyn.edi.unedifact.d99b.common.Address;    
import org.milyn.edi.unedifact.d99b.common.CommunicationContact;    
import org.milyn.edi.unedifact.d99b.common.HandlingInstructions;    
import org.milyn.edi.unedifact.d99b.common.Relationship;    
import org.milyn.edi.unedifact.d99b.common.ItemDescription;    
import org.milyn.edi.unedifact.d99b.common.FreeText;    
import org.milyn.edi.unedifact.d99b.common.PartyIdentification;    
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d99b.common.PersonDemographicInformation;    
import org.milyn.edi.unedifact.d99b.common.Nationality;    
import org.milyn.edi.unedifact.d99b.common.Language;    
import org.milyn.edi.unedifact.d99b.common.CharacteristicClassId;    
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 Attribute attribute;
    private List reference;
    private List
address; private List communicationContact; private List handlingInstructions; private Relationship relationship; private List itemDescription; private List freeText; private List partyIdentification; private List dateTimePeriod; private PersonDemographicInformation personDemographicInformation; private List nationality; private List language; private List characteristicClassId; private List segmentGroup6; private List segmentGroup7; private List segmentGroup13; private List segmentGroup15; public void write(Writer writer, Delimiters delimiters) throws IOException { Writer nodeWriter = writer; if(attribute != null) { nodeWriter.write("ATT"); nodeWriter.write(delimiters.getField()); attribute.write(nodeWriter, delimiters); } if(reference != null && !reference.isEmpty()) { for(Reference referenceInst : reference) { nodeWriter.write("RFF"); nodeWriter.write(delimiters.getField()); referenceInst.write(nodeWriter, delimiters); } } if(address != null && !address.isEmpty()) { for(Address addressInst : address) { nodeWriter.write("ADR"); nodeWriter.write(delimiters.getField()); addressInst.write(nodeWriter, delimiters); } } if(communicationContact != null && !communicationContact.isEmpty()) { for(CommunicationContact communicationContactInst : communicationContact) { nodeWriter.write("COM"); nodeWriter.write(delimiters.getField()); communicationContactInst.write(nodeWriter, delimiters); } } if(handlingInstructions != null && !handlingInstructions.isEmpty()) { for(HandlingInstructions handlingInstructionsInst : handlingInstructions) { nodeWriter.write("HAN"); nodeWriter.write(delimiters.getField()); handlingInstructionsInst.write(nodeWriter, delimiters); } } if(relationship != null) { nodeWriter.write("REL"); nodeWriter.write(delimiters.getField()); relationship.write(nodeWriter, delimiters); } if(itemDescription != null && !itemDescription.isEmpty()) { for(ItemDescription itemDescriptionInst : itemDescription) { nodeWriter.write("IMD"); nodeWriter.write(delimiters.getField()); itemDescriptionInst.write(nodeWriter, delimiters); } } if(freeText != null && !freeText.isEmpty()) { for(FreeText freeTextInst : freeText) { nodeWriter.write("FTX"); nodeWriter.write(delimiters.getField()); freeTextInst.write(nodeWriter, delimiters); } } if(partyIdentification != null && !partyIdentification.isEmpty()) { for(PartyIdentification partyIdentificationInst : partyIdentification) { nodeWriter.write("PNA"); nodeWriter.write(delimiters.getField()); partyIdentificationInst.write(nodeWriter, delimiters); } } if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) { for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) { nodeWriter.write("DTM"); nodeWriter.write(delimiters.getField()); dateTimePeriodInst.write(nodeWriter, delimiters); } } if(personDemographicInformation != null) { nodeWriter.write("PDI"); nodeWriter.write(delimiters.getField()); personDemographicInformation.write(nodeWriter, delimiters); } if(nationality != null && !nationality.isEmpty()) { for(Nationality nationalityInst : nationality) { nodeWriter.write("NAT"); nodeWriter.write(delimiters.getField()); nationalityInst.write(nodeWriter, delimiters); } } if(language != null && !language.isEmpty()) { for(Language languageInst : language) { nodeWriter.write("LAN"); nodeWriter.write(delimiters.getField()); languageInst.write(nodeWriter, delimiters); } } if(characteristicClassId != null && !characteristicClassId.isEmpty()) { for(CharacteristicClassId characteristicClassIdInst : characteristicClassId) { nodeWriter.write("CCI"); nodeWriter.write(delimiters.getField()); characteristicClassIdInst.write(nodeWriter, delimiters); } } if(segmentGroup6 != null && !segmentGroup6.isEmpty()) { for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) { segmentGroup6Inst.write(nodeWriter, delimiters); } } if(segmentGroup7 != null && !segmentGroup7.isEmpty()) { for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) { segmentGroup7Inst.write(nodeWriter, delimiters); } } if(segmentGroup13 != null && !segmentGroup13.isEmpty()) { for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) { segmentGroup13Inst.write(nodeWriter, delimiters); } } if(segmentGroup15 != null && !segmentGroup15.isEmpty()) { for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) { segmentGroup15Inst.write(nodeWriter, delimiters); } } } public Attribute getAttribute() { return attribute; } public SegmentGroup5 setAttribute(Attribute attribute) { this.attribute = attribute; return this; } public List getReference() { return reference; } public SegmentGroup5 setReference(List reference) { this.reference = reference; return this; } public List
getAddress() { return address; } public SegmentGroup5 setAddress(List
address) { this.address = address; return this; } public List getCommunicationContact() { return communicationContact; } public SegmentGroup5 setCommunicationContact(List communicationContact) { this.communicationContact = communicationContact; return this; } public List getHandlingInstructions() { return handlingInstructions; } public SegmentGroup5 setHandlingInstructions(List handlingInstructions) { this.handlingInstructions = handlingInstructions; return this; } public Relationship getRelationship() { return relationship; } public SegmentGroup5 setRelationship(Relationship relationship) { this.relationship = relationship; return this; } public List getItemDescription() { return itemDescription; } public SegmentGroup5 setItemDescription(List itemDescription) { this.itemDescription = itemDescription; return this; } public List getFreeText() { return freeText; } public SegmentGroup5 setFreeText(List freeText) { this.freeText = freeText; return this; } public List getPartyIdentification() { return partyIdentification; } public SegmentGroup5 setPartyIdentification(List partyIdentification) { this.partyIdentification = partyIdentification; return this; } public List getDateTimePeriod() { return dateTimePeriod; } public SegmentGroup5 setDateTimePeriod(List dateTimePeriod) { this.dateTimePeriod = dateTimePeriod; return this; } public PersonDemographicInformation getPersonDemographicInformation() { return personDemographicInformation; } public SegmentGroup5 setPersonDemographicInformation(PersonDemographicInformation personDemographicInformation) { this.personDemographicInformation = personDemographicInformation; return this; } public List getNationality() { return nationality; } public SegmentGroup5 setNationality(List nationality) { this.nationality = nationality; return this; } public List getLanguage() { return language; } public SegmentGroup5 setLanguage(List language) { this.language = language; return this; } public List getCharacteristicClassId() { return characteristicClassId; } public SegmentGroup5 setCharacteristicClassId(List characteristicClassId) { this.characteristicClassId = characteristicClassId; return this; } public List getSegmentGroup6() { return segmentGroup6; } public SegmentGroup5 setSegmentGroup6(List segmentGroup6) { this.segmentGroup6 = segmentGroup6; return this; } public List getSegmentGroup7() { return segmentGroup7; } public SegmentGroup5 setSegmentGroup7(List segmentGroup7) { this.segmentGroup7 = segmentGroup7; return this; } public List getSegmentGroup13() { return segmentGroup13; } public SegmentGroup5 setSegmentGroup13(List segmentGroup13) { this.segmentGroup13 = segmentGroup13; return this; } public List getSegmentGroup15() { return segmentGroup15; } public SegmentGroup5 setSegmentGroup15(List segmentGroup15) { this.segmentGroup15 = segmentGroup15; return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy