org.milyn.edi.unedifact.d97a.RESMSG.SegmentGroup13 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d97a.RESMSG;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d97a.common.PAIPaymentInstructions;
import org.milyn.edi.unedifact.d97a.common.PATPaymentTermsBasis;
import org.milyn.edi.unedifact.d97a.common.FIIFinancialInstitutionInformation;
import org.milyn.edi.unedifact.d97a.common.MOAMonetaryAmount;
import java.util.List;
import org.milyn.edi.unedifact.d97a.common.RFFReference;
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 PAIPaymentInstructions pAIPaymentInstructions;
private PATPaymentTermsBasis pATPaymentTermsBasis;
private FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation;
private MOAMonetaryAmount mOAMonetaryAmount;
private List rFFReference;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(pAIPaymentInstructions != null) {
nodeWriter.write("PAI");
nodeWriter.write(delimiters.getField());
pAIPaymentInstructions.write(nodeWriter, delimiters);
}
if(pATPaymentTermsBasis != null) {
nodeWriter.write("PAT");
nodeWriter.write(delimiters.getField());
pATPaymentTermsBasis.write(nodeWriter, delimiters);
}
if(fIIFinancialInstitutionInformation != null) {
nodeWriter.write("FII");
nodeWriter.write(delimiters.getField());
fIIFinancialInstitutionInformation.write(nodeWriter, delimiters);
}
if(mOAMonetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmount.write(nodeWriter, delimiters);
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
}
public PAIPaymentInstructions getPAIPaymentInstructions() {
return pAIPaymentInstructions;
}
public SegmentGroup13 setPAIPaymentInstructions(PAIPaymentInstructions pAIPaymentInstructions) {
this.pAIPaymentInstructions = pAIPaymentInstructions; return this;
}
public PATPaymentTermsBasis getPATPaymentTermsBasis() {
return pATPaymentTermsBasis;
}
public SegmentGroup13 setPATPaymentTermsBasis(PATPaymentTermsBasis pATPaymentTermsBasis) {
this.pATPaymentTermsBasis = pATPaymentTermsBasis; return this;
}
public FIIFinancialInstitutionInformation getFIIFinancialInstitutionInformation() {
return fIIFinancialInstitutionInformation;
}
public SegmentGroup13 setFIIFinancialInstitutionInformation(FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation) {
this.fIIFinancialInstitutionInformation = fIIFinancialInstitutionInformation; return this;
}
public MOAMonetaryAmount getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup13 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup13 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
}