org.milyn.edi.unedifact.d07a.QALITY.SegmentGroup22 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d07a.QALITY;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d07a.common.CCICharacteristicClassId;
import java.util.List;
import org.milyn.edi.unedifact.d07a.common.PSDPhysicalSampleDescription;
import org.milyn.edi.unedifact.d07a.common.SPSSamplingParametersForSummaryStatistics;
import org.milyn.edi.unedifact.d07a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d07a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup22 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 segmentGroup23;
private List segmentGroup24;
private List segmentGroup26;
private List segmentGroup28;
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(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
segmentGroup23Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
segmentGroup24Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup26 != null && !segmentGroup26.isEmpty()) {
for(SegmentGroup26 segmentGroup26Inst : segmentGroup26) {
segmentGroup26Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup28 != null && !segmentGroup28.isEmpty()) {
for(SegmentGroup28 segmentGroup28Inst : segmentGroup28) {
segmentGroup28Inst.write(nodeWriter, delimiters);
}
}
}
public CCICharacteristicClassId getCCICharacteristicClassId() {
return cCICharacteristicClassId;
}
public SegmentGroup22 setCCICharacteristicClassId(CCICharacteristicClassId cCICharacteristicClassId) {
this.cCICharacteristicClassId = cCICharacteristicClassId; return this;
}
public List getPSDPhysicalSampleDescription() {
return pSDPhysicalSampleDescription;
}
public SegmentGroup22 setPSDPhysicalSampleDescription(List pSDPhysicalSampleDescription) {
this.pSDPhysicalSampleDescription = pSDPhysicalSampleDescription; return this;
}
public List getSPSSamplingParametersForSummaryStatistics() {
return sPSSamplingParametersForSummaryStatistics;
}
public SegmentGroup22 setSPSSamplingParametersForSummaryStatistics(List sPSSamplingParametersForSummaryStatistics) {
this.sPSSamplingParametersForSummaryStatistics = sPSSamplingParametersForSummaryStatistics; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup22 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup22 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup23() {
return segmentGroup23;
}
public SegmentGroup22 setSegmentGroup23(List segmentGroup23) {
this.segmentGroup23 = segmentGroup23; return this;
}
public List getSegmentGroup24() {
return segmentGroup24;
}
public SegmentGroup22 setSegmentGroup24(List segmentGroup24) {
this.segmentGroup24 = segmentGroup24; return this;
}
public List getSegmentGroup26() {
return segmentGroup26;
}
public SegmentGroup22 setSegmentGroup26(List segmentGroup26) {
this.segmentGroup26 = segmentGroup26; return this;
}
public List getSegmentGroup28() {
return segmentGroup28;
}
public SegmentGroup22 setSegmentGroup28(List segmentGroup28) {
this.segmentGroup28 = segmentGroup28; return this;
}
}