org.milyn.edi.unedifact.d96a.CUSEXP.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.CUSEXP;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.ConsignmentInformation;
import java.util.List;
import org.milyn.edi.unedifact.d96a.common.SplitGoodsPlacement;
import org.milyn.edi.unedifact.d96a.common.ControlTotal;
import org.milyn.edi.unedifact.d96a.common.Measurements;
import org.milyn.edi.unedifact.d96a.common.PlaceLocationIdentification;
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 SegmentGroup7 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ConsignmentInformation consignmentInformation;
private List splitGoodsPlacement;
private List controlTotal;
private Measurements measurements;
private List placeLocationIdentification;
private List nameAndAddress;
private SegmentGroup8 segmentGroup8;
private List segmentGroup9;
private SegmentGroup10 segmentGroup10;
private List segmentGroup11;
private List segmentGroup13;
private List segmentGroup14;
private List segmentGroup15;
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(splitGoodsPlacement != null && !splitGoodsPlacement.isEmpty()) {
for(SplitGoodsPlacement splitGoodsPlacementInst : splitGoodsPlacement) {
nodeWriter.write("SGP");
nodeWriter.write(delimiters.getField());
splitGoodsPlacementInst.write(nodeWriter, delimiters);
}
}
if(controlTotal != null && !controlTotal.isEmpty()) {
for(ControlTotal controlTotalInst : controlTotal) {
nodeWriter.write("CNT");
nodeWriter.write(delimiters.getField());
controlTotalInst.write(nodeWriter, delimiters);
}
}
if(measurements != null) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurements.write(nodeWriter, delimiters);
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.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.write(nodeWriter, delimiters);
}
if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
segmentGroup9Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null) {
segmentGroup10.write(nodeWriter, delimiters);
}
if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
segmentGroup13Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
segmentGroup15Inst.write(nodeWriter, delimiters);
}
}
}
public ConsignmentInformation getConsignmentInformation() {
return consignmentInformation;
}
public SegmentGroup7 setConsignmentInformation(ConsignmentInformation consignmentInformation) {
this.consignmentInformation = consignmentInformation; return this;
}
public List getSplitGoodsPlacement() {
return splitGoodsPlacement;
}
public SegmentGroup7 setSplitGoodsPlacement(List splitGoodsPlacement) {
this.splitGoodsPlacement = splitGoodsPlacement; return this;
}
public List getControlTotal() {
return controlTotal;
}
public SegmentGroup7 setControlTotal(List controlTotal) {
this.controlTotal = controlTotal; return this;
}
public Measurements getMeasurements() {
return measurements;
}
public SegmentGroup7 setMeasurements(Measurements measurements) {
this.measurements = measurements; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup7 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup7 setNameAndAddress(List nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public SegmentGroup8 getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(SegmentGroup8 segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
public List getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup7 setSegmentGroup9(List segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
public SegmentGroup10 getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup7 setSegmentGroup10(SegmentGroup10 segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup7 setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public List getSegmentGroup13() {
return segmentGroup13;
}
public SegmentGroup7 setSegmentGroup13(List segmentGroup13) {
this.segmentGroup13 = segmentGroup13; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup7 setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
public List getSegmentGroup15() {
return segmentGroup15;
}
public SegmentGroup7 setSegmentGroup15(List segmentGroup15) {
this.segmentGroup15 = segmentGroup15; return this;
}
}