org.milyn.edi.unedifact.d02a.QALITY.SegmentGroup12 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.QALITY;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.CCICharacteristicClassId;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.PSDPhysicalSampleDescription;
import org.milyn.edi.unedifact.d02a.common.SPSSamplingParametersForSummaryStatistics;
import org.milyn.edi.unedifact.d02a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d02a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup12 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private CCICharacteristicClassId cCICharacteristicClassId;
private List pSDPhysicalSampleDescription;
private List sPSSamplingParametersForSummaryStatistics;
private List dTMDateTimePeriod;
private List fTXFreeText;
private List segmentGroup13;
private List segmentGroup14;
private List segmentGroup16;
private List segmentGroup18;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(cCICharacteristicClassId != null) {
nodeWriter.write("CCI");
nodeWriter.write(delimiters.getField());
cCICharacteristicClassId.write(nodeWriter, delimiters);
}
if(pSDPhysicalSampleDescription != null && !pSDPhysicalSampleDescription.isEmpty()) {
for(PSDPhysicalSampleDescription pSDPhysicalSampleDescriptionInst : pSDPhysicalSampleDescription) {
nodeWriter.write("PSD");
nodeWriter.write(delimiters.getField());
pSDPhysicalSampleDescriptionInst.write(nodeWriter, delimiters);
}
}
if(sPSSamplingParametersForSummaryStatistics != null && !sPSSamplingParametersForSummaryStatistics.isEmpty()) {
for(SPSSamplingParametersForSummaryStatistics sPSSamplingParametersForSummaryStatisticsInst : sPSSamplingParametersForSummaryStatistics) {
nodeWriter.write("SPS");
nodeWriter.write(delimiters.getField());
sPSSamplingParametersForSummaryStatisticsInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
segmentGroup13Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
segmentGroup16Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
segmentGroup18Inst.write(nodeWriter, delimiters);
}
}
}
public CCICharacteristicClassId getCCICharacteristicClassId() {
return cCICharacteristicClassId;
}
public SegmentGroup12 setCCICharacteristicClassId(CCICharacteristicClassId cCICharacteristicClassId) {
this.cCICharacteristicClassId = cCICharacteristicClassId; return this;
}
public List getPSDPhysicalSampleDescription() {
return pSDPhysicalSampleDescription;
}
public SegmentGroup12 setPSDPhysicalSampleDescription(List pSDPhysicalSampleDescription) {
this.pSDPhysicalSampleDescription = pSDPhysicalSampleDescription; return this;
}
public List getSPSSamplingParametersForSummaryStatistics() {
return sPSSamplingParametersForSummaryStatistics;
}
public SegmentGroup12 setSPSSamplingParametersForSummaryStatistics(List sPSSamplingParametersForSummaryStatistics) {
this.sPSSamplingParametersForSummaryStatistics = sPSSamplingParametersForSummaryStatistics; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup12 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup12 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup13() {
return segmentGroup13;
}
public SegmentGroup12 setSegmentGroup13(List segmentGroup13) {
this.segmentGroup13 = segmentGroup13; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup12 setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
public List getSegmentGroup16() {
return segmentGroup16;
}
public SegmentGroup12 setSegmentGroup16(List segmentGroup16) {
this.segmentGroup16 = segmentGroup16; return this;
}
public List getSegmentGroup18() {
return segmentGroup18;
}
public SegmentGroup12 setSegmentGroup18(List segmentGroup18) {
this.segmentGroup18 = segmentGroup18; return this;
}
}