org.virtuslab.edi.unedifact.d96a.common.FTXFreeText 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.C107TextReference;
import org.virtuslab.edi.unedifact.d96a.common.field.C108TextLiteral;
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 FTXFreeText implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private String e4451TextSubjectQualifier;
private String e4453TextFunctionCoded;
private C107TextReference c107TextReference;
private C108TextLiteral c108TextLiteral;
private String e3453LanguageCoded;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e4451TextSubjectQualifier != null) {
nodeWriter.write(delimiters.escape(e4451TextSubjectQualifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e4453TextFunctionCoded != null) {
nodeWriter.write(delimiters.escape(e4453TextFunctionCoded.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c107TextReference != null) {
c107TextReference.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c108TextLiteral != null) {
c108TextLiteral.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e3453LanguageCoded != null) {
nodeWriter.write(delimiters.escape(e3453LanguageCoded.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 getE4451TextSubjectQualifier() {
return e4451TextSubjectQualifier;
}
public FTXFreeText setE4451TextSubjectQualifier(String e4451TextSubjectQualifier) {
this.e4451TextSubjectQualifier = e4451TextSubjectQualifier; return this;
}
public String getE4453TextFunctionCoded() {
return e4453TextFunctionCoded;
}
public FTXFreeText setE4453TextFunctionCoded(String e4453TextFunctionCoded) {
this.e4453TextFunctionCoded = e4453TextFunctionCoded; return this;
}
public C107TextReference getC107TextReference() {
return c107TextReference;
}
public FTXFreeText setC107TextReference(C107TextReference c107TextReference) {
this.c107TextReference = c107TextReference; return this;
}
public C108TextLiteral getC108TextLiteral() {
return c108TextLiteral;
}
public FTXFreeText setC108TextLiteral(C108TextLiteral c108TextLiteral) {
this.c108TextLiteral = c108TextLiteral; return this;
}
public String getE3453LanguageCoded() {
return e3453LanguageCoded;
}
public FTXFreeText setE3453LanguageCoded(String e3453LanguageCoded) {
this.e3453LanguageCoded = e3453LanguageCoded; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy