org.milyn.edi.unedifact.d99b.LRECLM.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.LRECLM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.InsuranceCoverDescription;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.Reference;
import org.milyn.edi.unedifact.d99b.common.Attribute;
import org.milyn.edi.unedifact.d99b.common.PercentageDetails;
import org.milyn.edi.unedifact.d99b.common.AgreementIdentification;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private InsuranceCoverDescription insuranceCoverDescription;
private List dateTimePeriod;
private List reference;
private List attribute;
private PercentageDetails percentageDetails;
private AgreementIdentification agreementIdentification;
private List segmentGroup9;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(insuranceCoverDescription != null) {
nodeWriter.write("ICD");
nodeWriter.write(delimiters.getField());
insuranceCoverDescription.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(attribute != null && !attribute.isEmpty()) {
for(Attribute attributeInst : attribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
attributeInst.write(nodeWriter, delimiters);
}
}
if(percentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetails.write(nodeWriter, delimiters);
}
if(agreementIdentification != null) {
nodeWriter.write("AGR");
nodeWriter.write(delimiters.getField());
agreementIdentification.write(nodeWriter, delimiters);
}
if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
segmentGroup9Inst.write(nodeWriter, delimiters);
}
}
}
public InsuranceCoverDescription getInsuranceCoverDescription() {
return insuranceCoverDescription;
}
public SegmentGroup8 setInsuranceCoverDescription(InsuranceCoverDescription insuranceCoverDescription) {
this.insuranceCoverDescription = insuranceCoverDescription; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup8 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup8 setReference(List reference) {
this.reference = reference; return this;
}
public List getAttribute() {
return attribute;
}
public SegmentGroup8 setAttribute(List attribute) {
this.attribute = attribute; return this;
}
public PercentageDetails getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup8 setPercentageDetails(PercentageDetails percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public AgreementIdentification getAgreementIdentification() {
return agreementIdentification;
}
public SegmentGroup8 setAgreementIdentification(AgreementIdentification agreementIdentification) {
this.agreementIdentification = agreementIdentification; return this;
}
public List getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup8 setSegmentGroup9(List segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
}