org.milyn.edi.unedifact.d06b.MEDRPT.SegmentGroup6 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.MEDRPT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.Attribute;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.Reference;
import org.milyn.edi.unedifact.d06b.common.Address;
import org.milyn.edi.unedifact.d06b.common.CommunicationContact;
import org.milyn.edi.unedifact.d06b.common.Relationship;
import org.milyn.edi.unedifact.d06b.common.ItemDescription;
import org.milyn.edi.unedifact.d06b.common.FreeText;
import org.milyn.edi.unedifact.d06b.common.PartyIdentification;
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.PersonDemographicInformation;
import org.milyn.edi.unedifact.d06b.common.Nationality;
import org.milyn.edi.unedifact.d06b.common.Language;
import org.milyn.edi.unedifact.d06b.common.HandlingInstructions;
import org.milyn.edi.unedifact.d06b.common.CharacteristicClassId;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Attribute attribute;
private List reference;
private List address;
private List communicationContact;
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 handlingInstructions;
private List characteristicClassId;
private List segmentGroup7;
private List segmentGroup8;
private List segmentGroup14;
private List segmentGroup16;
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(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(handlingInstructions != null && !handlingInstructions.isEmpty()) {
for(HandlingInstructions handlingInstructionsInst : handlingInstructions) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
handlingInstructionsInst.write(nodeWriter, delimiters);
}
}
if(characteristicClassId != null && !characteristicClassId.isEmpty()) {
for(CharacteristicClassId characteristicClassIdInst : characteristicClassId) {
nodeWriter.write("CCI");
nodeWriter.write(delimiters.getField());
characteristicClassIdInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
segmentGroup7Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
segmentGroup16Inst.write(nodeWriter, delimiters);
}
}
}
public Attribute getAttribute() {
return attribute;
}
public SegmentGroup6 setAttribute(Attribute attribute) {
this.attribute = attribute; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup6 setReference(List reference) {
this.reference = reference; return this;
}
public List getAddress() {
return address;
}
public SegmentGroup6 setAddress(List address) {
this.address = address; return this;
}
public List getCommunicationContact() {
return communicationContact;
}
public SegmentGroup6 setCommunicationContact(List communicationContact) {
this.communicationContact = communicationContact; return this;
}
public Relationship getRelationship() {
return relationship;
}
public SegmentGroup6 setRelationship(Relationship relationship) {
this.relationship = relationship; return this;
}
public List getItemDescription() {
return itemDescription;
}
public SegmentGroup6 setItemDescription(List itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup6 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getPartyIdentification() {
return partyIdentification;
}
public SegmentGroup6 setPartyIdentification(List partyIdentification) {
this.partyIdentification = partyIdentification; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup6 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public PersonDemographicInformation getPersonDemographicInformation() {
return personDemographicInformation;
}
public SegmentGroup6 setPersonDemographicInformation(PersonDemographicInformation personDemographicInformation) {
this.personDemographicInformation = personDemographicInformation; return this;
}
public List getNationality() {
return nationality;
}
public SegmentGroup6 setNationality(List nationality) {
this.nationality = nationality; return this;
}
public List getLanguage() {
return language;
}
public SegmentGroup6 setLanguage(List language) {
this.language = language; return this;
}
public List getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup6 setHandlingInstructions(List handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public List getCharacteristicClassId() {
return characteristicClassId;
}
public SegmentGroup6 setCharacteristicClassId(List characteristicClassId) {
this.characteristicClassId = characteristicClassId; return this;
}
public List getSegmentGroup7() {
return segmentGroup7;
}
public SegmentGroup6 setSegmentGroup7(List segmentGroup7) {
this.segmentGroup7 = segmentGroup7; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup6 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup6 setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
public List getSegmentGroup16() {
return segmentGroup16;
}
public SegmentGroup6 setSegmentGroup16(List segmentGroup16) {
this.segmentGroup16 = segmentGroup16; return this;
}
}