org.milyn.edi.unedifact.d99b.DEBREC.SegmentGroup24 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.DEBREC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.MonetaryAmountFunction;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.MonetaryAmount;
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.DutyTaxFeeDetails;
import org.milyn.edi.unedifact.d99b.common.FreeText;
import org.milyn.edi.unedifact.d99b.common.Attribute;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup24 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private MonetaryAmountFunction monetaryAmountFunction;
private List monetaryAmount;
private List dateTimePeriod;
private List dutyTaxFeeDetails;
private List freeText;
private List attribute;
private List segmentGroup25;
private List segmentGroup26;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(monetaryAmountFunction != null) {
nodeWriter.write("ARD");
nodeWriter.write(delimiters.getField());
monetaryAmountFunction.write(nodeWriter, delimiters);
}
if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(dutyTaxFeeDetails != null && !dutyTaxFeeDetails.isEmpty()) {
for(DutyTaxFeeDetails dutyTaxFeeDetailsInst : dutyTaxFeeDetails) {
nodeWriter.write("TAX");
nodeWriter.write(delimiters.getField());
dutyTaxFeeDetailsInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(attribute != null && !attribute.isEmpty()) {
for(Attribute attributeInst : attribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
attributeInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
segmentGroup25Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup26 != null && !segmentGroup26.isEmpty()) {
for(SegmentGroup26 segmentGroup26Inst : segmentGroup26) {
segmentGroup26Inst.write(nodeWriter, delimiters);
}
}
}
public MonetaryAmountFunction getMonetaryAmountFunction() {
return monetaryAmountFunction;
}
public SegmentGroup24 setMonetaryAmountFunction(MonetaryAmountFunction monetaryAmountFunction) {
this.monetaryAmountFunction = monetaryAmountFunction; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup24 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup24 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getDutyTaxFeeDetails() {
return dutyTaxFeeDetails;
}
public SegmentGroup24 setDutyTaxFeeDetails(List dutyTaxFeeDetails) {
this.dutyTaxFeeDetails = dutyTaxFeeDetails; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup24 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getAttribute() {
return attribute;
}
public SegmentGroup24 setAttribute(List attribute) {
this.attribute = attribute; return this;
}
public List getSegmentGroup25() {
return segmentGroup25;
}
public SegmentGroup24 setSegmentGroup25(List segmentGroup25) {
this.segmentGroup25 = segmentGroup25; return this;
}
public List getSegmentGroup26() {
return segmentGroup26;
}
public SegmentGroup24 setSegmentGroup26(List segmentGroup26) {
this.segmentGroup26 = segmentGroup26; return this;
}
}