org.milyn.edi.unedifact.d98a.VATDEC.SegmentGroup10 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.VATDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.DocumentMessageSummary;
import org.milyn.edi.unedifact.d98a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d98a.common.Measurements;
import org.milyn.edi.unedifact.d98a.common.PercentageDetails;
import org.milyn.edi.unedifact.d98a.common.GeneralIndicator;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup10 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DocumentMessageSummary documentMessageSummary;
private MonetaryAmount monetaryAmount;
private Measurements measurements;
private PercentageDetails percentageDetails;
private GeneralIndicator generalIndicator;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(documentMessageSummary != null) {
nodeWriter.write("DMS");
nodeWriter.write(delimiters.getField());
documentMessageSummary.write(nodeWriter, delimiters);
}
if(monetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmount.write(nodeWriter, delimiters);
}
if(measurements != null) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurements.write(nodeWriter, delimiters);
}
if(percentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetails.write(nodeWriter, delimiters);
}
if(generalIndicator != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicator.write(nodeWriter, delimiters);
}
}
public DocumentMessageSummary getDocumentMessageSummary() {
return documentMessageSummary;
}
public SegmentGroup10 setDocumentMessageSummary(DocumentMessageSummary documentMessageSummary) {
this.documentMessageSummary = documentMessageSummary; return this;
}
public MonetaryAmount getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup10 setMonetaryAmount(MonetaryAmount monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public Measurements getMeasurements() {
return measurements;
}
public SegmentGroup10 setMeasurements(Measurements measurements) {
this.measurements = measurements; return this;
}
public PercentageDetails getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup10 setPercentageDetails(PercentageDetails percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public GeneralIndicator getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup10 setGeneralIndicator(GeneralIndicator generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy