org.milyn.edi.unedifact.d09b.MEDREQ.SegmentGroup13 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.MEDREQ;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d09b.common.SEQSequenceDetails;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.IMDItemDescription;
import org.milyn.edi.unedifact.d09b.common.PRCProcessIdentification;
import org.milyn.edi.unedifact.d09b.common.RFFReference;
import org.milyn.edi.unedifact.d09b.common.QTYQuantity;
import org.milyn.edi.unedifact.d09b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d09b.common.PACPackage;
import org.milyn.edi.unedifact.d09b.common.PTYPriority;
import org.milyn.edi.unedifact.d09b.common.FTXFreeText;
import org.milyn.edi.unedifact.d09b.common.TDTTransportInformation;
import org.milyn.edi.unedifact.d09b.common.HANHandlingInstructions;
import org.milyn.edi.unedifact.d09b.common.LOCPlaceLocationIdentification;
import org.milyn.edi.unedifact.d09b.common.ADRAddress;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup13 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private SEQSequenceDetails sEQSequenceDetails;
private List iMDItemDescription;
private List pRCProcessIdentification;
private List rFFReference;
private QTYQuantity qTYQuantity;
private List dTMDateTimePeriod;
private PACPackage pACPackage;
private PTYPriority pTYPriority;
private List fTXFreeText;
private List tDTTransportInformation;
private List hANHandlingInstructions;
private List lOCPlaceLocationIdentification;
private List aDRAddress;
private List segmentGroup14;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(sEQSequenceDetails != null) {
nodeWriter.write("SEQ");
nodeWriter.write(delimiters.getField());
sEQSequenceDetails.write(nodeWriter, delimiters);
}
if(iMDItemDescription != null && !iMDItemDescription.isEmpty()) {
for(IMDItemDescription iMDItemDescriptionInst : iMDItemDescription) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
iMDItemDescriptionInst.write(nodeWriter, delimiters);
}
}
if(pRCProcessIdentification != null && !pRCProcessIdentification.isEmpty()) {
for(PRCProcessIdentification pRCProcessIdentificationInst : pRCProcessIdentification) {
nodeWriter.write("PRC");
nodeWriter.write(delimiters.getField());
pRCProcessIdentificationInst.write(nodeWriter, delimiters);
}
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(qTYQuantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
qTYQuantity.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(pACPackage != null) {
nodeWriter.write("PAC");
nodeWriter.write(delimiters.getField());
pACPackage.write(nodeWriter, delimiters);
}
if(pTYPriority != null) {
nodeWriter.write("PTY");
nodeWriter.write(delimiters.getField());
pTYPriority.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(tDTTransportInformation != null && !tDTTransportInformation.isEmpty()) {
for(TDTTransportInformation tDTTransportInformationInst : tDTTransportInformation) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
tDTTransportInformationInst.write(nodeWriter, delimiters);
}
}
if(hANHandlingInstructions != null && !hANHandlingInstructions.isEmpty()) {
for(HANHandlingInstructions hANHandlingInstructionsInst : hANHandlingInstructions) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
hANHandlingInstructionsInst.write(nodeWriter, delimiters);
}
}
if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(aDRAddress != null && !aDRAddress.isEmpty()) {
for(ADRAddress aDRAddressInst : aDRAddress) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
aDRAddressInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
}
public SEQSequenceDetails getSEQSequenceDetails() {
return sEQSequenceDetails;
}
public SegmentGroup13 setSEQSequenceDetails(SEQSequenceDetails sEQSequenceDetails) {
this.sEQSequenceDetails = sEQSequenceDetails; return this;
}
public List getIMDItemDescription() {
return iMDItemDescription;
}
public SegmentGroup13 setIMDItemDescription(List iMDItemDescription) {
this.iMDItemDescription = iMDItemDescription; return this;
}
public List getPRCProcessIdentification() {
return pRCProcessIdentification;
}
public SegmentGroup13 setPRCProcessIdentification(List pRCProcessIdentification) {
this.pRCProcessIdentification = pRCProcessIdentification; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup13 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public QTYQuantity getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup13 setQTYQuantity(QTYQuantity qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup13 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public PACPackage getPACPackage() {
return pACPackage;
}
public SegmentGroup13 setPACPackage(PACPackage pACPackage) {
this.pACPackage = pACPackage; return this;
}
public PTYPriority getPTYPriority() {
return pTYPriority;
}
public SegmentGroup13 setPTYPriority(PTYPriority pTYPriority) {
this.pTYPriority = pTYPriority; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup13 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getTDTTransportInformation() {
return tDTTransportInformation;
}
public SegmentGroup13 setTDTTransportInformation(List tDTTransportInformation) {
this.tDTTransportInformation = tDTTransportInformation; return this;
}
public List getHANHandlingInstructions() {
return hANHandlingInstructions;
}
public SegmentGroup13 setHANHandlingInstructions(List hANHandlingInstructions) {
this.hANHandlingInstructions = hANHandlingInstructions; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup13 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public List getADRAddress() {
return aDRAddress;
}
public SegmentGroup13 setADRAddress(List aDRAddress) {
this.aDRAddress = aDRAddress; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup13 setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
}