org.milyn.edi.unedifact.d98a.common.GIRRelatedIdentificationNumbers 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.C2061IdentificationNumber;
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 GIRRelatedIdentificationNumbers implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private String e7297SetIdentificationQualifier;
private C2061IdentificationNumber c2061IdentificationNumber;
private C2061IdentificationNumber c2062IdentificationNumber;
private C2061IdentificationNumber c2063IdentificationNumber;
private C2061IdentificationNumber c2064IdentificationNumber;
private C2061IdentificationNumber c2065IdentificationNumber;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e7297SetIdentificationQualifier != null) {
nodeWriter.write(delimiters.escape(e7297SetIdentificationQualifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c2061IdentificationNumber != null) {
c2061IdentificationNumber.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c2062IdentificationNumber != null) {
c2062IdentificationNumber.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c2063IdentificationNumber != null) {
c2063IdentificationNumber.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c2064IdentificationNumber != null) {
c2064IdentificationNumber.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c2065IdentificationNumber != null) {
c2065IdentificationNumber.write(nodeWriter, delimiters);
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 getE7297SetIdentificationQualifier() {
return e7297SetIdentificationQualifier;
}
public GIRRelatedIdentificationNumbers setE7297SetIdentificationQualifier(String e7297SetIdentificationQualifier) {
this.e7297SetIdentificationQualifier = e7297SetIdentificationQualifier; return this;
}
public C2061IdentificationNumber getC2061IdentificationNumber() {
return c2061IdentificationNumber;
}
public GIRRelatedIdentificationNumbers setC2061IdentificationNumber(C2061IdentificationNumber c2061IdentificationNumber) {
this.c2061IdentificationNumber = c2061IdentificationNumber; return this;
}
public C2061IdentificationNumber getC2062IdentificationNumber() {
return c2062IdentificationNumber;
}
public GIRRelatedIdentificationNumbers setC2062IdentificationNumber(C2061IdentificationNumber c2062IdentificationNumber) {
this.c2062IdentificationNumber = c2062IdentificationNumber; return this;
}
public C2061IdentificationNumber getC2063IdentificationNumber() {
return c2063IdentificationNumber;
}
public GIRRelatedIdentificationNumbers setC2063IdentificationNumber(C2061IdentificationNumber c2063IdentificationNumber) {
this.c2063IdentificationNumber = c2063IdentificationNumber; return this;
}
public C2061IdentificationNumber getC2064IdentificationNumber() {
return c2064IdentificationNumber;
}
public GIRRelatedIdentificationNumbers setC2064IdentificationNumber(C2061IdentificationNumber c2064IdentificationNumber) {
this.c2064IdentificationNumber = c2064IdentificationNumber; return this;
}
public C2061IdentificationNumber getC2065IdentificationNumber() {
return c2065IdentificationNumber;
}
public GIRRelatedIdentificationNumbers setC2065IdentificationNumber(C2061IdentificationNumber c2065IdentificationNumber) {
this.c2065IdentificationNumber = c2065IdentificationNumber; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy