org.milyn.edi.unedifact.d98a.common.NADNameAndAddress 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.C082PartyIdentificationDetails;
import org.milyn.edi.unedifact.d98a.common.field.C058NameAndAddress;
import org.milyn.edi.unedifact.d98a.common.field.C080PartyName;
import org.milyn.edi.unedifact.d98a.common.field.C059Street;
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 e3035PartyQualifier;
private C082PartyIdentificationDetails c082PartyIdentificationDetails;
private C058NameAndAddress c058NameAndAddress;
private C080PartyName c080PartyName;
private C059Street c059Street;
private String e3164CityName;
private String e3229CountrySubEntityIdentification;
private String e3251PostcodeIdentification;
private String e3207CountryCoded;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e3035PartyQualifier != null) {
nodeWriter.write(delimiters.escape(e3035PartyQualifier.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(e3229CountrySubEntityIdentification != null) {
nodeWriter.write(delimiters.escape(e3229CountrySubEntityIdentification.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e3251PostcodeIdentification != null) {
nodeWriter.write(delimiters.escape(e3251PostcodeIdentification.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e3207CountryCoded != null) {
nodeWriter.write(delimiters.escape(e3207CountryCoded.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 getE3035PartyQualifier() {
return e3035PartyQualifier;
}
public NADNameAndAddress setE3035PartyQualifier(String e3035PartyQualifier) {
this.e3035PartyQualifier = e3035PartyQualifier; 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 String getE3229CountrySubEntityIdentification() {
return e3229CountrySubEntityIdentification;
}
public NADNameAndAddress setE3229CountrySubEntityIdentification(String e3229CountrySubEntityIdentification) {
this.e3229CountrySubEntityIdentification = e3229CountrySubEntityIdentification; return this;
}
public String getE3251PostcodeIdentification() {
return e3251PostcodeIdentification;
}
public NADNameAndAddress setE3251PostcodeIdentification(String e3251PostcodeIdentification) {
this.e3251PostcodeIdentification = e3251PostcodeIdentification; return this;
}
public String getE3207CountryCoded() {
return e3207CountryCoded;
}
public NADNameAndAddress setE3207CountryCoded(String e3207CountryCoded) {
this.e3207CountryCoded = e3207CountryCoded; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy