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

org.virtuslab.edi.unedifact.d96a.common.PITPriceItemLine 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 java.math.BigDecimal;    
import org.milyn.javabean.decoders.DABigDecimalDecoder;    
import org.virtuslab.edi.unedifact.d96a.common.field.C292PriceChangeInformation;    
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 PITPriceItemLine implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private BigDecimal e1082LineItemNumber;
    private DABigDecimalDecoder e1082LineItemNumberEncoder;
    private String e1229ActionRequestNotificationCoded;
    private C292PriceChangeInformation c292PriceChangeInformation;
    private String e7011ArticleAvailabilityCoded;
    private String e5495SubLineIndicatorCoded;
    private BigDecimal e1222ConfigurationLevel;
    private DABigDecimalDecoder e1222ConfigurationLevelEncoder;
    private String e7083ConfigurationCoded;

    public PITPriceItemLine() {
        
        e1082LineItemNumberEncoder = new DABigDecimalDecoder();
        e1222ConfigurationLevelEncoder = new DABigDecimalDecoder();
    }

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

        List nodeTokens = new ArrayList();

        if(e1082LineItemNumber != null) {
            nodeWriter.write(delimiters.escape(e1082LineItemNumberEncoder.encode(e1082LineItemNumber, 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);
        }
        nodeWriter.write(delimiters.getField());
        if(c292PriceChangeInformation != null) {
            c292PriceChangeInformation.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(e7011ArticleAvailabilityCoded != null) {
            nodeWriter.write(delimiters.escape(e7011ArticleAvailabilityCoded.toString()));
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(e5495SubLineIndicatorCoded != null) {
            nodeWriter.write(delimiters.escape(e5495SubLineIndicatorCoded.toString()));
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(e1222ConfigurationLevel != null) {
            nodeWriter.write(delimiters.escape(e1222ConfigurationLevelEncoder.encode(e1222ConfigurationLevel, delimiters)));
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(e7083ConfigurationCoded != null) {
            nodeWriter.write(delimiters.escape(e7083ConfigurationCoded.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 BigDecimal getE1082LineItemNumber() {
        return e1082LineItemNumber;
    }

    public PITPriceItemLine setE1082LineItemNumber(BigDecimal e1082LineItemNumber) {
        this.e1082LineItemNumber = e1082LineItemNumber;  return this;
    }

    public String getE1229ActionRequestNotificationCoded() {
        return e1229ActionRequestNotificationCoded;
    }

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

    public C292PriceChangeInformation getC292PriceChangeInformation() {
        return c292PriceChangeInformation;
    }

    public PITPriceItemLine setC292PriceChangeInformation(C292PriceChangeInformation c292PriceChangeInformation) {
        this.c292PriceChangeInformation = c292PriceChangeInformation;  return this;
    }

    public String getE7011ArticleAvailabilityCoded() {
        return e7011ArticleAvailabilityCoded;
    }

    public PITPriceItemLine setE7011ArticleAvailabilityCoded(String e7011ArticleAvailabilityCoded) {
        this.e7011ArticleAvailabilityCoded = e7011ArticleAvailabilityCoded;  return this;
    }

    public String getE5495SubLineIndicatorCoded() {
        return e5495SubLineIndicatorCoded;
    }

    public PITPriceItemLine setE5495SubLineIndicatorCoded(String e5495SubLineIndicatorCoded) {
        this.e5495SubLineIndicatorCoded = e5495SubLineIndicatorCoded;  return this;
    }

    public BigDecimal getE1222ConfigurationLevel() {
        return e1222ConfigurationLevel;
    }

    public PITPriceItemLine setE1222ConfigurationLevel(BigDecimal e1222ConfigurationLevel) {
        this.e1222ConfigurationLevel = e1222ConfigurationLevel;  return this;
    }

    public String getE7083ConfigurationCoded() {
        return e7083ConfigurationCoded;
    }

    public PITPriceItemLine setE7083ConfigurationCoded(String e7083ConfigurationCoded) {
        this.e7083ConfigurationCoded = e7083ConfigurationCoded;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy