org.milyn.edi.unedifact.d02a.MEDPRE.SegmentGroup13 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.MEDPRE;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.ICDInsuranceCoverDescription;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.ALCAllowanceOrCharge;
import org.milyn.edi.unedifact.d02a.common.PCDPercentageDetails;
import org.milyn.edi.unedifact.d02a.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d02a.common.IDEIdentity;
import org.milyn.edi.unedifact.d02a.common.DTMDateTimePeriod;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup13 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ICDInsuranceCoverDescription iCDInsuranceCoverDescription;
private List aLCAllowanceOrCharge;
private PCDPercentageDetails pCDPercentageDetails;
private List mOAMonetaryAmount;
private List iDEIdentity;
private List dTMDateTimePeriod;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(iCDInsuranceCoverDescription != null) {
nodeWriter.write("ICD");
nodeWriter.write(delimiters.getField());
iCDInsuranceCoverDescription.write(nodeWriter, delimiters);
}
if(aLCAllowanceOrCharge != null && !aLCAllowanceOrCharge.isEmpty()) {
for(ALCAllowanceOrCharge aLCAllowanceOrChargeInst : aLCAllowanceOrCharge) {
nodeWriter.write("ALC");
nodeWriter.write(delimiters.getField());
aLCAllowanceOrChargeInst.write(nodeWriter, delimiters);
}
}
if(pCDPercentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetails.write(nodeWriter, delimiters);
}
if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(iDEIdentity != null && !iDEIdentity.isEmpty()) {
for(IDEIdentity iDEIdentityInst : iDEIdentity) {
nodeWriter.write("IDE");
nodeWriter.write(delimiters.getField());
iDEIdentityInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
}
public ICDInsuranceCoverDescription getICDInsuranceCoverDescription() {
return iCDInsuranceCoverDescription;
}
public SegmentGroup13 setICDInsuranceCoverDescription(ICDInsuranceCoverDescription iCDInsuranceCoverDescription) {
this.iCDInsuranceCoverDescription = iCDInsuranceCoverDescription; return this;
}
public List getALCAllowanceOrCharge() {
return aLCAllowanceOrCharge;
}
public SegmentGroup13 setALCAllowanceOrCharge(List aLCAllowanceOrCharge) {
this.aLCAllowanceOrCharge = aLCAllowanceOrCharge; return this;
}
public PCDPercentageDetails getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup13 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup13 setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getIDEIdentity() {
return iDEIdentity;
}
public SegmentGroup13 setIDEIdentity(List iDEIdentity) {
this.iDEIdentity = iDEIdentity; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup13 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
}