org.milyn.edi.unedifact.d98a.common.TAXDutyTaxFeeDetails Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.common;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.field.C241DutyTaxFeeType;
import org.milyn.edi.unedifact.d98a.common.field.C533DutyTaxFeeAccountDetail;
import org.milyn.edi.unedifact.d98a.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 e5283DutyTaxFeeFunctionQualifier;
private C241DutyTaxFeeType c241DutyTaxFeeType;
private C533DutyTaxFeeAccountDetail c533DutyTaxFeeAccountDetail;
private String e5286DutyTaxFeeAssessmentBasis;
private C243DutyTaxFeeDetail c243DutyTaxFeeDetail;
private String e5305DutyTaxFeeCategoryCoded;
private String e3446PartyTaxIdentificationNumber;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e5283DutyTaxFeeFunctionQualifier != null) {
nodeWriter.write(delimiters.escape(e5283DutyTaxFeeFunctionQualifier.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(e5286DutyTaxFeeAssessmentBasis != null) {
nodeWriter.write(delimiters.escape(e5286DutyTaxFeeAssessmentBasis.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(e5305DutyTaxFeeCategoryCoded != null) {
nodeWriter.write(delimiters.escape(e5305DutyTaxFeeCategoryCoded.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e3446PartyTaxIdentificationNumber != null) {
nodeWriter.write(delimiters.escape(e3446PartyTaxIdentificationNumber.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 getE5283DutyTaxFeeFunctionQualifier() {
return e5283DutyTaxFeeFunctionQualifier;
}
public TAXDutyTaxFeeDetails setE5283DutyTaxFeeFunctionQualifier(String e5283DutyTaxFeeFunctionQualifier) {
this.e5283DutyTaxFeeFunctionQualifier = e5283DutyTaxFeeFunctionQualifier; 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 getE5286DutyTaxFeeAssessmentBasis() {
return e5286DutyTaxFeeAssessmentBasis;
}
public TAXDutyTaxFeeDetails setE5286DutyTaxFeeAssessmentBasis(String e5286DutyTaxFeeAssessmentBasis) {
this.e5286DutyTaxFeeAssessmentBasis = e5286DutyTaxFeeAssessmentBasis; return this;
}
public C243DutyTaxFeeDetail getC243DutyTaxFeeDetail() {
return c243DutyTaxFeeDetail;
}
public TAXDutyTaxFeeDetails setC243DutyTaxFeeDetail(C243DutyTaxFeeDetail c243DutyTaxFeeDetail) {
this.c243DutyTaxFeeDetail = c243DutyTaxFeeDetail; return this;
}
public String getE5305DutyTaxFeeCategoryCoded() {
return e5305DutyTaxFeeCategoryCoded;
}
public TAXDutyTaxFeeDetails setE5305DutyTaxFeeCategoryCoded(String e5305DutyTaxFeeCategoryCoded) {
this.e5305DutyTaxFeeCategoryCoded = e5305DutyTaxFeeCategoryCoded; return this;
}
public String getE3446PartyTaxIdentificationNumber() {
return e3446PartyTaxIdentificationNumber;
}
public TAXDutyTaxFeeDetails setE3446PartyTaxIdentificationNumber(String e3446PartyTaxIdentificationNumber) {
this.e3446PartyTaxIdentificationNumber = e3446PartyTaxIdentificationNumber; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy