All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.milyn.edi.unedifact.d05a.DIRDEF.SegmentGroup10 Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d05a.DIRDEF;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.FNTFootnote;    
import org.milyn.edi.unedifact.d05a.common.RELRelationship;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.GIRRelatedIdentificationNumbers;    
import org.milyn.edi.unedifact.d05a.common.ATTAttribute;    
import org.milyn.edi.unedifact.d05a.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 aTTAttribute;
    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(aTTAttribute != null && !aTTAttribute.isEmpty()) {
            for(ATTAttribute aTTAttributeInst : aTTAttribute) {
                nodeWriter.write("ATT");
                nodeWriter.write(delimiters.getField());
                aTTAttributeInst.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 getATTAttribute() {
        return aTTAttribute;
    }

    public SegmentGroup10 setATTAttribute(List aTTAttribute) {
        this.aTTAttribute = aTTAttribute;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup10 setFTXFreeText(List fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy