org.milyn.edi.unedifact.d97a.TANSTA.SegmentGroup3 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d97a.TANSTA;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d97a.common.LOCPlaceLocationIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d97a.common.MEAMeasurements;
import org.milyn.edi.unedifact.d97a.common.DIMDimensions;
import org.milyn.edi.unedifact.d97a.common.FTXFreeText;
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 LOCPlaceLocationIdentification lOCPlaceLocationIdentification;
private List mEAMeasurements;
private List dIMDimensions;
private FTXFreeText fTXFreeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(lOCPlaceLocationIdentification != null) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentification.write(nodeWriter, delimiters);
}
if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurementsInst.write(nodeWriter, delimiters);
}
}
if(dIMDimensions != null && !dIMDimensions.isEmpty()) {
for(DIMDimensions dIMDimensionsInst : dIMDimensions) {
nodeWriter.write("DIM");
nodeWriter.write(delimiters.getField());
dIMDimensionsInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeText.write(nodeWriter, delimiters);
}
}
public LOCPlaceLocationIdentification getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup3 setLOCPlaceLocationIdentification(LOCPlaceLocationIdentification lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup3 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getDIMDimensions() {
return dIMDimensions;
}
public SegmentGroup3 setDIMDimensions(List dIMDimensions) {
this.dIMDimensions = dIMDimensions; return this;
}
public FTXFreeText getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup3 setFTXFreeText(FTXFreeText fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}