org.milyn.edi.unedifact.d99b.PRODEX.SegmentGroup3 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.PRODEX;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.LINLineItem;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.GISGeneralIndicator;
import org.milyn.edi.unedifact.d99b.common.LOCPlaceLocationIdentification;
import org.milyn.edi.unedifact.d99b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.MEAMeasurements;
import org.milyn.edi.unedifact.d99b.common.QTYQuantity;
import org.milyn.edi.unedifact.d99b.common.TDTDetailsOfTransport;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup3 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private LINLineItem lINLineItem;
private List gISGeneralIndicator;
private List lOCPlaceLocationIdentification;
private DTMDateTimePeriod dTMDateTimePeriod;
private List mEAMeasurements;
private List qTYQuantity;
private List tDTDetailsOfTransport;
private List segmentGroup4;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(lINLineItem != null) {
nodeWriter.write("LIN");
nodeWriter.write(delimiters.getField());
lINLineItem.write(nodeWriter, delimiters);
}
if(gISGeneralIndicator != null && !gISGeneralIndicator.isEmpty()) {
for(GISGeneralIndicator gISGeneralIndicatorInst : gISGeneralIndicator) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
gISGeneralIndicatorInst.write(nodeWriter, delimiters);
}
}
if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriod.write(nodeWriter, delimiters);
}
if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurementsInst.write(nodeWriter, delimiters);
}
}
if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
for(QTYQuantity qTYQuantityInst : qTYQuantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
qTYQuantityInst.write(nodeWriter, delimiters);
}
}
if(tDTDetailsOfTransport != null && !tDTDetailsOfTransport.isEmpty()) {
for(TDTDetailsOfTransport tDTDetailsOfTransportInst : tDTDetailsOfTransport) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
tDTDetailsOfTransportInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
segmentGroup4Inst.write(nodeWriter, delimiters);
}
}
}
public LINLineItem getLINLineItem() {
return lINLineItem;
}
public SegmentGroup3 setLINLineItem(LINLineItem lINLineItem) {
this.lINLineItem = lINLineItem; return this;
}
public List getGISGeneralIndicator() {
return gISGeneralIndicator;
}
public SegmentGroup3 setGISGeneralIndicator(List gISGeneralIndicator) {
this.gISGeneralIndicator = gISGeneralIndicator; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup3 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public DTMDateTimePeriod getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup3 setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup3 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup3 setQTYQuantity(List qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public List getTDTDetailsOfTransport() {
return tDTDetailsOfTransport;
}
public SegmentGroup3 setTDTDetailsOfTransport(List tDTDetailsOfTransport) {
this.tDTDetailsOfTransport = tDTDetailsOfTransport; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public SegmentGroup3 setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
}