org.milyn.edi.unedifact.d99b.IFTDGN.SegmentGroup10 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.IFTDGN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.NameAndAddress;
import org.milyn.edi.unedifact.d99b.common.Reference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup10 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private NameAndAddress nameAndAddress;
private SegmentGroup11 segmentGroup11;
private Reference reference;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(nameAndAddress != null) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddress.write(nodeWriter, delimiters);
}
if(segmentGroup11 != null) {
segmentGroup11.write(nodeWriter, delimiters);
}
if(reference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
reference.write(nodeWriter, delimiters);
}
}
public NameAndAddress getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup10 setNameAndAddress(NameAndAddress nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public SegmentGroup11 getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup10 setSegmentGroup11(SegmentGroup11 segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public Reference getReference() {
return reference;
}
public SegmentGroup10 setReference(Reference reference) {
this.reference = reference; return this;
}
}