org.milyn.edi.unedifact.d99b.COSTOR.SegmentGroup8 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.COSTOR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.CNIConsignmentInformation;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.RFFReference;
import org.milyn.edi.unedifact.d99b.common.NADNameAndAddress;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private CNIConsignmentInformation cNIConsignmentInformation;
private List rFFReference;
private List nADNameAndAddress;
private List segmentGroup9;
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(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(nADNameAndAddress != null && !nADNameAndAddress.isEmpty()) {
for(NADNameAndAddress nADNameAndAddressInst : nADNameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nADNameAndAddressInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
segmentGroup9Inst.write(nodeWriter, delimiters);
}
}
}
public CNIConsignmentInformation getCNIConsignmentInformation() {
return cNIConsignmentInformation;
}
public SegmentGroup8 setCNIConsignmentInformation(CNIConsignmentInformation cNIConsignmentInformation) {
this.cNIConsignmentInformation = cNIConsignmentInformation; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup8 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup8 setNADNameAndAddress(List nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public List getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup8 setSegmentGroup9(List segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
}