org.milyn.edi.unedifact.d99a.CNTCND.SegmentGroup11 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99a.CNTCND;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99a.common.RELRelationship;
import java.util.List;
import org.milyn.edi.unedifact.d99a.common.NADNameAndAddress;
import org.milyn.edi.unedifact.d99a.common.RFFReference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup11 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private RELRelationship rELRelationship;
private List nADNameAndAddress;
private List rFFReference;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(rELRelationship != null) {
nodeWriter.write("REL");
nodeWriter.write(delimiters.getField());
rELRelationship.write(nodeWriter, delimiters);
}
if(nADNameAndAddress != null && !nADNameAndAddress.isEmpty()) {
for(NADNameAndAddress nADNameAndAddressInst : nADNameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nADNameAndAddressInst.write(nodeWriter, delimiters);
}
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
}
public RELRelationship getRELRelationship() {
return rELRelationship;
}
public SegmentGroup11 setRELRelationship(RELRelationship rELRelationship) {
this.rELRelationship = rELRelationship; return this;
}
public List getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup11 setNADNameAndAddress(List nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup11 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
}