org.milyn.edi.unedifact.d06b.COEDOR.SegmentGroup4 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.COEDOR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.EquipmentDetails;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.Reference;
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d06b.common.ComponentDetails;
import org.milyn.edi.unedifact.d06b.common.Measurements;
import org.milyn.edi.unedifact.d06b.common.Dimensions;
import org.milyn.edi.unedifact.d06b.common.RangeDetails;
import org.milyn.edi.unedifact.d06b.common.FreeText;
import org.milyn.edi.unedifact.d06b.common.AttachedEquipment;
import org.milyn.edi.unedifact.d06b.common.HandlingInstructions;
import org.milyn.edi.unedifact.d06b.common.NameAndAddress;
import org.milyn.edi.unedifact.d06b.common.NumberOfUnits;
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 EquipmentDetails equipmentDetails;
private List reference;
private List dateTimePeriod;
private List placeLocationIdentification;
private ComponentDetails componentDetails;
private List measurements;
private List dimensions;
private List rangeDetails;
private List freeText;
private List attachedEquipment;
private List handlingInstructions;
private List nameAndAddress;
private NumberOfUnits numberOfUnits;
private List segmentGroup5;
private SegmentGroup6 segmentGroup6;
private List segmentGroup8;
private List segmentGroup10;
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(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(componentDetails != null) {
nodeWriter.write("COD");
nodeWriter.write(delimiters.getField());
componentDetails.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(rangeDetails != null && !rangeDetails.isEmpty()) {
for(RangeDetails rangeDetailsInst : rangeDetails) {
nodeWriter.write("RNG");
nodeWriter.write(delimiters.getField());
rangeDetailsInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(attachedEquipment != null && !attachedEquipment.isEmpty()) {
for(AttachedEquipment attachedEquipmentInst : attachedEquipment) {
nodeWriter.write("EQA");
nodeWriter.write(delimiters.getField());
attachedEquipmentInst.write(nodeWriter, delimiters);
}
}
if(handlingInstructions != null && !handlingInstructions.isEmpty()) {
for(HandlingInstructions handlingInstructionsInst : handlingInstructions) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
handlingInstructionsInst.write(nodeWriter, delimiters);
}
}
if(nameAndAddress != null && !nameAndAddress.isEmpty()) {
for(NameAndAddress nameAndAddressInst : nameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddressInst.write(nodeWriter, delimiters);
}
}
if(numberOfUnits != null) {
nodeWriter.write("EQN");
nodeWriter.write(delimiters.getField());
numberOfUnits.write(nodeWriter, delimiters);
}
if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
segmentGroup5Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup6 != null) {
segmentGroup6.write(nodeWriter, delimiters);
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
}
public EquipmentDetails getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup4 setEquipmentDetails(EquipmentDetails equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup4 setReference(List reference) {
this.reference = reference; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup4 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup4 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public ComponentDetails getComponentDetails() {
return componentDetails;
}
public SegmentGroup4 setComponentDetails(ComponentDetails componentDetails) {
this.componentDetails = componentDetails; 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 getRangeDetails() {
return rangeDetails;
}
public SegmentGroup4 setRangeDetails(List rangeDetails) {
this.rangeDetails = rangeDetails; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup4 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getAttachedEquipment() {
return attachedEquipment;
}
public SegmentGroup4 setAttachedEquipment(List attachedEquipment) {
this.attachedEquipment = attachedEquipment; return this;
}
public List getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup4 setHandlingInstructions(List handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public List getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup4 setNameAndAddress(List nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public NumberOfUnits getNumberOfUnits() {
return numberOfUnits;
}
public SegmentGroup4 setNumberOfUnits(NumberOfUnits numberOfUnits) {
this.numberOfUnits = numberOfUnits; return this;
}
public List getSegmentGroup5() {
return segmentGroup5;
}
public SegmentGroup4 setSegmentGroup5(List segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
public SegmentGroup6 getSegmentGroup6() {
return segmentGroup6;
}
public SegmentGroup4 setSegmentGroup6(SegmentGroup6 segmentGroup6) {
this.segmentGroup6 = segmentGroup6; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup4 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup4 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
}