org.milyn.edi.unedifact.d02a.HANMOV.SegmentGroup1 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.HANMOV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.TCCChargeRateCalculations;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.LOCPlaceLocationIdentification;
import org.milyn.edi.unedifact.d02a.common.FTXFreeText;
import org.milyn.edi.unedifact.d02a.common.CUXCurrencies;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup1 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private TCCChargeRateCalculations tCCChargeRateCalculations;
private List lOCPlaceLocationIdentification;
private List fTXFreeText;
private List cUXCurrencies;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(tCCChargeRateCalculations != null) {
nodeWriter.write("TCC");
nodeWriter.write(delimiters.getField());
tCCChargeRateCalculations.write(nodeWriter, delimiters);
}
if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(cUXCurrencies != null && !cUXCurrencies.isEmpty()) {
for(CUXCurrencies cUXCurrenciesInst : cUXCurrencies) {
nodeWriter.write("CUX");
nodeWriter.write(delimiters.getField());
cUXCurrenciesInst.write(nodeWriter, delimiters);
}
}
}
public TCCChargeRateCalculations getTCCChargeRateCalculations() {
return tCCChargeRateCalculations;
}
public SegmentGroup1 setTCCChargeRateCalculations(TCCChargeRateCalculations tCCChargeRateCalculations) {
this.tCCChargeRateCalculations = tCCChargeRateCalculations; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup1 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup1 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getCUXCurrencies() {
return cUXCurrencies;
}
public SegmentGroup1 setCUXCurrencies(List cUXCurrencies) {
this.cUXCurrencies = cUXCurrencies; return this;
}
}