org.milyn.edi.unedifact.d99b.IFTIAG.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.IFTIAG;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.ConsignmentInformation;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d99b.common.Reference;
import org.milyn.edi.unedifact.d99b.common.NameAndAddress;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup7 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ConsignmentInformation consignmentInformation;
private List placeLocationIdentification;
private List reference;
private List nameAndAddress;
private List segmentGroup8;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(consignmentInformation != null) {
nodeWriter.write("CNI");
nodeWriter.write(delimiters.getField());
consignmentInformation.write(nodeWriter, delimiters);
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(nameAndAddress != null && !nameAndAddress.isEmpty()) {
for(NameAndAddress nameAndAddressInst : nameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddressInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
}
public ConsignmentInformation getConsignmentInformation() {
return consignmentInformation;
}
public SegmentGroup7 setConsignmentInformation(ConsignmentInformation consignmentInformation) {
this.consignmentInformation = consignmentInformation; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup7 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup7 setReference(List reference) {
this.reference = reference; return this;
}
public List getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup7 setNameAndAddress(List nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
}