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

org.milyn.edi.unedifact.d99b.CUSPED.SegmentGroup20 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d99b.CUSPED;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.DOCDocumentMessageDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d99b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d99b.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d99b.common.NADNameAndAddress;    
import org.milyn.edi.unedifact.d99b.common.GINGoodsIdentityNumber;    
import org.milyn.edi.unedifact.d99b.common.MOAMonetaryAmount;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup20 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private DOCDocumentMessageDetails dOCDocumentMessageDetails;
    private List dTMDateTimePeriod;
    private LOCPlaceLocationIdentification lOCPlaceLocationIdentification;
    private NADNameAndAddress nADNameAndAddress;
    private List gINGoodsIdentityNumber;
    private MOAMonetaryAmount mOAMonetaryAmount;
    private SegmentGroup21 segmentGroup21;

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

        if(dOCDocumentMessageDetails != null) {
            nodeWriter.write("DOC");
            nodeWriter.write(delimiters.getField());
            dOCDocumentMessageDetails.write(nodeWriter, delimiters);
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(lOCPlaceLocationIdentification != null) {
            nodeWriter.write("LOC");
            nodeWriter.write(delimiters.getField());
            lOCPlaceLocationIdentification.write(nodeWriter, delimiters);
        }
        if(nADNameAndAddress != null) {
            nodeWriter.write("NAD");
            nodeWriter.write(delimiters.getField());
            nADNameAndAddress.write(nodeWriter, delimiters);
        }
        if(gINGoodsIdentityNumber != null && !gINGoodsIdentityNumber.isEmpty()) {
            for(GINGoodsIdentityNumber gINGoodsIdentityNumberInst : gINGoodsIdentityNumber) {
                nodeWriter.write("GIN");
                nodeWriter.write(delimiters.getField());
                gINGoodsIdentityNumberInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null) {
            nodeWriter.write("MOA");
            nodeWriter.write(delimiters.getField());
            mOAMonetaryAmount.write(nodeWriter, delimiters);
        }
        if(segmentGroup21 != null) {
            segmentGroup21.write(nodeWriter, delimiters);
        }
    }

    public DOCDocumentMessageDetails getDOCDocumentMessageDetails() {
        return dOCDocumentMessageDetails;
    }

    public SegmentGroup20 setDOCDocumentMessageDetails(DOCDocumentMessageDetails dOCDocumentMessageDetails) {
        this.dOCDocumentMessageDetails = dOCDocumentMessageDetails;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup20 setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public LOCPlaceLocationIdentification getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

    public SegmentGroup20 setLOCPlaceLocationIdentification(LOCPlaceLocationIdentification lOCPlaceLocationIdentification) {
        this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification;  return this;
    }

    public NADNameAndAddress getNADNameAndAddress() {
        return nADNameAndAddress;
    }

    public SegmentGroup20 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
        this.nADNameAndAddress = nADNameAndAddress;  return this;
    }

    public List getGINGoodsIdentityNumber() {
        return gINGoodsIdentityNumber;
    }

    public SegmentGroup20 setGINGoodsIdentityNumber(List gINGoodsIdentityNumber) {
        this.gINGoodsIdentityNumber = gINGoodsIdentityNumber;  return this;
    }

    public MOAMonetaryAmount getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

    public SegmentGroup20 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
        this.mOAMonetaryAmount = mOAMonetaryAmount;  return this;
    }

    public SegmentGroup21 getSegmentGroup21() {
        return segmentGroup21;
    }

    public SegmentGroup20 setSegmentGroup21(SegmentGroup21 segmentGroup21) {
        this.segmentGroup21 = segmentGroup21;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy