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

org.milyn.edi.unedifact.d98a.SLSFCT.SegmentGroup6 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.d98a.SLSFCT;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d98a.common.LineItem;    
import java.util.List;    
import org.milyn.edi.unedifact.d98a.common.AdditionalProductId;    
import org.milyn.edi.unedifact.d98a.common.ItemDescription;    
import org.milyn.edi.unedifact.d98a.common.Package;    
import org.milyn.edi.unedifact.d98a.common.Reference;    
import org.milyn.edi.unedifact.d98a.common.DocumentMessageDetails;    
import org.milyn.edi.unedifact.d98a.common.AdditionalInformation;    
import org.milyn.edi.unedifact.d98a.common.MonetaryAmount;    
import org.milyn.edi.unedifact.d98a.common.PriceDetails;    
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 LineItem lineItem;
    private List additionalProductId;
    private List itemDescription;
    private List _package;
    private List reference;
    private List documentMessageDetails;
    private List additionalInformation;
    private List monetaryAmount;
    private List priceDetails;
    private List segmentGroup7;

    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(additionalProductId != null && !additionalProductId.isEmpty()) {
            for(AdditionalProductId additionalProductIdInst : additionalProductId) {
                nodeWriter.write("PIA");
                nodeWriter.write(delimiters.getField());
                additionalProductIdInst.write(nodeWriter, delimiters);
            }
        }
        if(itemDescription != null && !itemDescription.isEmpty()) {
            for(ItemDescription itemDescriptionInst : itemDescription) {
                nodeWriter.write("IMD");
                nodeWriter.write(delimiters.getField());
                itemDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(_package != null && !_package.isEmpty()) {
            for(Package _packageInst : _package) {
                nodeWriter.write("PAC");
                nodeWriter.write(delimiters.getField());
                _packageInst.write(nodeWriter, delimiters);
            }
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(documentMessageDetails != null && !documentMessageDetails.isEmpty()) {
            for(DocumentMessageDetails documentMessageDetailsInst : documentMessageDetails) {
                nodeWriter.write("DOC");
                nodeWriter.write(delimiters.getField());
                documentMessageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(additionalInformation != null && !additionalInformation.isEmpty()) {
            for(AdditionalInformation additionalInformationInst : additionalInformation) {
                nodeWriter.write("ALI");
                nodeWriter.write(delimiters.getField());
                additionalInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
            for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                monetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(priceDetails != null && !priceDetails.isEmpty()) {
            for(PriceDetails priceDetailsInst : priceDetails) {
                nodeWriter.write("PRI");
                nodeWriter.write(delimiters.getField());
                priceDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public LineItem getLineItem() {
        return lineItem;
    }

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

    public List getAdditionalProductId() {
        return additionalProductId;
    }

    public SegmentGroup6 setAdditionalProductId(List additionalProductId) {
        this.additionalProductId = additionalProductId;  return this;
    }

    public List getItemDescription() {
        return itemDescription;
    }

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

    public List get_package() {
        return _package;
    }

    public SegmentGroup6 set_package(List _package) {
        this._package = _package;  return this;
    }

    public List getReference() {
        return reference;
    }

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

    public List getDocumentMessageDetails() {
        return documentMessageDetails;
    }

    public SegmentGroup6 setDocumentMessageDetails(List documentMessageDetails) {
        this.documentMessageDetails = documentMessageDetails;  return this;
    }

    public List getAdditionalInformation() {
        return additionalInformation;
    }

    public SegmentGroup6 setAdditionalInformation(List additionalInformation) {
        this.additionalInformation = additionalInformation;  return this;
    }

    public List getMonetaryAmount() {
        return monetaryAmount;
    }

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

    public List getPriceDetails() {
        return priceDetails;
    }

    public SegmentGroup6 setPriceDetails(List priceDetails) {
        this.priceDetails = priceDetails;  return this;
    }

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy