org.milyn.edi.unedifact.d98a.SUPMAN.SegmentGroup9 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.SUPMAN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.Attribute;
import org.milyn.edi.unedifact.d98a.common.PercentageDetails;
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 Attribute attribute;
private PercentageDetails percentageDetails;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(attribute != null) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
attribute.write(nodeWriter, delimiters);
}
if(percentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetails.write(nodeWriter, delimiters);
}
}
public Attribute getAttribute() {
return attribute;
}
public SegmentGroup9 setAttribute(Attribute attribute) {
this.attribute = attribute; return this;
}
public PercentageDetails getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup9 setPercentageDetails(PercentageDetails percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy