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

org.milyn.edi.unedifact.d13a.PROTAP.SegmentGroup7 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d13a.PROTAP;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d13a.common.INDIndexDetails;    
import org.milyn.edi.unedifact.d13a.common.BIIStructureIdentification;    
import org.milyn.edi.unedifact.d13a.common.IMDItemDescription;    
import org.milyn.edi.unedifact.d13a.common.RCSRequirementsAndConditions;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup7 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private INDIndexDetails iNDIndexDetails;
    private BIIStructureIdentification bIIStructureIdentification;
    private IMDItemDescription iMDItemDescription;
    private RCSRequirementsAndConditions rCSRequirementsAndConditions;

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

        if(iNDIndexDetails != null) {
            nodeWriter.write("IND");
            nodeWriter.write(delimiters.getField());
            iNDIndexDetails.write(nodeWriter, delimiters);
        }
        if(bIIStructureIdentification != null) {
            nodeWriter.write("BII");
            nodeWriter.write(delimiters.getField());
            bIIStructureIdentification.write(nodeWriter, delimiters);
        }
        if(iMDItemDescription != null) {
            nodeWriter.write("IMD");
            nodeWriter.write(delimiters.getField());
            iMDItemDescription.write(nodeWriter, delimiters);
        }
        if(rCSRequirementsAndConditions != null) {
            nodeWriter.write("RCS");
            nodeWriter.write(delimiters.getField());
            rCSRequirementsAndConditions.write(nodeWriter, delimiters);
        }
    }

    public INDIndexDetails getINDIndexDetails() {
        return iNDIndexDetails;
    }

    public SegmentGroup7 setINDIndexDetails(INDIndexDetails iNDIndexDetails) {
        this.iNDIndexDetails = iNDIndexDetails;  return this;
    }

    public BIIStructureIdentification getBIIStructureIdentification() {
        return bIIStructureIdentification;
    }

    public SegmentGroup7 setBIIStructureIdentification(BIIStructureIdentification bIIStructureIdentification) {
        this.bIIStructureIdentification = bIIStructureIdentification;  return this;
    }

    public IMDItemDescription getIMDItemDescription() {
        return iMDItemDescription;
    }

    public SegmentGroup7 setIMDItemDescription(IMDItemDescription iMDItemDescription) {
        this.iMDItemDescription = iMDItemDescription;  return this;
    }

    public RCSRequirementsAndConditions getRCSRequirementsAndConditions() {
        return rCSRequirementsAndConditions;
    }

    public SegmentGroup7 setRCSRequirementsAndConditions(RCSRequirementsAndConditions rCSRequirementsAndConditions) {
        this.rCSRequirementsAndConditions = rCSRequirementsAndConditions;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy