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

org.virtuslab.edi.unedifact.d99a.ORDCHG.SegmentGroup43 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.virtuslab.edi.unedifact.d99a.ORDCHG;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d99a.common.PCDPercentageDetails;    
import org.virtuslab.edi.unedifact.d99a.common.RNGRangeDetails;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup43 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private PCDPercentageDetails pCDPercentageDetails;
    private RNGRangeDetails rNGRangeDetails;

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

        if(pCDPercentageDetails != null) {
            nodeWriter.write("PCD");
            nodeWriter.write(delimiters.getField());
            pCDPercentageDetails.write(nodeWriter, delimiters);
        }
        if(rNGRangeDetails != null) {
            nodeWriter.write("RNG");
            nodeWriter.write(delimiters.getField());
            rNGRangeDetails.write(nodeWriter, delimiters);
        }
    }

    public PCDPercentageDetails getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

    public SegmentGroup43 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
        this.pCDPercentageDetails = pCDPercentageDetails;  return this;
    }

    public RNGRangeDetails getRNGRangeDetails() {
        return rNGRangeDetails;
    }

    public SegmentGroup43 setRNGRangeDetails(RNGRangeDetails rNGRangeDetails) {
        this.rNGRangeDetails = rNGRangeDetails;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy