org.milyn.edi.unedifact.d98a.CUSDEC.SegmentGroup35 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.Reference;
import org.milyn.edi.unedifact.d98a.common.DateTimePeriod;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.GoodsIdentityNumber;
import org.milyn.edi.unedifact.d98a.common.MonetaryAmount;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup35 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Reference reference;
private DateTimePeriod dateTimePeriod;
private List goodsIdentityNumber;
private MonetaryAmount monetaryAmount;
private SegmentGroup36 segmentGroup36;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(reference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
reference.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriod.write(nodeWriter, delimiters);
}
if(goodsIdentityNumber != null && !goodsIdentityNumber.isEmpty()) {
for(GoodsIdentityNumber goodsIdentityNumberInst : goodsIdentityNumber) {
nodeWriter.write("GIN");
nodeWriter.write(delimiters.getField());
goodsIdentityNumberInst.write(nodeWriter, delimiters);
}
}
if(monetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmount.write(nodeWriter, delimiters);
}
if(segmentGroup36 != null) {
segmentGroup36.write(nodeWriter, delimiters);
}
}
public Reference getReference() {
return reference;
}
public SegmentGroup35 setReference(Reference reference) {
this.reference = reference; return this;
}
public DateTimePeriod getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup35 setDateTimePeriod(DateTimePeriod dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getGoodsIdentityNumber() {
return goodsIdentityNumber;
}
public SegmentGroup35 setGoodsIdentityNumber(List goodsIdentityNumber) {
this.goodsIdentityNumber = goodsIdentityNumber; return this;
}
public MonetaryAmount getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup35 setMonetaryAmount(MonetaryAmount monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public SegmentGroup36 getSegmentGroup36() {
return segmentGroup36;
}
public SegmentGroup35 setSegmentGroup36(SegmentGroup36 segmentGroup36) {
this.segmentGroup36 = segmentGroup36; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy