org.milyn.edi.unedifact.d99b.ITRRPT.SegmentGroup23 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.ITRRPT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.PCIPackageIdentification;
import org.milyn.edi.unedifact.d99b.common.CDIPhysicalOrLogicalState;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.QTYQuantity;
import org.milyn.edi.unedifact.d99b.common.MEAMeasurements;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup23 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PCIPackageIdentification pCIPackageIdentification;
private CDIPhysicalOrLogicalState cDIPhysicalOrLogicalState;
private List dTMDateTimePeriod;
private QTYQuantity qTYQuantity;
private List mEAMeasurements;
private List segmentGroup24;
private List segmentGroup25;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(pCIPackageIdentification != null) {
nodeWriter.write("PCI");
nodeWriter.write(delimiters.getField());
pCIPackageIdentification.write(nodeWriter, delimiters);
}
if(cDIPhysicalOrLogicalState != null) {
nodeWriter.write("CDI");
nodeWriter.write(delimiters.getField());
cDIPhysicalOrLogicalState.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(qTYQuantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
qTYQuantity.write(nodeWriter, delimiters);
}
if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurementsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
segmentGroup24Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
segmentGroup25Inst.write(nodeWriter, delimiters);
}
}
}
public PCIPackageIdentification getPCIPackageIdentification() {
return pCIPackageIdentification;
}
public SegmentGroup23 setPCIPackageIdentification(PCIPackageIdentification pCIPackageIdentification) {
this.pCIPackageIdentification = pCIPackageIdentification; return this;
}
public CDIPhysicalOrLogicalState getCDIPhysicalOrLogicalState() {
return cDIPhysicalOrLogicalState;
}
public SegmentGroup23 setCDIPhysicalOrLogicalState(CDIPhysicalOrLogicalState cDIPhysicalOrLogicalState) {
this.cDIPhysicalOrLogicalState = cDIPhysicalOrLogicalState; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup23 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public QTYQuantity getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup23 setQTYQuantity(QTYQuantity qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup23 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getSegmentGroup24() {
return segmentGroup24;
}
public SegmentGroup23 setSegmentGroup24(List segmentGroup24) {
this.segmentGroup24 = segmentGroup24; return this;
}
public List getSegmentGroup25() {
return segmentGroup25;
}
public SegmentGroup23 setSegmentGroup25(List segmentGroup25) {
this.segmentGroup25 = segmentGroup25; return this;
}
}