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

org.virtuslab.edi.unedifact.d96a.common.PSDPhysicalSampleDescription Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d96a.common.field.C526FrequencyDetails;    
import org.virtuslab.edi.unedifact.d96a.common.field.C5141SampleLocationDetails;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    
import java.io.StringWriter;    
import java.util.List;    
import java.util.ArrayList;    
import org.milyn.edisax.util.EDIUtils;    
import org.milyn.edisax.model.internal.DelimiterType;    

public class PSDPhysicalSampleDescription implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private String e4407SampleProcessStatusCoded;
    private String e7039SampleSelectionMethodCoded;
    private C526FrequencyDetails c526FrequencyDetails;
    private String e7045SampleDescriptionCoded;
    private String e7047SampleDirectionCoded;
    private C5141SampleLocationDetails c5141SampleLocationDetails;
    private C5141SampleLocationDetails c5142SampleLocationDetails;
    private C5141SampleLocationDetails c5143SampleLocationDetails;

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

        List nodeTokens = new ArrayList();

        if(e4407SampleProcessStatusCoded != null) {
            nodeWriter.write(delimiters.escape(e4407SampleProcessStatusCoded.toString()));
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(e7039SampleSelectionMethodCoded != null) {
            nodeWriter.write(delimiters.escape(e7039SampleSelectionMethodCoded.toString()));
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c526FrequencyDetails != null) {
            c526FrequencyDetails.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(e7045SampleDescriptionCoded != null) {
            nodeWriter.write(delimiters.escape(e7045SampleDescriptionCoded.toString()));
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(e7047SampleDirectionCoded != null) {
            nodeWriter.write(delimiters.escape(e7047SampleDirectionCoded.toString()));
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c5141SampleLocationDetails != null) {
            c5141SampleLocationDetails.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c5142SampleLocationDetails != null) {
            c5142SampleLocationDetails.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c5143SampleLocationDetails != null) {
            c5143SampleLocationDetails.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeTokens.add(nodeWriter.toString());
        writer.write(EDIUtils.concatAndTruncate(nodeTokens, DelimiterType.FIELD, delimiters));
        writer.write(delimiters.getSegmentDelimiter());
        writer.flush();
    }

    public String getE4407SampleProcessStatusCoded() {
        return e4407SampleProcessStatusCoded;
    }

    public PSDPhysicalSampleDescription setE4407SampleProcessStatusCoded(String e4407SampleProcessStatusCoded) {
        this.e4407SampleProcessStatusCoded = e4407SampleProcessStatusCoded;  return this;
    }

    public String getE7039SampleSelectionMethodCoded() {
        return e7039SampleSelectionMethodCoded;
    }

    public PSDPhysicalSampleDescription setE7039SampleSelectionMethodCoded(String e7039SampleSelectionMethodCoded) {
        this.e7039SampleSelectionMethodCoded = e7039SampleSelectionMethodCoded;  return this;
    }

    public C526FrequencyDetails getC526FrequencyDetails() {
        return c526FrequencyDetails;
    }

    public PSDPhysicalSampleDescription setC526FrequencyDetails(C526FrequencyDetails c526FrequencyDetails) {
        this.c526FrequencyDetails = c526FrequencyDetails;  return this;
    }

    public String getE7045SampleDescriptionCoded() {
        return e7045SampleDescriptionCoded;
    }

    public PSDPhysicalSampleDescription setE7045SampleDescriptionCoded(String e7045SampleDescriptionCoded) {
        this.e7045SampleDescriptionCoded = e7045SampleDescriptionCoded;  return this;
    }

    public String getE7047SampleDirectionCoded() {
        return e7047SampleDirectionCoded;
    }

    public PSDPhysicalSampleDescription setE7047SampleDirectionCoded(String e7047SampleDirectionCoded) {
        this.e7047SampleDirectionCoded = e7047SampleDirectionCoded;  return this;
    }

    public C5141SampleLocationDetails getC5141SampleLocationDetails() {
        return c5141SampleLocationDetails;
    }

    public PSDPhysicalSampleDescription setC5141SampleLocationDetails(C5141SampleLocationDetails c5141SampleLocationDetails) {
        this.c5141SampleLocationDetails = c5141SampleLocationDetails;  return this;
    }

    public C5141SampleLocationDetails getC5142SampleLocationDetails() {
        return c5142SampleLocationDetails;
    }

    public PSDPhysicalSampleDescription setC5142SampleLocationDetails(C5141SampleLocationDetails c5142SampleLocationDetails) {
        this.c5142SampleLocationDetails = c5142SampleLocationDetails;  return this;
    }

    public C5141SampleLocationDetails getC5143SampleLocationDetails() {
        return c5143SampleLocationDetails;
    }

    public PSDPhysicalSampleDescription setC5143SampleLocationDetails(C5141SampleLocationDetails c5143SampleLocationDetails) {
        this.c5143SampleLocationDetails = c5143SampleLocationDetails;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy