org.milyn.edi.unedifact.d96a.MOVINS.SegmentGroup4 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.MOVINS;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.PlaceLocationIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d96a.common.Reference;
import org.milyn.edi.unedifact.d96a.common.FreeText;
import org.milyn.edi.unedifact.d96a.common.Measurements;
import org.milyn.edi.unedifact.d96a.common.Dimensions;
import org.milyn.edi.unedifact.d96a.common.NameAndAddress;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup4 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PlaceLocationIdentification placeLocationIdentification1;
private List reference;
private List freeText;
private List measurements;
private List dimensions;
private List placeLocationIdentification2;
private List nameAndAddress;
private SegmentGroup5 segmentGroup5;
private List segmentGroup6;
private List segmentGroup7;
private List segmentGroup8;
private List segmentGroup9;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(placeLocationIdentification1 != null) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentification1.write(nodeWriter, delimiters);
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(dimensions != null && !dimensions.isEmpty()) {
for(Dimensions dimensionsInst : dimensions) {
nodeWriter.write("DIM");
nodeWriter.write(delimiters.getField());
dimensionsInst.write(nodeWriter, delimiters);
}
}
if(placeLocationIdentification2 != null && !placeLocationIdentification2.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentification2Inst : placeLocationIdentification2) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentification2Inst.write(nodeWriter, delimiters);
}
}
if(nameAndAddress != null && !nameAndAddress.isEmpty()) {
for(NameAndAddress nameAndAddressInst : nameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddressInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup5 != null) {
segmentGroup5.write(nodeWriter, delimiters);
}
if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
segmentGroup6Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
segmentGroup7Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
segmentGroup9Inst.write(nodeWriter, delimiters);
}
}
}
public PlaceLocationIdentification getPlaceLocationIdentification1() {
return placeLocationIdentification1;
}
public SegmentGroup4 setPlaceLocationIdentification1(PlaceLocationIdentification placeLocationIdentification1) {
this.placeLocationIdentification1 = placeLocationIdentification1; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup4 setReference(List reference) {
this.reference = reference; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup4 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup4 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup4 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public List getPlaceLocationIdentification2() {
return placeLocationIdentification2;
}
public SegmentGroup4 setPlaceLocationIdentification2(List placeLocationIdentification2) {
this.placeLocationIdentification2 = placeLocationIdentification2; return this;
}
public List getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup4 setNameAndAddress(List nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public SegmentGroup5 getSegmentGroup5() {
return segmentGroup5;
}
public SegmentGroup4 setSegmentGroup5(SegmentGroup5 segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
public List getSegmentGroup6() {
return segmentGroup6;
}
public SegmentGroup4 setSegmentGroup6(List segmentGroup6) {
this.segmentGroup6 = segmentGroup6; return this;
}
public List getSegmentGroup7() {
return segmentGroup7;
}
public SegmentGroup4 setSegmentGroup7(List segmentGroup7) {
this.segmentGroup7 = segmentGroup7; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup4 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
public List getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup4 setSegmentGroup9(List segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
}