org.milyn.edi.unedifact.d02a.COPINO.SegmentGroup11 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.COPINO;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.EquipmentDetails;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.Reference;
import org.milyn.edi.unedifact.d02a.common.NumberOfUnits;
import org.milyn.edi.unedifact.d02a.common.Measurements;
import org.milyn.edi.unedifact.d02a.common.Dimensions;
import org.milyn.edi.unedifact.d02a.common.FreeText;
import org.milyn.edi.unedifact.d02a.common.PercentageDetails;
import org.milyn.edi.unedifact.d02a.common.SealNumber;
import org.milyn.edi.unedifact.d02a.common.AttachedEquipment;
import org.milyn.edi.unedifact.d02a.common.HandlingInstructions;
import org.milyn.edi.unedifact.d02a.common.NameAndAddress;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup11 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private EquipmentDetails equipmentDetails;
private List reference;
private NumberOfUnits numberOfUnits;
private List measurements;
private List dimensions;
private List freeText;
private List percentageDetails;
private List sealNumber;
private AttachedEquipment attachedEquipment;
private List handlingInstructions;
private List segmentGroup12;
private List nameAndAddress;
private List segmentGroup14;
private List segmentGroup16;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(equipmentDetails != null) {
nodeWriter.write("EQD");
nodeWriter.write(delimiters.getField());
equipmentDetails.write(nodeWriter, delimiters);
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(numberOfUnits != null) {
nodeWriter.write("EQN");
nodeWriter.write(delimiters.getField());
numberOfUnits.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(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(percentageDetails != null && !percentageDetails.isEmpty()) {
for(PercentageDetails percentageDetailsInst : percentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetailsInst.write(nodeWriter, delimiters);
}
}
if(sealNumber != null && !sealNumber.isEmpty()) {
for(SealNumber sealNumberInst : sealNumber) {
nodeWriter.write("SEL");
nodeWriter.write(delimiters.getField());
sealNumberInst.write(nodeWriter, delimiters);
}
}
if(attachedEquipment != null) {
nodeWriter.write("EQA");
nodeWriter.write(delimiters.getField());
attachedEquipment.write(nodeWriter, delimiters);
}
if(handlingInstructions != null && !handlingInstructions.isEmpty()) {
for(HandlingInstructions handlingInstructionsInst : handlingInstructions) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
handlingInstructionsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
segmentGroup12Inst.write(nodeWriter, delimiters);
}
}
if(nameAndAddress != null && !nameAndAddress.isEmpty()) {
for(NameAndAddress nameAndAddressInst : nameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddressInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
segmentGroup16Inst.write(nodeWriter, delimiters);
}
}
}
public EquipmentDetails getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup11 setEquipmentDetails(EquipmentDetails equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup11 setReference(List reference) {
this.reference = reference; return this;
}
public NumberOfUnits getNumberOfUnits() {
return numberOfUnits;
}
public SegmentGroup11 setNumberOfUnits(NumberOfUnits numberOfUnits) {
this.numberOfUnits = numberOfUnits; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup11 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup11 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup11 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup11 setPercentageDetails(List percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public List getSealNumber() {
return sealNumber;
}
public SegmentGroup11 setSealNumber(List sealNumber) {
this.sealNumber = sealNumber; return this;
}
public AttachedEquipment getAttachedEquipment() {
return attachedEquipment;
}
public SegmentGroup11 setAttachedEquipment(AttachedEquipment attachedEquipment) {
this.attachedEquipment = attachedEquipment; return this;
}
public List getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup11 setHandlingInstructions(List handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public List getSegmentGroup12() {
return segmentGroup12;
}
public SegmentGroup11 setSegmentGroup12(List segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
public List getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup11 setNameAndAddress(List nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup11 setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
public List getSegmentGroup16() {
return segmentGroup16;
}
public SegmentGroup11 setSegmentGroup16(List segmentGroup16) {
this.segmentGroup16 = segmentGroup16; return this;
}
}