org.milyn.edi.unedifact.d05a.IPPOMO.SegmentGroup28 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.IPPOMO;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.PartyIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.InsuranceCoverDescription;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup28 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PartyIdentification partyIdentification;
private List insuranceCoverDescription;
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(insuranceCoverDescription != null && !insuranceCoverDescription.isEmpty()) {
for(InsuranceCoverDescription insuranceCoverDescriptionInst : insuranceCoverDescription) {
nodeWriter.write("ICD");
nodeWriter.write(delimiters.getField());
insuranceCoverDescriptionInst.write(nodeWriter, delimiters);
}
}
}
public PartyIdentification getPartyIdentification() {
return partyIdentification;
}
public SegmentGroup28 setPartyIdentification(PartyIdentification partyIdentification) {
this.partyIdentification = partyIdentification; return this;
}
public List getInsuranceCoverDescription() {
return insuranceCoverDescription;
}
public SegmentGroup28 setInsuranceCoverDescription(List insuranceCoverDescription) {
this.insuranceCoverDescription = insuranceCoverDescription; return this;
}
}