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

org.milyn.edi.unedifact.d06b.CONPVA.SegmentGroup23 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.StructureIdentification;    
import org.milyn.edi.unedifact.d06b.common.RequirementsAndConditions;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.Quantity;    
import org.milyn.edi.unedifact.d06b.common.PriceDetails;    
import org.milyn.edi.unedifact.d06b.common.MonetaryAmount;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup23 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private StructureIdentification structureIdentification;
    private RequirementsAndConditions requirementsAndConditions;
    private List quantity;
    private PriceDetails priceDetails;
    private List monetaryAmount;
    private List segmentGroup24;
    private List segmentGroup26;
    private List segmentGroup27;
    private List segmentGroup28;

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

        if(structureIdentification != null) {
            nodeWriter.write("BII");
            nodeWriter.write(delimiters.getField());
            structureIdentification.write(nodeWriter, delimiters);
        }
        if(requirementsAndConditions != null) {
            nodeWriter.write("RCS");
            nodeWriter.write(delimiters.getField());
            requirementsAndConditions.write(nodeWriter, delimiters);
        }
        if(quantity != null && !quantity.isEmpty()) {
            for(Quantity quantityInst : quantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                quantityInst.write(nodeWriter, delimiters);
            }
        }
        if(priceDetails != null) {
            nodeWriter.write("PRI");
            nodeWriter.write(delimiters.getField());
            priceDetails.write(nodeWriter, delimiters);
        }
        if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
            for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                monetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
            for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
                segmentGroup24Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup26 != null && !segmentGroup26.isEmpty()) {
            for(SegmentGroup26 segmentGroup26Inst : segmentGroup26) {
                segmentGroup26Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup27 != null && !segmentGroup27.isEmpty()) {
            for(SegmentGroup27 segmentGroup27Inst : segmentGroup27) {
                segmentGroup27Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup28 != null && !segmentGroup28.isEmpty()) {
            for(SegmentGroup28 segmentGroup28Inst : segmentGroup28) {
                segmentGroup28Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public StructureIdentification getStructureIdentification() {
        return structureIdentification;
    }

    public SegmentGroup23 setStructureIdentification(StructureIdentification structureIdentification) {
        this.structureIdentification = structureIdentification;  return this;
    }

    public RequirementsAndConditions getRequirementsAndConditions() {
        return requirementsAndConditions;
    }

    public SegmentGroup23 setRequirementsAndConditions(RequirementsAndConditions requirementsAndConditions) {
        this.requirementsAndConditions = requirementsAndConditions;  return this;
    }

    public List getQuantity() {
        return quantity;
    }

    public SegmentGroup23 setQuantity(List quantity) {
        this.quantity = quantity;  return this;
    }

    public PriceDetails getPriceDetails() {
        return priceDetails;
    }

    public SegmentGroup23 setPriceDetails(PriceDetails priceDetails) {
        this.priceDetails = priceDetails;  return this;
    }

    public List getMonetaryAmount() {
        return monetaryAmount;
    }

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

    public List getSegmentGroup24() {
        return segmentGroup24;
    }

    public SegmentGroup23 setSegmentGroup24(List segmentGroup24) {
        this.segmentGroup24 = segmentGroup24;  return this;
    }

    public List getSegmentGroup26() {
        return segmentGroup26;
    }

    public SegmentGroup23 setSegmentGroup26(List segmentGroup26) {
        this.segmentGroup26 = segmentGroup26;  return this;
    }

    public List getSegmentGroup27() {
        return segmentGroup27;
    }

    public SegmentGroup23 setSegmentGroup27(List segmentGroup27) {
        this.segmentGroup27 = segmentGroup27;  return this;
    }

    public List getSegmentGroup28() {
        return segmentGroup28;
    }

    public SegmentGroup23 setSegmentGroup28(List segmentGroup28) {
        this.segmentGroup28 = segmentGroup28;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy