org.milyn.edi.unedifact.d99a.DIRDEB.SegmentGroup20 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99a.DIRDEB;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99a.common.DLIDocumentLineIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d99a.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d99a.common.PIAAdditionalProductId;
import org.milyn.edi.unedifact.d99a.common.DTMDateTimePeriod;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup20 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DLIDocumentLineIdentification dLIDocumentLineIdentification;
private List mOAMonetaryAmount;
private List pIAAdditionalProductId;
private List dTMDateTimePeriod;
private List segmentGroup21;
private List segmentGroup22;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(dLIDocumentLineIdentification != null) {
nodeWriter.write("DLI");
nodeWriter.write(delimiters.getField());
dLIDocumentLineIdentification.write(nodeWriter, delimiters);
}
if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(pIAAdditionalProductId != null && !pIAAdditionalProductId.isEmpty()) {
for(PIAAdditionalProductId pIAAdditionalProductIdInst : pIAAdditionalProductId) {
nodeWriter.write("PIA");
nodeWriter.write(delimiters.getField());
pIAAdditionalProductIdInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup21 != null && !segmentGroup21.isEmpty()) {
for(SegmentGroup21 segmentGroup21Inst : segmentGroup21) {
segmentGroup21Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
segmentGroup22Inst.write(nodeWriter, delimiters);
}
}
}
public DLIDocumentLineIdentification getDLIDocumentLineIdentification() {
return dLIDocumentLineIdentification;
}
public SegmentGroup20 setDLIDocumentLineIdentification(DLIDocumentLineIdentification dLIDocumentLineIdentification) {
this.dLIDocumentLineIdentification = dLIDocumentLineIdentification; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup20 setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getPIAAdditionalProductId() {
return pIAAdditionalProductId;
}
public SegmentGroup20 setPIAAdditionalProductId(List pIAAdditionalProductId) {
this.pIAAdditionalProductId = pIAAdditionalProductId; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup20 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getSegmentGroup21() {
return segmentGroup21;
}
public SegmentGroup20 setSegmentGroup21(List segmentGroup21) {
this.segmentGroup21 = segmentGroup21; return this;
}
public List getSegmentGroup22() {
return segmentGroup22;
}
public SegmentGroup20 setSegmentGroup22(List segmentGroup22) {
this.segmentGroup22 = segmentGroup22; return this;
}
}