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

org.milyn.edi.unedifact.d05a.MEDRUC.SegmentGroup6 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.MEDRUC;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.PNAPartyIdentification;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.ADRAddress;    
import org.milyn.edi.unedifact.d05a.common.STSStatus;    
import org.milyn.edi.unedifact.d05a.common.RCSRequirementsAndConditions;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup6 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private PNAPartyIdentification pNAPartyIdentification;
    private List aDRAddress;
    private STSStatus sTSStatus;
    private List rCSRequirementsAndConditions;

    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(aDRAddress != null && !aDRAddress.isEmpty()) {
            for(ADRAddress aDRAddressInst : aDRAddress) {
                nodeWriter.write("ADR");
                nodeWriter.write(delimiters.getField());
                aDRAddressInst.write(nodeWriter, delimiters);
            }
        }
        if(sTSStatus != null) {
            nodeWriter.write("STS");
            nodeWriter.write(delimiters.getField());
            sTSStatus.write(nodeWriter, delimiters);
        }
        if(rCSRequirementsAndConditions != null && !rCSRequirementsAndConditions.isEmpty()) {
            for(RCSRequirementsAndConditions rCSRequirementsAndConditionsInst : rCSRequirementsAndConditions) {
                nodeWriter.write("RCS");
                nodeWriter.write(delimiters.getField());
                rCSRequirementsAndConditionsInst.write(nodeWriter, delimiters);
            }
        }
    }

    public PNAPartyIdentification getPNAPartyIdentification() {
        return pNAPartyIdentification;
    }

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

    public List getADRAddress() {
        return aDRAddress;
    }

    public SegmentGroup6 setADRAddress(List aDRAddress) {
        this.aDRAddress = aDRAddress;  return this;
    }

    public STSStatus getSTSStatus() {
        return sTSStatus;
    }

    public SegmentGroup6 setSTSStatus(STSStatus sTSStatus) {
        this.sTSStatus = sTSStatus;  return this;
    }

    public List getRCSRequirementsAndConditions() {
        return rCSRequirementsAndConditions;
    }

    public SegmentGroup6 setRCSRequirementsAndConditions(List rCSRequirementsAndConditions) {
        this.rCSRequirementsAndConditions = rCSRequirementsAndConditions;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy