org.milyn.edi.unedifact.d06b.MEDRPT.SegmentGroup14 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.MEDRPT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.SequenceDetails;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.ItemDescription;
import org.milyn.edi.unedifact.d06b.common.ProcessIdentification;
import org.milyn.edi.unedifact.d06b.common.Reference;
import org.milyn.edi.unedifact.d06b.common.Quantity;
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.Package;
import org.milyn.edi.unedifact.d06b.common.FreeText;
import org.milyn.edi.unedifact.d06b.common.TransportInformation;
import org.milyn.edi.unedifact.d06b.common.HandlingInstructions;
import org.milyn.edi.unedifact.d06b.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d06b.common.Address;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup14 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private SequenceDetails sequenceDetails;
private List itemDescription;
private List processIdentification;
private List reference;
private Quantity quantity;
private List dateTimePeriod;
private Package _package;
private List freeText;
private List transportInformation;
private List handlingInstructions;
private List placeLocationIdentification;
private List address;
private List segmentGroup15;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(sequenceDetails != null) {
nodeWriter.write("SEQ");
nodeWriter.write(delimiters.getField());
sequenceDetails.write(nodeWriter, delimiters);
}
if(itemDescription != null && !itemDescription.isEmpty()) {
for(ItemDescription itemDescriptionInst : itemDescription) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
itemDescriptionInst.write(nodeWriter, delimiters);
}
}
if(processIdentification != null && !processIdentification.isEmpty()) {
for(ProcessIdentification processIdentificationInst : processIdentification) {
nodeWriter.write("PRC");
nodeWriter.write(delimiters.getField());
processIdentificationInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(quantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantity.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(_package != null) {
nodeWriter.write("PAC");
nodeWriter.write(delimiters.getField());
_package.write(nodeWriter, delimiters);
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(transportInformation != null && !transportInformation.isEmpty()) {
for(TransportInformation transportInformationInst : transportInformation) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
transportInformationInst.write(nodeWriter, delimiters);
}
}
if(handlingInstructions != null && !handlingInstructions.isEmpty()) {
for(HandlingInstructions handlingInstructionsInst : handlingInstructions) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
handlingInstructionsInst.write(nodeWriter, delimiters);
}
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(address != null && !address.isEmpty()) {
for(Address addressInst : address) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
addressInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
segmentGroup15Inst.write(nodeWriter, delimiters);
}
}
}
public SequenceDetails getSequenceDetails() {
return sequenceDetails;
}
public SegmentGroup14 setSequenceDetails(SequenceDetails sequenceDetails) {
this.sequenceDetails = sequenceDetails; return this;
}
public List getItemDescription() {
return itemDescription;
}
public SegmentGroup14 setItemDescription(List itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getProcessIdentification() {
return processIdentification;
}
public SegmentGroup14 setProcessIdentification(List processIdentification) {
this.processIdentification = processIdentification; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup14 setReference(List reference) {
this.reference = reference; return this;
}
public Quantity getQuantity() {
return quantity;
}
public SegmentGroup14 setQuantity(Quantity quantity) {
this.quantity = quantity; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup14 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public Package get_package() {
return _package;
}
public SegmentGroup14 set_package(Package _package) {
this._package = _package; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup14 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getTransportInformation() {
return transportInformation;
}
public SegmentGroup14 setTransportInformation(List transportInformation) {
this.transportInformation = transportInformation; return this;
}
public List getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup14 setHandlingInstructions(List handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup14 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getAddress() {
return address;
}
public SegmentGroup14 setAddress(List address) {
this.address = address; return this;
}
public List getSegmentGroup15() {
return segmentGroup15;
}
public SegmentGroup14 setSegmentGroup15(List segmentGroup15) {
this.segmentGroup15 = segmentGroup15; return this;
}
}