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

org.milyn.edi.unedifact.d06b.STLRPT.SegmentGroup8 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d06b.STLRPT;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.LineItem;    
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.Reference;    
import org.milyn.edi.unedifact.d06b.common.NameAndAddress;    
import org.milyn.edi.unedifact.d06b.common.PlaceLocationIdentification;    
import org.milyn.edi.unedifact.d06b.common.Currencies;    
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;    
import org.milyn.edi.unedifact.d06b.common.ItemDescription;    
import org.milyn.edi.unedifact.d06b.common.MonetaryAmount;    
import org.milyn.edi.unedifact.d06b.common.AllowanceOrCharge;    
import org.milyn.edi.unedifact.d06b.common.FreeText;    
import org.milyn.edi.unedifact.d06b.common.DutyTaxFeeDetails;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup8 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private LineItem lineItem;
    private DateTimePeriod dateTimePeriod;
    private List reference;
    private List nameAndAddress;
    private PlaceLocationIdentification placeLocationIdentification;
    private Currencies currencies;
    private List processingInformation;
    private List itemDescription;
    private List monetaryAmount;
    private List allowanceOrCharge;
    private List freeText;
    private List dutyTaxFeeDetails;
    private List segmentGroup9;
    private List segmentGroup10;
    private List segmentGroup11;

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

        if(lineItem != null) {
            nodeWriter.write("LIN");
            nodeWriter.write(delimiters.getField());
            lineItem.write(nodeWriter, delimiters);
        }
        if(dateTimePeriod != null) {
            nodeWriter.write("DTM");
            nodeWriter.write(delimiters.getField());
            dateTimePeriod.write(nodeWriter, delimiters);
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(nameAndAddress != null && !nameAndAddress.isEmpty()) {
            for(NameAndAddress nameAndAddressInst : nameAndAddress) {
                nodeWriter.write("NAD");
                nodeWriter.write(delimiters.getField());
                nameAndAddressInst.write(nodeWriter, delimiters);
            }
        }
        if(placeLocationIdentification != null) {
            nodeWriter.write("LOC");
            nodeWriter.write(delimiters.getField());
            placeLocationIdentification.write(nodeWriter, delimiters);
        }
        if(currencies != null) {
            nodeWriter.write("CUX");
            nodeWriter.write(delimiters.getField());
            currencies.write(nodeWriter, delimiters);
        }
        if(processingInformation != null && !processingInformation.isEmpty()) {
            for(ProcessingInformation processingInformationInst : processingInformation) {
                nodeWriter.write("GEI");
                nodeWriter.write(delimiters.getField());
                processingInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(itemDescription != null && !itemDescription.isEmpty()) {
            for(ItemDescription itemDescriptionInst : itemDescription) {
                nodeWriter.write("IMD");
                nodeWriter.write(delimiters.getField());
                itemDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
            for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                monetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(allowanceOrCharge != null && !allowanceOrCharge.isEmpty()) {
            for(AllowanceOrCharge allowanceOrChargeInst : allowanceOrCharge) {
                nodeWriter.write("ALC");
                nodeWriter.write(delimiters.getField());
                allowanceOrChargeInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(dutyTaxFeeDetails != null && !dutyTaxFeeDetails.isEmpty()) {
            for(DutyTaxFeeDetails dutyTaxFeeDetailsInst : dutyTaxFeeDetails) {
                nodeWriter.write("TAX");
                nodeWriter.write(delimiters.getField());
                dutyTaxFeeDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
            for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
                segmentGroup9Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
            for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
                segmentGroup10Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
            for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
                segmentGroup11Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public LineItem getLineItem() {
        return lineItem;
    }

    public SegmentGroup8 setLineItem(LineItem lineItem) {
        this.lineItem = lineItem;  return this;
    }

    public DateTimePeriod getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup8 setDateTimePeriod(DateTimePeriod dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public List getReference() {
        return reference;
    }

    public SegmentGroup8 setReference(List reference) {
        this.reference = reference;  return this;
    }

    public List getNameAndAddress() {
        return nameAndAddress;
    }

    public SegmentGroup8 setNameAndAddress(List nameAndAddress) {
        this.nameAndAddress = nameAndAddress;  return this;
    }

    public PlaceLocationIdentification getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

    public SegmentGroup8 setPlaceLocationIdentification(PlaceLocationIdentification placeLocationIdentification) {
        this.placeLocationIdentification = placeLocationIdentification;  return this;
    }

    public Currencies getCurrencies() {
        return currencies;
    }

    public SegmentGroup8 setCurrencies(Currencies currencies) {
        this.currencies = currencies;  return this;
    }

    public List getProcessingInformation() {
        return processingInformation;
    }

    public SegmentGroup8 setProcessingInformation(List processingInformation) {
        this.processingInformation = processingInformation;  return this;
    }

    public List getItemDescription() {
        return itemDescription;
    }

    public SegmentGroup8 setItemDescription(List itemDescription) {
        this.itemDescription = itemDescription;  return this;
    }

    public List getMonetaryAmount() {
        return monetaryAmount;
    }

    public SegmentGroup8 setMonetaryAmount(List monetaryAmount) {
        this.monetaryAmount = monetaryAmount;  return this;
    }

    public List getAllowanceOrCharge() {
        return allowanceOrCharge;
    }

    public SegmentGroup8 setAllowanceOrCharge(List allowanceOrCharge) {
        this.allowanceOrCharge = allowanceOrCharge;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

    public SegmentGroup8 setFreeText(List freeText) {
        this.freeText = freeText;  return this;
    }

    public List getDutyTaxFeeDetails() {
        return dutyTaxFeeDetails;
    }

    public SegmentGroup8 setDutyTaxFeeDetails(List dutyTaxFeeDetails) {
        this.dutyTaxFeeDetails = dutyTaxFeeDetails;  return this;
    }

    public List getSegmentGroup9() {
        return segmentGroup9;
    }

    public SegmentGroup8 setSegmentGroup9(List segmentGroup9) {
        this.segmentGroup9 = segmentGroup9;  return this;
    }

    public List getSegmentGroup10() {
        return segmentGroup10;
    }

    public SegmentGroup8 setSegmentGroup10(List segmentGroup10) {
        this.segmentGroup10 = segmentGroup10;  return this;
    }

    public List getSegmentGroup11() {
        return segmentGroup11;
    }

    public SegmentGroup8 setSegmentGroup11(List segmentGroup11) {
        this.segmentGroup11 = segmentGroup11;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy