org.milyn.edi.unedifact.d94a.IFTSTA.SegmentGroup1 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d94a.IFTSTA;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d94a.common.CNIConsignmentInformation;
import java.util.List;
import org.milyn.edi.unedifact.d94a.common.LOCPlaceLocationIdentification;
import org.milyn.edi.unedifact.d94a.common.CNTControlTotal;
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 CNIConsignmentInformation cNIConsignmentInformation;
private List lOCPlaceLocationIdentification;
private List cNTControlTotal;
private List segmentGroup2;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(cNIConsignmentInformation != null) {
nodeWriter.write("CNI");
nodeWriter.write(delimiters.getField());
cNIConsignmentInformation.write(nodeWriter, delimiters);
}
if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(cNTControlTotal != null && !cNTControlTotal.isEmpty()) {
for(CNTControlTotal cNTControlTotalInst : cNTControlTotal) {
nodeWriter.write("CNT");
nodeWriter.write(delimiters.getField());
cNTControlTotalInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup2 != null && !segmentGroup2.isEmpty()) {
for(SegmentGroup2 segmentGroup2Inst : segmentGroup2) {
segmentGroup2Inst.write(nodeWriter, delimiters);
}
}
}
public CNIConsignmentInformation getCNIConsignmentInformation() {
return cNIConsignmentInformation;
}
public SegmentGroup1 setCNIConsignmentInformation(CNIConsignmentInformation cNIConsignmentInformation) {
this.cNIConsignmentInformation = cNIConsignmentInformation; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup1 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public List getCNTControlTotal() {
return cNTControlTotal;
}
public SegmentGroup1 setCNTControlTotal(List cNTControlTotal) {
this.cNTControlTotal = cNTControlTotal; return this;
}
public List getSegmentGroup2() {
return segmentGroup2;
}
public SegmentGroup1 setSegmentGroup2(List segmentGroup2) {
this.segmentGroup2 = segmentGroup2; return this;
}
}