org.milyn.edi.unedifact.d06b.REPREM.SegmentGroup6 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.REPREM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.Currencies;
import org.milyn.edi.unedifact.d06b.common.MonetaryAmount;
import org.milyn.edi.unedifact.d06b.common.AdjustmentDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Currencies currencies;
private MonetaryAmount monetaryAmount;
private AdjustmentDetails adjustmentDetails;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(currencies != null) {
nodeWriter.write("CUX");
nodeWriter.write(delimiters.getField());
currencies.write(nodeWriter, delimiters);
}
if(monetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmount.write(nodeWriter, delimiters);
}
if(adjustmentDetails != null) {
nodeWriter.write("AJT");
nodeWriter.write(delimiters.getField());
adjustmentDetails.write(nodeWriter, delimiters);
}
}
public Currencies getCurrencies() {
return currencies;
}
public SegmentGroup6 setCurrencies(Currencies currencies) {
this.currencies = currencies; return this;
}
public MonetaryAmount getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup6 setMonetaryAmount(MonetaryAmount monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public AdjustmentDetails getAdjustmentDetails() {
return adjustmentDetails;
}
public SegmentGroup6 setAdjustmentDetails(AdjustmentDetails adjustmentDetails) {
this.adjustmentDetails = adjustmentDetails; return this;
}
}