org.milyn.edi.unedifact.d99b.CUSDEC.SegmentGroup18 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.PaymentTermsBasis;
import org.milyn.edi.unedifact.d99b.common.MonetaryAmount;
import org.milyn.edi.unedifact.d99b.common.PercentageDetails;
import org.milyn.edi.unedifact.d99b.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup18 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PaymentTermsBasis paymentTermsBasis;
private MonetaryAmount monetaryAmount;
private PercentageDetails percentageDetails;
private FreeText freeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(paymentTermsBasis != null) {
nodeWriter.write("PAT");
nodeWriter.write(delimiters.getField());
paymentTermsBasis.write(nodeWriter, delimiters);
}
if(monetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmount.write(nodeWriter, delimiters);
}
if(percentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetails.write(nodeWriter, delimiters);
}
if(freeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeText.write(nodeWriter, delimiters);
}
}
public PaymentTermsBasis getPaymentTermsBasis() {
return paymentTermsBasis;
}
public SegmentGroup18 setPaymentTermsBasis(PaymentTermsBasis paymentTermsBasis) {
this.paymentTermsBasis = paymentTermsBasis; return this;
}
public MonetaryAmount getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup18 setMonetaryAmount(MonetaryAmount monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public PercentageDetails getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup18 setPercentageDetails(PercentageDetails percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public FreeText getFreeText() {
return freeText;
}
public SegmentGroup18 setFreeText(FreeText freeText) {
this.freeText = freeText; return this;
}
}