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

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

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.Identity;    
import org.milyn.edi.unedifact.d06b.common.LineItem;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.AdditionalProductId;    
import org.milyn.edi.unedifact.d06b.common.ItemDescription;    
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d06b.common.ProcessIdentification;    
import org.milyn.edi.unedifact.d06b.common.Status;    
import org.milyn.edi.unedifact.d06b.common.DutyTaxFeeDetails;    
import org.milyn.edi.unedifact.d06b.common.Priority;    
import org.milyn.edi.unedifact.d06b.common.FreeText;    
import org.milyn.edi.unedifact.d06b.common.AgreementIdentification;    
import org.milyn.edi.unedifact.d06b.common.PartiesAndInstruction;    
import org.milyn.edi.unedifact.d06b.common.TransportServiceRequirements;    
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 Identity identity;
    private LineItem lineItem;
    private List additionalProductId;
    private List itemDescription;
    private List dateTimePeriod;
    private List processIdentification;
    private List status;
    private List dutyTaxFeeDetails;
    private List priority;
    private List freeText;
    private List agreementIdentification;
    private List partiesAndInstruction;
    private List transportServiceRequirements;
    private List segmentGroup5;
    private List segmentGroup6;
    private List segmentGroup7;
    private List segmentGroup8;
    private List segmentGroup11;
    private List segmentGroup12;

    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(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(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(dutyTaxFeeDetails != null && !dutyTaxFeeDetails.isEmpty()) {
            for(DutyTaxFeeDetails dutyTaxFeeDetailsInst : dutyTaxFeeDetails) {
                nodeWriter.write("TAX");
                nodeWriter.write(delimiters.getField());
                dutyTaxFeeDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(priority != null && !priority.isEmpty()) {
            for(Priority priorityInst : priority) {
                nodeWriter.write("PTY");
                nodeWriter.write(delimiters.getField());
                priorityInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(agreementIdentification != null && !agreementIdentification.isEmpty()) {
            for(AgreementIdentification agreementIdentificationInst : agreementIdentification) {
                nodeWriter.write("AGR");
                nodeWriter.write(delimiters.getField());
                agreementIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(partiesAndInstruction != null && !partiesAndInstruction.isEmpty()) {
            for(PartiesAndInstruction partiesAndInstructionInst : partiesAndInstruction) {
                nodeWriter.write("INP");
                nodeWriter.write(delimiters.getField());
                partiesAndInstructionInst.write(nodeWriter, delimiters);
            }
        }
        if(transportServiceRequirements != null && !transportServiceRequirements.isEmpty()) {
            for(TransportServiceRequirements transportServiceRequirementsInst : transportServiceRequirements) {
                nodeWriter.write("TSR");
                nodeWriter.write(delimiters.getField());
                transportServiceRequirementsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
            for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
                segmentGroup5Inst.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);
            }
        }
        if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
            for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
                segmentGroup11Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
            for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
                segmentGroup12Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public Identity getIdentity() {
        return identity;
    }

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

    public LineItem getLineItem() {
        return lineItem;
    }

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

    public List getAdditionalProductId() {
        return additionalProductId;
    }

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

    public List getItemDescription() {
        return itemDescription;
    }

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

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getProcessIdentification() {
        return processIdentification;
    }

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

    public List getStatus() {
        return status;
    }

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

    public List getDutyTaxFeeDetails() {
        return dutyTaxFeeDetails;
    }

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

    public List getPriority() {
        return priority;
    }

    public SegmentGroup4 setPriority(List priority) {
        this.priority = priority;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

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

    public List getAgreementIdentification() {
        return agreementIdentification;
    }

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

    public List getPartiesAndInstruction() {
        return partiesAndInstruction;
    }

    public SegmentGroup4 setPartiesAndInstruction(List partiesAndInstruction) {
        this.partiesAndInstruction = partiesAndInstruction;  return this;
    }

    public List getTransportServiceRequirements() {
        return transportServiceRequirements;
    }

    public SegmentGroup4 setTransportServiceRequirements(List transportServiceRequirements) {
        this.transportServiceRequirements = transportServiceRequirements;  return this;
    }

    public List getSegmentGroup5() {
        return segmentGroup5;
    }

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

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

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

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

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

    public List getSegmentGroup8() {
        return segmentGroup8;
    }

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

    public List getSegmentGroup11() {
        return segmentGroup11;
    }

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

    public List getSegmentGroup12() {
        return segmentGroup12;
    }

    public SegmentGroup4 setSegmentGroup12(List segmentGroup12) {
        this.segmentGroup12 = segmentGroup12;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy