org.milyn.edi.unedifact.d15a.common.NADNameAndAddress Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d15a.common;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d15a.common.field.C082PartyIdentificationDetails;
import org.milyn.edi.unedifact.d15a.common.field.C058NameAndAddress;
import org.milyn.edi.unedifact.d15a.common.field.C080PartyName;
import org.milyn.edi.unedifact.d15a.common.field.C059Street;
import org.milyn.edi.unedifact.d15a.common.field.C819CountrySubdivisionDetails;
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 NADNameAndAddress implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private String e3035PartyFunctionCodeQualifier;
private C082PartyIdentificationDetails c082PartyIdentificationDetails;
private C058NameAndAddress c058NameAndAddress;
private C080PartyName c080PartyName;
private C059Street c059Street;
private String e3164CityName;
private C819CountrySubdivisionDetails c819CountrySubdivisionDetails;
private String e3251PostalIdentificationCode;
private String e3207CountryIdentifier;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e3035PartyFunctionCodeQualifier != null) {
nodeWriter.write(delimiters.escape(e3035PartyFunctionCodeQualifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c082PartyIdentificationDetails != null) {
c082PartyIdentificationDetails.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c058NameAndAddress != null) {
c058NameAndAddress.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c080PartyName != null) {
c080PartyName.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c059Street != null) {
c059Street.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e3164CityName != null) {
nodeWriter.write(delimiters.escape(e3164CityName.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c819CountrySubdivisionDetails != null) {
c819CountrySubdivisionDetails.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e3251PostalIdentificationCode != null) {
nodeWriter.write(delimiters.escape(e3251PostalIdentificationCode.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e3207CountryIdentifier != null) {
nodeWriter.write(delimiters.escape(e3207CountryIdentifier.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 getE3035PartyFunctionCodeQualifier() {
return e3035PartyFunctionCodeQualifier;
}
public NADNameAndAddress setE3035PartyFunctionCodeQualifier(String e3035PartyFunctionCodeQualifier) {
this.e3035PartyFunctionCodeQualifier = e3035PartyFunctionCodeQualifier; return this;
}
public C082PartyIdentificationDetails getC082PartyIdentificationDetails() {
return c082PartyIdentificationDetails;
}
public NADNameAndAddress setC082PartyIdentificationDetails(C082PartyIdentificationDetails c082PartyIdentificationDetails) {
this.c082PartyIdentificationDetails = c082PartyIdentificationDetails; return this;
}
public C058NameAndAddress getC058NameAndAddress() {
return c058NameAndAddress;
}
public NADNameAndAddress setC058NameAndAddress(C058NameAndAddress c058NameAndAddress) {
this.c058NameAndAddress = c058NameAndAddress; return this;
}
public C080PartyName getC080PartyName() {
return c080PartyName;
}
public NADNameAndAddress setC080PartyName(C080PartyName c080PartyName) {
this.c080PartyName = c080PartyName; return this;
}
public C059Street getC059Street() {
return c059Street;
}
public NADNameAndAddress setC059Street(C059Street c059Street) {
this.c059Street = c059Street; return this;
}
public String getE3164CityName() {
return e3164CityName;
}
public NADNameAndAddress setE3164CityName(String e3164CityName) {
this.e3164CityName = e3164CityName; return this;
}
public C819CountrySubdivisionDetails getC819CountrySubdivisionDetails() {
return c819CountrySubdivisionDetails;
}
public NADNameAndAddress setC819CountrySubdivisionDetails(C819CountrySubdivisionDetails c819CountrySubdivisionDetails) {
this.c819CountrySubdivisionDetails = c819CountrySubdivisionDetails; return this;
}
public String getE3251PostalIdentificationCode() {
return e3251PostalIdentificationCode;
}
public NADNameAndAddress setE3251PostalIdentificationCode(String e3251PostalIdentificationCode) {
this.e3251PostalIdentificationCode = e3251PostalIdentificationCode; return this;
}
public String getE3207CountryIdentifier() {
return e3207CountryIdentifier;
}
public NADNameAndAddress setE3207CountryIdentifier(String e3207CountryIdentifier) {
this.e3207CountryIdentifier = e3207CountryIdentifier; return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy