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

org.virtuslab.edi.unedifact.d96a.common.MEMMembershipDetails 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.C942MembershipCategory;    
import org.virtuslab.edi.unedifact.d96a.common.field.C944MembershipStatus;    
import org.virtuslab.edi.unedifact.d96a.common.field.C945MembershipLevel;    
import org.virtuslab.edi.unedifact.d96a.common.field.C203RateTariffClass;    
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 MEMMembershipDetails implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private String e7449MembershipQualifier;
    private C942MembershipCategory c942MembershipCategory;
    private C944MembershipStatus c944MembershipStatus;
    private C945MembershipLevel c945MembershipLevel;
    private C203RateTariffClass c203RateTariffClass;
    private String c960ReasonForChange;

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

        List nodeTokens = new ArrayList();

        if(e7449MembershipQualifier != null) {
            nodeWriter.write(delimiters.escape(e7449MembershipQualifier.toString()));
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c942MembershipCategory != null) {
            c942MembershipCategory.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c944MembershipStatus != null) {
            c944MembershipStatus.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c945MembershipLevel != null) {
            c945MembershipLevel.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c203RateTariffClass != null) {
            c203RateTariffClass.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c960ReasonForChange != null) {
            nodeWriter.write(delimiters.escape(c960ReasonForChange.toString()));
            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 getE7449MembershipQualifier() {
        return e7449MembershipQualifier;
    }

    public MEMMembershipDetails setE7449MembershipQualifier(String e7449MembershipQualifier) {
        this.e7449MembershipQualifier = e7449MembershipQualifier;  return this;
    }

    public C942MembershipCategory getC942MembershipCategory() {
        return c942MembershipCategory;
    }

    public MEMMembershipDetails setC942MembershipCategory(C942MembershipCategory c942MembershipCategory) {
        this.c942MembershipCategory = c942MembershipCategory;  return this;
    }

    public C944MembershipStatus getC944MembershipStatus() {
        return c944MembershipStatus;
    }

    public MEMMembershipDetails setC944MembershipStatus(C944MembershipStatus c944MembershipStatus) {
        this.c944MembershipStatus = c944MembershipStatus;  return this;
    }

    public C945MembershipLevel getC945MembershipLevel() {
        return c945MembershipLevel;
    }

    public MEMMembershipDetails setC945MembershipLevel(C945MembershipLevel c945MembershipLevel) {
        this.c945MembershipLevel = c945MembershipLevel;  return this;
    }

    public C203RateTariffClass getC203RateTariffClass() {
        return c203RateTariffClass;
    }

    public MEMMembershipDetails setC203RateTariffClass(C203RateTariffClass c203RateTariffClass) {
        this.c203RateTariffClass = c203RateTariffClass;  return this;
    }

    public String getC960ReasonForChange() {
        return c960ReasonForChange;
    }

    public MEMMembershipDetails setC960ReasonForChange(String c960ReasonForChange) {
        this.c960ReasonForChange = c960ReasonForChange;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy