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

org.milyn.edi.unedifact.d96a.DOCINF.SegmentGroup17 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.d96a.DOCINF;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d96a.common.DocumentMessageDetails;    
import org.milyn.edi.unedifact.d96a.common.MonetaryAmount;    
import org.milyn.edi.unedifact.d96a.common.PercentageDetails;    
import org.milyn.edi.unedifact.d96a.common.PlaceLocationIdentification;    
import org.milyn.edi.unedifact.d96a.common.FreeText;    
import java.util.List;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup17 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private DocumentMessageDetails documentMessageDetails;
    private MonetaryAmount monetaryAmount;
    private PercentageDetails percentageDetails;
    private PlaceLocationIdentification placeLocationIdentification;
    private FreeText freeText;
    private List segmentGroup18;

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

        if(documentMessageDetails != null) {
            nodeWriter.write("DOC");
            nodeWriter.write(delimiters.getField());
            documentMessageDetails.write(nodeWriter, delimiters);
        }
        if(monetaryAmount != null) {
            nodeWriter.write("MOA");
            nodeWriter.write(delimiters.getField());
            monetaryAmount.write(nodeWriter, delimiters);
        }
        if(percentageDetails != null) {
            nodeWriter.write("PCD");
            nodeWriter.write(delimiters.getField());
            percentageDetails.write(nodeWriter, delimiters);
        }
        if(placeLocationIdentification != null) {
            nodeWriter.write("LOC");
            nodeWriter.write(delimiters.getField());
            placeLocationIdentification.write(nodeWriter, delimiters);
        }
        if(freeText != null) {
            nodeWriter.write("FTX");
            nodeWriter.write(delimiters.getField());
            freeText.write(nodeWriter, delimiters);
        }
        if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
            for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
                segmentGroup18Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public DocumentMessageDetails getDocumentMessageDetails() {
        return documentMessageDetails;
    }

    public SegmentGroup17 setDocumentMessageDetails(DocumentMessageDetails documentMessageDetails) {
        this.documentMessageDetails = documentMessageDetails;  return this;
    }

    public MonetaryAmount getMonetaryAmount() {
        return monetaryAmount;
    }

    public SegmentGroup17 setMonetaryAmount(MonetaryAmount monetaryAmount) {
        this.monetaryAmount = monetaryAmount;  return this;
    }

    public PercentageDetails getPercentageDetails() {
        return percentageDetails;
    }

    public SegmentGroup17 setPercentageDetails(PercentageDetails percentageDetails) {
        this.percentageDetails = percentageDetails;  return this;
    }

    public PlaceLocationIdentification getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

    public SegmentGroup17 setPlaceLocationIdentification(PlaceLocationIdentification placeLocationIdentification) {
        this.placeLocationIdentification = placeLocationIdentification;  return this;
    }

    public FreeText getFreeText() {
        return freeText;
    }

    public SegmentGroup17 setFreeText(FreeText freeText) {
        this.freeText = freeText;  return this;
    }

    public List getSegmentGroup18() {
        return segmentGroup18;
    }

    public SegmentGroup17 setSegmentGroup18(List segmentGroup18) {
        this.segmentGroup18 = segmentGroup18;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy