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

org.milyn.edi.unedifact.d05a.SAFHAZ.SegmentGroup12 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.d05a.SAFHAZ;

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

public class SegmentGroup12 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private PACPackage pACPackage;
    private List 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 && !pCIPackageIdentification.isEmpty()) {
            for(PCIPackageIdentification pCIPackageIdentificationInst : pCIPackageIdentification) {
                nodeWriter.write("PCI");
                nodeWriter.write(delimiters.getField());
                pCIPackageIdentificationInst.write(nodeWriter, delimiters);
            }
        }
    }

    public PACPackage getPACPackage() {
        return pACPackage;
    }

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

    public List getPCIPackageIdentification() {
        return pCIPackageIdentification;
    }

    public SegmentGroup12 setPCIPackageIdentification(List pCIPackageIdentification) {
        this.pCIPackageIdentification = pCIPackageIdentification;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy