org.milyn.edi.unedifact.d98a.COSTCO.SegmentGroup5 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.COSTCO;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.EquipmentDetails;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.Reference;
import org.milyn.edi.unedifact.d98a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d98a.common.TransportServiceRequirements;
import org.milyn.edi.unedifact.d98a.common.Dimensions;
import org.milyn.edi.unedifact.d98a.common.SealNumber;
import org.milyn.edi.unedifact.d98a.common.AttachedEquipment;
import org.milyn.edi.unedifact.d98a.common.HandlingInstructions;
import org.milyn.edi.unedifact.d98a.common.NameAndAddress;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup5 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private EquipmentDetails equipmentDetails;
private List reference;
private List dateTimePeriod;
private List transportServiceRequirements;
private List dimensions;
private List sealNumber;
private List attachedEquipment;
private List handlingInstructions;
private List nameAndAddress;
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(transportServiceRequirements != null && !transportServiceRequirements.isEmpty()) {
for(TransportServiceRequirements transportServiceRequirementsInst : transportServiceRequirements) {
nodeWriter.write("TSR");
nodeWriter.write(delimiters.getField());
transportServiceRequirementsInst.write(nodeWriter, delimiters);
}
}
if(dimensions != null && !dimensions.isEmpty()) {
for(Dimensions dimensionsInst : dimensions) {
nodeWriter.write("DIM");
nodeWriter.write(delimiters.getField());
dimensionsInst.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 && !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);
}
}
}
public EquipmentDetails getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup5 setEquipmentDetails(EquipmentDetails equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup5 setReference(List reference) {
this.reference = reference; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup5 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getTransportServiceRequirements() {
return transportServiceRequirements;
}
public SegmentGroup5 setTransportServiceRequirements(List transportServiceRequirements) {
this.transportServiceRequirements = transportServiceRequirements; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup5 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public List getSealNumber() {
return sealNumber;
}
public SegmentGroup5 setSealNumber(List sealNumber) {
this.sealNumber = sealNumber; return this;
}
public List getAttachedEquipment() {
return attachedEquipment;
}
public SegmentGroup5 setAttachedEquipment(List attachedEquipment) {
this.attachedEquipment = attachedEquipment; return this;
}
public List getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup5 setHandlingInstructions(List handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public List getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup5 setNameAndAddress(List nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy