org.milyn.edi.unedifact.d99b.PRICAT.SegmentGroup26 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.PRICAT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.NameAndAddress;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.PlaceLocationIdentification;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup26 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private NameAndAddress nameAndAddress;
private List placeLocationIdentification;
private List segmentGroup27;
private List segmentGroup28;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(nameAndAddress != null) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddress.write(nodeWriter, delimiters);
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup27 != null && !segmentGroup27.isEmpty()) {
for(SegmentGroup27 segmentGroup27Inst : segmentGroup27) {
segmentGroup27Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup28 != null && !segmentGroup28.isEmpty()) {
for(SegmentGroup28 segmentGroup28Inst : segmentGroup28) {
segmentGroup28Inst.write(nodeWriter, delimiters);
}
}
}
public NameAndAddress getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup26 setNameAndAddress(NameAndAddress nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup26 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getSegmentGroup27() {
return segmentGroup27;
}
public SegmentGroup26 setSegmentGroup27(List segmentGroup27) {
this.segmentGroup27 = segmentGroup27; return this;
}
public List getSegmentGroup28() {
return segmentGroup28;
}
public SegmentGroup26 setSegmentGroup28(List segmentGroup28) {
this.segmentGroup28 = segmentGroup28; return this;
}
}