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

org.milyn.edi.unedifact.d05a.common.TAXDutyTaxFeeDetails Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d05a.common;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.field.C241DutyTaxFeeType;    
import org.milyn.edi.unedifact.d05a.common.field.C533DutyTaxFeeAccountDetail;    
import org.milyn.edi.unedifact.d05a.common.field.C243DutyTaxFeeDetail;    
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 TAXDutyTaxFeeDetails implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private String e5283DutyOrTaxOrFeeFunctionCodeQualifier;
    private C241DutyTaxFeeType c241DutyTaxFeeType;
    private C533DutyTaxFeeAccountDetail c533DutyTaxFeeAccountDetail;
    private String e5286DutyOrTaxOrFeeAssessmentBasisQuantity;
    private C243DutyTaxFeeDetail c243DutyTaxFeeDetail;
    private String e5305DutyOrTaxOrFeeCategoryCode;
    private String e3446PartyTaxIdentifier;
    private String e1227CalculationSequenceCode;

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

        List nodeTokens = new ArrayList();

        if(e5283DutyOrTaxOrFeeFunctionCodeQualifier != null) {
            nodeWriter.write(delimiters.escape(e5283DutyOrTaxOrFeeFunctionCodeQualifier.toString()));
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c241DutyTaxFeeType != null) {
            c241DutyTaxFeeType.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c533DutyTaxFeeAccountDetail != null) {
            c533DutyTaxFeeAccountDetail.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(e5286DutyOrTaxOrFeeAssessmentBasisQuantity != null) {
            nodeWriter.write(delimiters.escape(e5286DutyOrTaxOrFeeAssessmentBasisQuantity.toString()));
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c243DutyTaxFeeDetail != null) {
            c243DutyTaxFeeDetail.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(e5305DutyOrTaxOrFeeCategoryCode != null) {
            nodeWriter.write(delimiters.escape(e5305DutyOrTaxOrFeeCategoryCode.toString()));
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(e3446PartyTaxIdentifier != null) {
            nodeWriter.write(delimiters.escape(e3446PartyTaxIdentifier.toString()));
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(e1227CalculationSequenceCode != null) {
            nodeWriter.write(delimiters.escape(e1227CalculationSequenceCode.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 getE5283DutyOrTaxOrFeeFunctionCodeQualifier() {
        return e5283DutyOrTaxOrFeeFunctionCodeQualifier;
    }

    public TAXDutyTaxFeeDetails setE5283DutyOrTaxOrFeeFunctionCodeQualifier(String e5283DutyOrTaxOrFeeFunctionCodeQualifier) {
        this.e5283DutyOrTaxOrFeeFunctionCodeQualifier = e5283DutyOrTaxOrFeeFunctionCodeQualifier;  return this;
    }

    public C241DutyTaxFeeType getC241DutyTaxFeeType() {
        return c241DutyTaxFeeType;
    }

    public TAXDutyTaxFeeDetails setC241DutyTaxFeeType(C241DutyTaxFeeType c241DutyTaxFeeType) {
        this.c241DutyTaxFeeType = c241DutyTaxFeeType;  return this;
    }

    public C533DutyTaxFeeAccountDetail getC533DutyTaxFeeAccountDetail() {
        return c533DutyTaxFeeAccountDetail;
    }

    public TAXDutyTaxFeeDetails setC533DutyTaxFeeAccountDetail(C533DutyTaxFeeAccountDetail c533DutyTaxFeeAccountDetail) {
        this.c533DutyTaxFeeAccountDetail = c533DutyTaxFeeAccountDetail;  return this;
    }

    public String getE5286DutyOrTaxOrFeeAssessmentBasisQuantity() {
        return e5286DutyOrTaxOrFeeAssessmentBasisQuantity;
    }

    public TAXDutyTaxFeeDetails setE5286DutyOrTaxOrFeeAssessmentBasisQuantity(String e5286DutyOrTaxOrFeeAssessmentBasisQuantity) {
        this.e5286DutyOrTaxOrFeeAssessmentBasisQuantity = e5286DutyOrTaxOrFeeAssessmentBasisQuantity;  return this;
    }

    public C243DutyTaxFeeDetail getC243DutyTaxFeeDetail() {
        return c243DutyTaxFeeDetail;
    }

    public TAXDutyTaxFeeDetails setC243DutyTaxFeeDetail(C243DutyTaxFeeDetail c243DutyTaxFeeDetail) {
        this.c243DutyTaxFeeDetail = c243DutyTaxFeeDetail;  return this;
    }

    public String getE5305DutyOrTaxOrFeeCategoryCode() {
        return e5305DutyOrTaxOrFeeCategoryCode;
    }

    public TAXDutyTaxFeeDetails setE5305DutyOrTaxOrFeeCategoryCode(String e5305DutyOrTaxOrFeeCategoryCode) {
        this.e5305DutyOrTaxOrFeeCategoryCode = e5305DutyOrTaxOrFeeCategoryCode;  return this;
    }

    public String getE3446PartyTaxIdentifier() {
        return e3446PartyTaxIdentifier;
    }

    public TAXDutyTaxFeeDetails setE3446PartyTaxIdentifier(String e3446PartyTaxIdentifier) {
        this.e3446PartyTaxIdentifier = e3446PartyTaxIdentifier;  return this;
    }

    public String getE1227CalculationSequenceCode() {
        return e1227CalculationSequenceCode;
    }

    public TAXDutyTaxFeeDetails setE1227CalculationSequenceCode(String e1227CalculationSequenceCode) {
        this.e1227CalculationSequenceCode = e1227CalculationSequenceCode;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy