org.virtuslab.edi.unedifact.d99a.IFTDGN.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.virtuslab.edi.unedifact.d99a.IFTDGN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.virtuslab.edi.unedifact.d99a.common.NADNameAndAddress;
import org.virtuslab.edi.unedifact.d99a.common.RFFReference;
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 NADNameAndAddress nADNameAndAddress;
private SegmentGroup9 segmentGroup9;
private RFFReference rFFReference;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(nADNameAndAddress != null) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nADNameAndAddress.write(nodeWriter, delimiters);
}
if(segmentGroup9 != null) {
segmentGroup9.write(nodeWriter, delimiters);
}
if(rFFReference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReference.write(nodeWriter, delimiters);
}
}
public NADNameAndAddress getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup8 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public SegmentGroup9 getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup8 setSegmentGroup9(SegmentGroup9 segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
public RFFReference getRFFReference() {
return rFFReference;
}
public SegmentGroup8 setRFFReference(RFFReference rFFReference) {
this.rFFReference = rFFReference; return this;
}
}