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

org.milyn.edi.unedifact.d99b.IPPOMO.Ippomo 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.d99b.IPPOMO;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.smooks.edi.EDIMessage;    
import org.milyn.edi.unedifact.d99b.common.BeginningOfMessage;    
import org.milyn.edi.unedifact.d99b.common.GeneralIndicator;    
import java.util.List;    
import org.milyn.edi.unedifact.d99b.common.Attribute;    
import org.milyn.edi.unedifact.d99b.common.ContactInformation;    
import org.milyn.edi.unedifact.d99b.common.Reference;    
import org.milyn.edi.unedifact.d99b.common.Quantity;    
import org.milyn.edi.unedifact.d99b.common.SequenceDetails;    
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d99b.common.SectionControl;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

@EDIMessage    
public class Ippomo implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private BeginningOfMessage beginningOfMessage;
    private GeneralIndicator generalIndicator;
    private List attribute;
    private ContactInformation contactInformation;
    private List reference;
    private Quantity quantity;
    private SequenceDetails sequenceDetails;
    private List dateTimePeriod;
    private List segmentGroup1;
    private List segmentGroup3;
    private List segmentGroup7;
    private List segmentGroup13;
    private List segmentGroup17;
    private SectionControl sectionControl;
    private List segmentGroup33;

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

        if(beginningOfMessage != null) {
            nodeWriter.write("BGM");
            nodeWriter.write(delimiters.getField());
            beginningOfMessage.write(nodeWriter, delimiters);
        }
        if(generalIndicator != null) {
            nodeWriter.write("GIS");
            nodeWriter.write(delimiters.getField());
            generalIndicator.write(nodeWriter, delimiters);
        }
        if(attribute != null && !attribute.isEmpty()) {
            for(Attribute attributeInst : attribute) {
                nodeWriter.write("ATT");
                nodeWriter.write(delimiters.getField());
                attributeInst.write(nodeWriter, delimiters);
            }
        }
        if(contactInformation != null) {
            nodeWriter.write("CTA");
            nodeWriter.write(delimiters.getField());
            contactInformation.write(nodeWriter, delimiters);
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(quantity != null) {
            nodeWriter.write("QTY");
            nodeWriter.write(delimiters.getField());
            quantity.write(nodeWriter, delimiters);
        }
        if(sequenceDetails != null) {
            nodeWriter.write("SEQ");
            nodeWriter.write(delimiters.getField());
            sequenceDetails.write(nodeWriter, delimiters);
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
            for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
                segmentGroup1Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
            for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
                segmentGroup3Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
            for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
                segmentGroup13Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
            for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
                segmentGroup17Inst.write(nodeWriter, delimiters);
            }
        }
        if(sectionControl != null) {
            nodeWriter.write("UNS");
            nodeWriter.write(delimiters.getField());
            sectionControl.write(nodeWriter, delimiters);
        }
        if(segmentGroup33 != null && !segmentGroup33.isEmpty()) {
            for(SegmentGroup33 segmentGroup33Inst : segmentGroup33) {
                segmentGroup33Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public BeginningOfMessage getBeginningOfMessage() {
        return beginningOfMessage;
    }

    public Ippomo setBeginningOfMessage(BeginningOfMessage beginningOfMessage) {
        this.beginningOfMessage = beginningOfMessage;  return this;
    }

    public GeneralIndicator getGeneralIndicator() {
        return generalIndicator;
    }

    public Ippomo setGeneralIndicator(GeneralIndicator generalIndicator) {
        this.generalIndicator = generalIndicator;  return this;
    }

    public List getAttribute() {
        return attribute;
    }

    public Ippomo setAttribute(List attribute) {
        this.attribute = attribute;  return this;
    }

    public ContactInformation getContactInformation() {
        return contactInformation;
    }

    public Ippomo setContactInformation(ContactInformation contactInformation) {
        this.contactInformation = contactInformation;  return this;
    }

    public List getReference() {
        return reference;
    }

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

    public Quantity getQuantity() {
        return quantity;
    }

    public Ippomo setQuantity(Quantity quantity) {
        this.quantity = quantity;  return this;
    }

    public SequenceDetails getSequenceDetails() {
        return sequenceDetails;
    }

    public Ippomo setSequenceDetails(SequenceDetails sequenceDetails) {
        this.sequenceDetails = sequenceDetails;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getSegmentGroup1() {
        return segmentGroup1;
    }

    public Ippomo setSegmentGroup1(List segmentGroup1) {
        this.segmentGroup1 = segmentGroup1;  return this;
    }

    public List getSegmentGroup3() {
        return segmentGroup3;
    }

    public Ippomo setSegmentGroup3(List segmentGroup3) {
        this.segmentGroup3 = segmentGroup3;  return this;
    }

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

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

    public List getSegmentGroup13() {
        return segmentGroup13;
    }

    public Ippomo setSegmentGroup13(List segmentGroup13) {
        this.segmentGroup13 = segmentGroup13;  return this;
    }

    public List getSegmentGroup17() {
        return segmentGroup17;
    }

    public Ippomo setSegmentGroup17(List segmentGroup17) {
        this.segmentGroup17 = segmentGroup17;  return this;
    }

    public SectionControl getSectionControl() {
        return sectionControl;
    }

    public Ippomo setSectionControl(SectionControl sectionControl) {
        this.sectionControl = sectionControl;  return this;
    }

    public List getSegmentGroup33() {
        return segmentGroup33;
    }

    public Ippomo setSegmentGroup33(List segmentGroup33) {
        this.segmentGroup33 = segmentGroup33;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy