org.milyn.edi.unedifact.d06b.INSPRE.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.INSPRE;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.TAXDutyTaxFeeDetails;
import org.milyn.edi.unedifact.d06b.common.PCDPercentageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private TAXDutyTaxFeeDetails tAXDutyTaxFeeDetails;
private PCDPercentageDetails pCDPercentageDetails;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(tAXDutyTaxFeeDetails != null) {
nodeWriter.write("TAX");
nodeWriter.write(delimiters.getField());
tAXDutyTaxFeeDetails.write(nodeWriter, delimiters);
}
if(pCDPercentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetails.write(nodeWriter, delimiters);
}
}
public TAXDutyTaxFeeDetails getTAXDutyTaxFeeDetails() {
return tAXDutyTaxFeeDetails;
}
public SegmentGroup8 setTAXDutyTaxFeeDetails(TAXDutyTaxFeeDetails tAXDutyTaxFeeDetails) {
this.tAXDutyTaxFeeDetails = tAXDutyTaxFeeDetails; return this;
}
public PCDPercentageDetails getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup8 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
}