org.milyn.edi.unedifact.d99b.CNTCND.SegmentGroup32 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.CNTCND;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.PCDPercentageDetails;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.RNGRangeDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup32 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PCDPercentageDetails pCDPercentageDetails;
private List rNGRangeDetails;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(pCDPercentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetails.write(nodeWriter, delimiters);
}
if(rNGRangeDetails != null && !rNGRangeDetails.isEmpty()) {
for(RNGRangeDetails rNGRangeDetailsInst : rNGRangeDetails) {
nodeWriter.write("RNG");
nodeWriter.write(delimiters.getField());
rNGRangeDetailsInst.write(nodeWriter, delimiters);
}
}
}
public PCDPercentageDetails getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup32 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
public List getRNGRangeDetails() {
return rNGRangeDetails;
}
public SegmentGroup32 setRNGRangeDetails(List rNGRangeDetails) {
this.rNGRangeDetails = rNGRangeDetails; return this;
}
}