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

org.milyn.edi.unedifact.d97a.common.RCSRequirementsAndConditions Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d97a.common.field.C550RequirementConditionIdentification;    
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 RCSRequirementsAndConditions implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private String e7293SectorSubjectIdentificationQualifier;
    private C550RequirementConditionIdentification c550RequirementConditionIdentification;
    private String e1229ActionRequestNotificationCoded;

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

        List nodeTokens = new ArrayList();

        if(e7293SectorSubjectIdentificationQualifier != null) {
            nodeWriter.write(delimiters.escape(e7293SectorSubjectIdentificationQualifier.toString()));
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c550RequirementConditionIdentification != null) {
            c550RequirementConditionIdentification.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(e1229ActionRequestNotificationCoded != null) {
            nodeWriter.write(delimiters.escape(e1229ActionRequestNotificationCoded.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 getE7293SectorSubjectIdentificationQualifier() {
        return e7293SectorSubjectIdentificationQualifier;
    }

    public RCSRequirementsAndConditions setE7293SectorSubjectIdentificationQualifier(String e7293SectorSubjectIdentificationQualifier) {
        this.e7293SectorSubjectIdentificationQualifier = e7293SectorSubjectIdentificationQualifier;  return this;
    }

    public C550RequirementConditionIdentification getC550RequirementConditionIdentification() {
        return c550RequirementConditionIdentification;
    }

    public RCSRequirementsAndConditions setC550RequirementConditionIdentification(C550RequirementConditionIdentification c550RequirementConditionIdentification) {
        this.c550RequirementConditionIdentification = c550RequirementConditionIdentification;  return this;
    }

    public String getE1229ActionRequestNotificationCoded() {
        return e1229ActionRequestNotificationCoded;
    }

    public RCSRequirementsAndConditions setE1229ActionRequestNotificationCoded(String e1229ActionRequestNotificationCoded) {
        this.e1229ActionRequestNotificationCoded = e1229ActionRequestNotificationCoded;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy