org.milyn.edi.unedifact.d99a.DMRDEF.SegmentGroup10 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99a.DMRDEF;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99a.common.FNTFootnote;
import org.milyn.edi.unedifact.d99a.common.RELRelationship;
import java.util.List;
import org.milyn.edi.unedifact.d99a.common.GIRRelatedIdentificationNumbers;
import org.milyn.edi.unedifact.d99a.common.FTXFreeText;
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 FNTFootnote fNTFootnote;
private RELRelationship rELRelationship;
private List gIRRelatedIdentificationNumbers;
private List fTXFreeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(fNTFootnote != null) {
nodeWriter.write("FNT");
nodeWriter.write(delimiters.getField());
fNTFootnote.write(nodeWriter, delimiters);
}
if(rELRelationship != null) {
nodeWriter.write("REL");
nodeWriter.write(delimiters.getField());
rELRelationship.write(nodeWriter, delimiters);
}
if(gIRRelatedIdentificationNumbers != null && !gIRRelatedIdentificationNumbers.isEmpty()) {
for(GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbersInst : gIRRelatedIdentificationNumbers) {
nodeWriter.write("GIR");
nodeWriter.write(delimiters.getField());
gIRRelatedIdentificationNumbersInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
}
public FNTFootnote getFNTFootnote() {
return fNTFootnote;
}
public SegmentGroup10 setFNTFootnote(FNTFootnote fNTFootnote) {
this.fNTFootnote = fNTFootnote; return this;
}
public RELRelationship getRELRelationship() {
return rELRelationship;
}
public SegmentGroup10 setRELRelationship(RELRelationship rELRelationship) {
this.rELRelationship = rELRelationship; return this;
}
public List getGIRRelatedIdentificationNumbers() {
return gIRRelatedIdentificationNumbers;
}
public SegmentGroup10 setGIRRelatedIdentificationNumbers(List gIRRelatedIdentificationNumbers) {
this.gIRRelatedIdentificationNumbers = gIRRelatedIdentificationNumbers; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup10 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}