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

org.milyn.edi.unedifact.d11b.BUSCRD.SegmentGroup20 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.d11b.BUSCRD;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d11b.common.PNAPartyIdentification;    
import java.util.List;    
import org.milyn.edi.unedifact.d11b.common.RELRelationship;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup20 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private PNAPartyIdentification pNAPartyIdentification;
    private List rELRelationship;

    public void write(Writer writer, Delimiters delimiters) throws IOException {
        
        Writer nodeWriter = writer;

        if(pNAPartyIdentification != null) {
            nodeWriter.write("PNA");
            nodeWriter.write(delimiters.getField());
            pNAPartyIdentification.write(nodeWriter, delimiters);
        }
        if(rELRelationship != null && !rELRelationship.isEmpty()) {
            for(RELRelationship rELRelationshipInst : rELRelationship) {
                nodeWriter.write("REL");
                nodeWriter.write(delimiters.getField());
                rELRelationshipInst.write(nodeWriter, delimiters);
            }
        }
    }

    public PNAPartyIdentification getPNAPartyIdentification() {
        return pNAPartyIdentification;
    }

    public SegmentGroup20 setPNAPartyIdentification(PNAPartyIdentification pNAPartyIdentification) {
        this.pNAPartyIdentification = pNAPartyIdentification;  return this;
    }

    public List getRELRelationship() {
        return rELRelationship;
    }

    public SegmentGroup20 setRELRelationship(List rELRelationship) {
        this.rELRelationship = rELRelationship;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy