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

org.virtuslab.edi.unedifact.d99a.CONEST.SegmentGroup32 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.virtuslab.edi.unedifact.d99a.CONEST;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d99a.common.ALCAllowanceOrCharge;    
import org.virtuslab.edi.unedifact.d99a.common.RFFReference;    
import org.virtuslab.edi.unedifact.d99a.common.DTMDateTimePeriod;    
import org.virtuslab.edi.unedifact.d99a.common.RNGRangeDetails;    
import java.util.List;    
import org.virtuslab.edi.unedifact.d99a.common.FTXFreeText;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup32 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private ALCAllowanceOrCharge aLCAllowanceOrCharge;
    private RFFReference rFFReference;
    private DTMDateTimePeriod dTMDateTimePeriod;
    private RNGRangeDetails rNGRangeDetails;
    private List fTXFreeText;
    private List segmentGroup33;

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

        if(aLCAllowanceOrCharge != null) {
            nodeWriter.write("ALC");
            nodeWriter.write(delimiters.getField());
            aLCAllowanceOrCharge.write(nodeWriter, delimiters);
        }
        if(rFFReference != null) {
            nodeWriter.write("RFF");
            nodeWriter.write(delimiters.getField());
            rFFReference.write(nodeWriter, delimiters);
        }
        if(dTMDateTimePeriod != null) {
            nodeWriter.write("DTM");
            nodeWriter.write(delimiters.getField());
            dTMDateTimePeriod.write(nodeWriter, delimiters);
        }
        if(rNGRangeDetails != null) {
            nodeWriter.write("RNG");
            nodeWriter.write(delimiters.getField());
            rNGRangeDetails.write(nodeWriter, delimiters);
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup33 != null && !segmentGroup33.isEmpty()) {
            for(SegmentGroup33 segmentGroup33Inst : segmentGroup33) {
                segmentGroup33Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public ALCAllowanceOrCharge getALCAllowanceOrCharge() {
        return aLCAllowanceOrCharge;
    }

    public SegmentGroup32 setALCAllowanceOrCharge(ALCAllowanceOrCharge aLCAllowanceOrCharge) {
        this.aLCAllowanceOrCharge = aLCAllowanceOrCharge;  return this;
    }

    public RFFReference getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup32 setRFFReference(RFFReference rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }

    public DTMDateTimePeriod getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup32 setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public RNGRangeDetails getRNGRangeDetails() {
        return rNGRangeDetails;
    }

    public SegmentGroup32 setRNGRangeDetails(RNGRangeDetails rNGRangeDetails) {
        this.rNGRangeDetails = rNGRangeDetails;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup32 setFTXFreeText(List fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public List getSegmentGroup33() {
        return segmentGroup33;
    }

    public SegmentGroup32 setSegmentGroup33(List segmentGroup33) {
        this.segmentGroup33 = segmentGroup33;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy