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

org.milyn.edi.unedifact.d05a.UTILTS.SegmentGroup5 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.d05a.UTILTS;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.Identity;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.PlaceLocationIdentification;    
import org.milyn.edi.unedifact.d05a.common.NameAndAddress;    
import org.milyn.edi.unedifact.d05a.common.AdditionalInformation;    
import org.milyn.edi.unedifact.d05a.common.LineItem;    
import org.milyn.edi.unedifact.d05a.common.AdditionalProductId;    
import org.milyn.edi.unedifact.d05a.common.ItemDescription;    
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d05a.common.ProcessIdentification;    
import org.milyn.edi.unedifact.d05a.common.Status;    
import org.milyn.edi.unedifact.d05a.common.AgreementIdentification;    
import org.milyn.edi.unedifact.d05a.common.Measurements;    
import org.milyn.edi.unedifact.d05a.common.FreeText;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup5 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private Identity identity;
    private List placeLocationIdentification;
    private List nameAndAddress;
    private List additionalInformation;
    private List lineItem;
    private List additionalProductId;
    private List itemDescription;
    private List dateTimePeriod;
    private List processIdentification;
    private List status;
    private List agreementIdentification;
    private List measurements;
    private List freeText;
    private List segmentGroup6;
    private List segmentGroup7;
    private List segmentGroup8;

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

        if(identity != null) {
            nodeWriter.write("IDE");
            nodeWriter.write(delimiters.getField());
            identity.write(nodeWriter, delimiters);
        }
        if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
            for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                placeLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(nameAndAddress != null && !nameAndAddress.isEmpty()) {
            for(NameAndAddress nameAndAddressInst : nameAndAddress) {
                nodeWriter.write("NAD");
                nodeWriter.write(delimiters.getField());
                nameAndAddressInst.write(nodeWriter, delimiters);
            }
        }
        if(additionalInformation != null && !additionalInformation.isEmpty()) {
            for(AdditionalInformation additionalInformationInst : additionalInformation) {
                nodeWriter.write("ALI");
                nodeWriter.write(delimiters.getField());
                additionalInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(lineItem != null && !lineItem.isEmpty()) {
            for(LineItem lineItemInst : lineItem) {
                nodeWriter.write("LIN");
                nodeWriter.write(delimiters.getField());
                lineItemInst.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(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(processIdentification != null && !processIdentification.isEmpty()) {
            for(ProcessIdentification processIdentificationInst : processIdentification) {
                nodeWriter.write("PRC");
                nodeWriter.write(delimiters.getField());
                processIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(status != null && !status.isEmpty()) {
            for(Status statusInst : status) {
                nodeWriter.write("STS");
                nodeWriter.write(delimiters.getField());
                statusInst.write(nodeWriter, delimiters);
            }
        }
        if(agreementIdentification != null && !agreementIdentification.isEmpty()) {
            for(AgreementIdentification agreementIdentificationInst : agreementIdentification) {
                nodeWriter.write("AGR");
                nodeWriter.write(delimiters.getField());
                agreementIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(measurements != null && !measurements.isEmpty()) {
            for(Measurements measurementsInst : measurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                measurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
            for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
                segmentGroup6Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
            for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
                segmentGroup8Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public Identity getIdentity() {
        return identity;
    }

    public SegmentGroup5 setIdentity(Identity identity) {
        this.identity = identity;  return this;
    }

    public List getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

    public SegmentGroup5 setPlaceLocationIdentification(List placeLocationIdentification) {
        this.placeLocationIdentification = placeLocationIdentification;  return this;
    }

    public List getNameAndAddress() {
        return nameAndAddress;
    }

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

    public List getAdditionalInformation() {
        return additionalInformation;
    }

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

    public List getLineItem() {
        return lineItem;
    }

    public SegmentGroup5 setLineItem(List lineItem) {
        this.lineItem = lineItem;  return this;
    }

    public List getAdditionalProductId() {
        return additionalProductId;
    }

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

    public List getItemDescription() {
        return itemDescription;
    }

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

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup5 setDateTimePeriod(List dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public List getProcessIdentification() {
        return processIdentification;
    }

    public SegmentGroup5 setProcessIdentification(List processIdentification) {
        this.processIdentification = processIdentification;  return this;
    }

    public List getStatus() {
        return status;
    }

    public SegmentGroup5 setStatus(List status) {
        this.status = status;  return this;
    }

    public List getAgreementIdentification() {
        return agreementIdentification;
    }

    public SegmentGroup5 setAgreementIdentification(List agreementIdentification) {
        this.agreementIdentification = agreementIdentification;  return this;
    }

    public List getMeasurements() {
        return measurements;
    }

    public SegmentGroup5 setMeasurements(List measurements) {
        this.measurements = measurements;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

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

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

    public SegmentGroup5 setSegmentGroup6(List segmentGroup6) {
        this.segmentGroup6 = segmentGroup6;  return this;
    }

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

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

    public List getSegmentGroup8() {
        return segmentGroup8;
    }

    public SegmentGroup5 setSegmentGroup8(List segmentGroup8) {
        this.segmentGroup8 = segmentGroup8;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy