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

org.virtuslab.edi.unedifact.d96a.CUSEXP.SegmentGroup9 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d96a.common.PACPackage;    
import org.virtuslab.edi.unedifact.d96a.common.PCIPackageIdentification;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup9 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private PACPackage pACPackage;
    private PCIPackageIdentification pCIPackageIdentification;

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

        if(pACPackage != null) {
            nodeWriter.write("PAC");
            nodeWriter.write(delimiters.getField());
            pACPackage.write(nodeWriter, delimiters);
        }
        if(pCIPackageIdentification != null) {
            nodeWriter.write("PCI");
            nodeWriter.write(delimiters.getField());
            pCIPackageIdentification.write(nodeWriter, delimiters);
        }
    }

    public PACPackage getPACPackage() {
        return pACPackage;
    }

    public SegmentGroup9 setPACPackage(PACPackage pACPackage) {
        this.pACPackage = pACPackage;  return this;
    }

    public PCIPackageIdentification getPCIPackageIdentification() {
        return pCIPackageIdentification;
    }

    public SegmentGroup9 setPCIPackageIdentification(PCIPackageIdentification pCIPackageIdentification) {
        this.pCIPackageIdentification = pCIPackageIdentification;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy