org.milyn.edi.unedifact.d06b.RECECO.SegmentGroup2 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.RECECO;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.DOCDocumentMessageDetails;
import org.milyn.edi.unedifact.d06b.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d06b.common.CUXCurrencies;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.CCDCreditCoverDetails;
import org.milyn.edi.unedifact.d06b.common.PCDPercentageDetails;
import org.milyn.edi.unedifact.d06b.common.PYTPaymentTerms;
import org.milyn.edi.unedifact.d06b.common.FTXFreeText;
import org.milyn.edi.unedifact.d06b.common.RFFReference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup2 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DOCDocumentMessageDetails dOCDocumentMessageDetails;
private MOAMonetaryAmount mOAMonetaryAmount;
private CUXCurrencies cUXCurrencies;
private List dTMDateTimePeriod;
private CCDCreditCoverDetails cCDCreditCoverDetails;
private PCDPercentageDetails pCDPercentageDetails;
private PYTPaymentTerms pYTPaymentTerms;
private FTXFreeText fTXFreeText;
private RFFReference rFFReference;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(dOCDocumentMessageDetails != null) {
nodeWriter.write("DOC");
nodeWriter.write(delimiters.getField());
dOCDocumentMessageDetails.write(nodeWriter, delimiters);
}
if(mOAMonetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmount.write(nodeWriter, delimiters);
}
if(cUXCurrencies != null) {
nodeWriter.write("CUX");
nodeWriter.write(delimiters.getField());
cUXCurrencies.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(cCDCreditCoverDetails != null) {
nodeWriter.write("CCD");
nodeWriter.write(delimiters.getField());
cCDCreditCoverDetails.write(nodeWriter, delimiters);
}
if(pCDPercentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetails.write(nodeWriter, delimiters);
}
if(pYTPaymentTerms != null) {
nodeWriter.write("PYT");
nodeWriter.write(delimiters.getField());
pYTPaymentTerms.write(nodeWriter, delimiters);
}
if(fTXFreeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeText.write(nodeWriter, delimiters);
}
if(rFFReference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReference.write(nodeWriter, delimiters);
}
}
public DOCDocumentMessageDetails getDOCDocumentMessageDetails() {
return dOCDocumentMessageDetails;
}
public SegmentGroup2 setDOCDocumentMessageDetails(DOCDocumentMessageDetails dOCDocumentMessageDetails) {
this.dOCDocumentMessageDetails = dOCDocumentMessageDetails; return this;
}
public MOAMonetaryAmount getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup2 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public CUXCurrencies getCUXCurrencies() {
return cUXCurrencies;
}
public SegmentGroup2 setCUXCurrencies(CUXCurrencies cUXCurrencies) {
this.cUXCurrencies = cUXCurrencies; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup2 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public CCDCreditCoverDetails getCCDCreditCoverDetails() {
return cCDCreditCoverDetails;
}
public SegmentGroup2 setCCDCreditCoverDetails(CCDCreditCoverDetails cCDCreditCoverDetails) {
this.cCDCreditCoverDetails = cCDCreditCoverDetails; return this;
}
public PCDPercentageDetails getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup2 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
public PYTPaymentTerms getPYTPaymentTerms() {
return pYTPaymentTerms;
}
public SegmentGroup2 setPYTPaymentTerms(PYTPaymentTerms pYTPaymentTerms) {
this.pYTPaymentTerms = pYTPaymentTerms; return this;
}
public FTXFreeText getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup2 setFTXFreeText(FTXFreeText fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public RFFReference getRFFReference() {
return rFFReference;
}
public SegmentGroup2 setRFFReference(RFFReference rFFReference) {
this.rFFReference = rFFReference; return this;
}
}