org.milyn.edi.unedifact.d99b.PAYDUC.SegmentGroup6 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.PAYDUC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.NADNameAndAddress;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.RFFReference;
import org.milyn.edi.unedifact.d99b.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d99b.common.AJTAdjustmentDetails;
import org.milyn.edi.unedifact.d99b.common.PATPaymentTermsBasis;
import org.milyn.edi.unedifact.d99b.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private NADNameAndAddress nADNameAndAddress;
private List rFFReference;
private List mOAMonetaryAmount;
private List aJTAdjustmentDetails;
private PATPaymentTermsBasis pATPaymentTermsBasis;
private List fTXFreeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(nADNameAndAddress != null) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nADNameAndAddress.write(nodeWriter, delimiters);
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(aJTAdjustmentDetails != null && !aJTAdjustmentDetails.isEmpty()) {
for(AJTAdjustmentDetails aJTAdjustmentDetailsInst : aJTAdjustmentDetails) {
nodeWriter.write("AJT");
nodeWriter.write(delimiters.getField());
aJTAdjustmentDetailsInst.write(nodeWriter, delimiters);
}
}
if(pATPaymentTermsBasis != null) {
nodeWriter.write("PAT");
nodeWriter.write(delimiters.getField());
pATPaymentTermsBasis.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
}
public NADNameAndAddress getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup6 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup6 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup6 setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getAJTAdjustmentDetails() {
return aJTAdjustmentDetails;
}
public SegmentGroup6 setAJTAdjustmentDetails(List aJTAdjustmentDetails) {
this.aJTAdjustmentDetails = aJTAdjustmentDetails; return this;
}
public PATPaymentTermsBasis getPATPaymentTermsBasis() {
return pATPaymentTermsBasis;
}
public SegmentGroup6 setPATPaymentTermsBasis(PATPaymentTermsBasis pATPaymentTermsBasis) {
this.pATPaymentTermsBasis = pATPaymentTermsBasis; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup6 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}