org.milyn.edi.unedifact.d99b.CUSEXP.SegmentGroup9 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.CUSEXP;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.PACPackage;
import org.milyn.edi.unedifact.d99b.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;
}
}