org.milyn.edi.unedifact.d94b.common.LOCPlaceLocationIdentification Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d94b.common;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d94b.common.field.C517LocationIdentification;
import org.milyn.edi.unedifact.d94b.common.field.C519RelatedLocationOneIdentification;
import org.milyn.edi.unedifact.d94b.common.field.C553RelatedLocationTwoIdentification;
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 LOCPlaceLocationIdentification implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private String e3227PlaceLocationQualifier;
private C517LocationIdentification c517LocationIdentification;
private C519RelatedLocationOneIdentification c519RelatedLocationOneIdentification;
private C553RelatedLocationTwoIdentification c553RelatedLocationTwoIdentification;
private String e5479RelationCoded;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e3227PlaceLocationQualifier != null) {
nodeWriter.write(delimiters.escape(e3227PlaceLocationQualifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c517LocationIdentification != null) {
c517LocationIdentification.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c519RelatedLocationOneIdentification != null) {
c519RelatedLocationOneIdentification.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c553RelatedLocationTwoIdentification != null) {
c553RelatedLocationTwoIdentification.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e5479RelationCoded != null) {
nodeWriter.write(delimiters.escape(e5479RelationCoded.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 getE3227PlaceLocationQualifier() {
return e3227PlaceLocationQualifier;
}
public LOCPlaceLocationIdentification setE3227PlaceLocationQualifier(String e3227PlaceLocationQualifier) {
this.e3227PlaceLocationQualifier = e3227PlaceLocationQualifier; return this;
}
public C517LocationIdentification getC517LocationIdentification() {
return c517LocationIdentification;
}
public LOCPlaceLocationIdentification setC517LocationIdentification(C517LocationIdentification c517LocationIdentification) {
this.c517LocationIdentification = c517LocationIdentification; return this;
}
public C519RelatedLocationOneIdentification getC519RelatedLocationOneIdentification() {
return c519RelatedLocationOneIdentification;
}
public LOCPlaceLocationIdentification setC519RelatedLocationOneIdentification(C519RelatedLocationOneIdentification c519RelatedLocationOneIdentification) {
this.c519RelatedLocationOneIdentification = c519RelatedLocationOneIdentification; return this;
}
public C553RelatedLocationTwoIdentification getC553RelatedLocationTwoIdentification() {
return c553RelatedLocationTwoIdentification;
}
public LOCPlaceLocationIdentification setC553RelatedLocationTwoIdentification(C553RelatedLocationTwoIdentification c553RelatedLocationTwoIdentification) {
this.c553RelatedLocationTwoIdentification = c553RelatedLocationTwoIdentification; return this;
}
public String getE5479RelationCoded() {
return e5479RelationCoded;
}
public LOCPlaceLocationIdentification setE5479RelationCoded(String e5479RelationCoded) {
this.e5479RelationCoded = e5479RelationCoded; return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy