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

org.milyn.edi.unedifact.d06b.CHACCO.SegmentGroup4 Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d06b.CHACCO;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.LINLineItem;    
import org.milyn.edi.unedifact.d06b.common.CPTAccountIdentification;    
import org.milyn.edi.unedifact.d06b.common.FTXFreeText;    
import org.milyn.edi.unedifact.d06b.common.TAXDutyTaxFeeDetails;    
import org.milyn.edi.unedifact.d06b.common.DTMDateTimePeriod;    
import java.util.List;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup4 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private LINLineItem lINLineItem;
    private CPTAccountIdentification cPTAccountIdentification;
    private FTXFreeText fTXFreeText;
    private TAXDutyTaxFeeDetails tAXDutyTaxFeeDetails;
    private DTMDateTimePeriod dTMDateTimePeriod;
    private List segmentGroup5;
    private List segmentGroup7;

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

        if(lINLineItem != null) {
            nodeWriter.write("LIN");
            nodeWriter.write(delimiters.getField());
            lINLineItem.write(nodeWriter, delimiters);
        }
        if(cPTAccountIdentification != null) {
            nodeWriter.write("CPT");
            nodeWriter.write(delimiters.getField());
            cPTAccountIdentification.write(nodeWriter, delimiters);
        }
        if(fTXFreeText != null) {
            nodeWriter.write("FTX");
            nodeWriter.write(delimiters.getField());
            fTXFreeText.write(nodeWriter, delimiters);
        }
        if(tAXDutyTaxFeeDetails != null) {
            nodeWriter.write("TAX");
            nodeWriter.write(delimiters.getField());
            tAXDutyTaxFeeDetails.write(nodeWriter, delimiters);
        }
        if(dTMDateTimePeriod != null) {
            nodeWriter.write("DTM");
            nodeWriter.write(delimiters.getField());
            dTMDateTimePeriod.write(nodeWriter, delimiters);
        }
        if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
            for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
                segmentGroup5Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public LINLineItem getLINLineItem() {
        return lINLineItem;
    }

    public SegmentGroup4 setLINLineItem(LINLineItem lINLineItem) {
        this.lINLineItem = lINLineItem;  return this;
    }

    public CPTAccountIdentification getCPTAccountIdentification() {
        return cPTAccountIdentification;
    }

    public SegmentGroup4 setCPTAccountIdentification(CPTAccountIdentification cPTAccountIdentification) {
        this.cPTAccountIdentification = cPTAccountIdentification;  return this;
    }

    public FTXFreeText getFTXFreeText() {
        return fTXFreeText;
    }

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

    public TAXDutyTaxFeeDetails getTAXDutyTaxFeeDetails() {
        return tAXDutyTaxFeeDetails;
    }

    public SegmentGroup4 setTAXDutyTaxFeeDetails(TAXDutyTaxFeeDetails tAXDutyTaxFeeDetails) {
        this.tAXDutyTaxFeeDetails = tAXDutyTaxFeeDetails;  return this;
    }

    public DTMDateTimePeriod getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getSegmentGroup5() {
        return segmentGroup5;
    }

    public SegmentGroup4 setSegmentGroup5(List segmentGroup5) {
        this.segmentGroup5 = segmentGroup5;  return this;
    }

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

    public SegmentGroup4 setSegmentGroup7(List segmentGroup7) {
        this.segmentGroup7 = segmentGroup7;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy