org.milyn.edi.unedifact.d02a.INSRPT.SegmentGroup9 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.INSRPT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.GoodsIdentityNumber;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.Reference;
import org.milyn.edi.unedifact.d02a.common.Status;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup9 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GoodsIdentityNumber goodsIdentityNumber;
private List reference;
private List status;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(goodsIdentityNumber != null) {
nodeWriter.write("GIN");
nodeWriter.write(delimiters.getField());
goodsIdentityNumber.write(nodeWriter, delimiters);
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(status != null && !status.isEmpty()) {
for(Status statusInst : status) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
statusInst.write(nodeWriter, delimiters);
}
}
}
public GoodsIdentityNumber getGoodsIdentityNumber() {
return goodsIdentityNumber;
}
public SegmentGroup9 setGoodsIdentityNumber(GoodsIdentityNumber goodsIdentityNumber) {
this.goodsIdentityNumber = goodsIdentityNumber; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup9 setReference(List reference) {
this.reference = reference; return this;
}
public List getStatus() {
return status;
}
public SegmentGroup9 setStatus(List status) {
this.status = status; return this;
}
}