All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.virtuslab.edi.unedifact.d96a.BANSTA.SegmentGroup6 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.virtuslab.edi.unedifact.d96a.BANSTA;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d96a.common.SEQSequenceDetails;    
import org.virtuslab.edi.unedifact.d96a.common.GISGeneralIndicator;    
import java.util.List;    
import org.virtuslab.edi.unedifact.d96a.common.DTMDateTimePeriod;    
import org.virtuslab.edi.unedifact.d96a.common.MOAMonetaryAmount;    
import org.virtuslab.edi.unedifact.d96a.common.CUXCurrencies;    
import org.virtuslab.edi.unedifact.d96a.common.PCDPercentageDetails;    
import org.virtuslab.edi.unedifact.d96a.common.FTXFreeText;    
import org.virtuslab.edi.unedifact.d96a.common.DOCDocumentMessageDetails;    
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 SEQSequenceDetails sEQSequenceDetails;
    private GISGeneralIndicator gISGeneralIndicator;
    private List dTMDateTimePeriod;
    private MOAMonetaryAmount mOAMonetaryAmount;
    private CUXCurrencies cUXCurrencies;
    private PCDPercentageDetails pCDPercentageDetails;
    private FTXFreeText fTXFreeText;
    private List dOCDocumentMessageDetails;
    private SegmentGroup7 segmentGroup7;
    private SegmentGroup8 segmentGroup8;

    public void write(Writer writer, Delimiters delimiters) throws IOException {
        
        Writer nodeWriter = writer;

        if(sEQSequenceDetails != null) {
            nodeWriter.write("SEQ");
            nodeWriter.write(delimiters.getField());
            sEQSequenceDetails.write(nodeWriter, delimiters);
        }
        if(gISGeneralIndicator != null) {
            nodeWriter.write("GIS");
            nodeWriter.write(delimiters.getField());
            gISGeneralIndicator.write(nodeWriter, delimiters);
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.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(pCDPercentageDetails != null) {
            nodeWriter.write("PCD");
            nodeWriter.write(delimiters.getField());
            pCDPercentageDetails.write(nodeWriter, delimiters);
        }
        if(fTXFreeText != null) {
            nodeWriter.write("FTX");
            nodeWriter.write(delimiters.getField());
            fTXFreeText.write(nodeWriter, delimiters);
        }
        if(dOCDocumentMessageDetails != null && !dOCDocumentMessageDetails.isEmpty()) {
            for(DOCDocumentMessageDetails dOCDocumentMessageDetailsInst : dOCDocumentMessageDetails) {
                nodeWriter.write("DOC");
                nodeWriter.write(delimiters.getField());
                dOCDocumentMessageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null) {
            segmentGroup7.write(nodeWriter, delimiters);
        }
        if(segmentGroup8 != null) {
            segmentGroup8.write(nodeWriter, delimiters);
        }
    }

    public SEQSequenceDetails getSEQSequenceDetails() {
        return sEQSequenceDetails;
    }

    public SegmentGroup6 setSEQSequenceDetails(SEQSequenceDetails sEQSequenceDetails) {
        this.sEQSequenceDetails = sEQSequenceDetails;  return this;
    }

    public GISGeneralIndicator getGISGeneralIndicator() {
        return gISGeneralIndicator;
    }

    public SegmentGroup6 setGISGeneralIndicator(GISGeneralIndicator gISGeneralIndicator) {
        this.gISGeneralIndicator = gISGeneralIndicator;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup6 setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public MOAMonetaryAmount getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

    public SegmentGroup6 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
        this.mOAMonetaryAmount = mOAMonetaryAmount;  return this;
    }

    public CUXCurrencies getCUXCurrencies() {
        return cUXCurrencies;
    }

    public SegmentGroup6 setCUXCurrencies(CUXCurrencies cUXCurrencies) {
        this.cUXCurrencies = cUXCurrencies;  return this;
    }

    public PCDPercentageDetails getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

    public SegmentGroup6 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
        this.pCDPercentageDetails = pCDPercentageDetails;  return this;
    }

    public FTXFreeText getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup6 setFTXFreeText(FTXFreeText fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public List getDOCDocumentMessageDetails() {
        return dOCDocumentMessageDetails;
    }

    public SegmentGroup6 setDOCDocumentMessageDetails(List dOCDocumentMessageDetails) {
        this.dOCDocumentMessageDetails = dOCDocumentMessageDetails;  return this;
    }

    public SegmentGroup7 getSegmentGroup7() {
        return segmentGroup7;
    }

    public SegmentGroup6 setSegmentGroup7(SegmentGroup7 segmentGroup7) {
        this.segmentGroup7 = segmentGroup7;  return this;
    }

    public SegmentGroup8 getSegmentGroup8() {
        return segmentGroup8;
    }

    public SegmentGroup6 setSegmentGroup8(SegmentGroup8 segmentGroup8) {
        this.segmentGroup8 = segmentGroup8;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy