org.milyn.edi.unedifact.d06b.CUSDEC.SegmentGroup40 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;
import org.milyn.edi.unedifact.d06b.common.PercentageDetails;
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.Reference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup40 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ProcessingInformation processingInformation;
private PercentageDetails percentageDetails;
private DateTimePeriod dateTimePeriod;
private Reference reference;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(processingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformation.write(nodeWriter, delimiters);
}
if(percentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetails.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriod.write(nodeWriter, delimiters);
}
if(reference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
reference.write(nodeWriter, delimiters);
}
}
public ProcessingInformation getProcessingInformation() {
return processingInformation;
}
public SegmentGroup40 setProcessingInformation(ProcessingInformation processingInformation) {
this.processingInformation = processingInformation; return this;
}
public PercentageDetails getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup40 setPercentageDetails(PercentageDetails percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public DateTimePeriod getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup40 setDateTimePeriod(DateTimePeriod dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public Reference getReference() {
return reference;
}
public SegmentGroup40 setReference(Reference reference) {
this.reference = reference; return this;
}
}