org.milyn.edi.unedifact.d05a.SUPRES.SegmentGroup14 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.SUPRES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.PAIPaymentInstructions;
import org.milyn.edi.unedifact.d05a.common.RFFReference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup14 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PAIPaymentInstructions pAIPaymentInstructions;
private RFFReference 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(rFFReference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReference.write(nodeWriter, delimiters);
}
}
public PAIPaymentInstructions getPAIPaymentInstructions() {
return pAIPaymentInstructions;
}
public SegmentGroup14 setPAIPaymentInstructions(PAIPaymentInstructions pAIPaymentInstructions) {
this.pAIPaymentInstructions = pAIPaymentInstructions; return this;
}
public RFFReference getRFFReference() {
return rFFReference;
}
public SegmentGroup14 setRFFReference(RFFReference rFFReference) {
this.rFFReference = rFFReference; return this;
}
}