org.milyn.edi.unedifact.d99b.QALITY.SegmentGroup22 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.QALITY;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.CharacteristicClassId;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.PhysicalSampleDescription;
import org.milyn.edi.unedifact.d99b.common.SamplingParametersForSummaryStatistics;
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.FreeText;
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 CharacteristicClassId characteristicClassId;
private List physicalSampleDescription;
private List samplingParametersForSummaryStatistic;
private List dateTimePeriod;
private List freeText;
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(characteristicClassId != null) {
nodeWriter.write("CCI");
nodeWriter.write(delimiters.getField());
characteristicClassId.write(nodeWriter, delimiters);
}
if(physicalSampleDescription != null && !physicalSampleDescription.isEmpty()) {
for(PhysicalSampleDescription physicalSampleDescriptionInst : physicalSampleDescription) {
nodeWriter.write("PSD");
nodeWriter.write(delimiters.getField());
physicalSampleDescriptionInst.write(nodeWriter, delimiters);
}
}
if(samplingParametersForSummaryStatistic != null && !samplingParametersForSummaryStatistic.isEmpty()) {
for(SamplingParametersForSummaryStatistics samplingParametersForSummaryStatisticInst : samplingParametersForSummaryStatistic) {
nodeWriter.write("SPS");
nodeWriter.write(delimiters.getField());
samplingParametersForSummaryStatisticInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.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 CharacteristicClassId getCharacteristicClassId() {
return characteristicClassId;
}
public SegmentGroup22 setCharacteristicClassId(CharacteristicClassId characteristicClassId) {
this.characteristicClassId = characteristicClassId; return this;
}
public List getPhysicalSampleDescription() {
return physicalSampleDescription;
}
public SegmentGroup22 setPhysicalSampleDescription(List physicalSampleDescription) {
this.physicalSampleDescription = physicalSampleDescription; return this;
}
public List getSamplingParametersForSummaryStatistic() {
return samplingParametersForSummaryStatistic;
}
public SegmentGroup22 setSamplingParametersForSummaryStatistic(List samplingParametersForSummaryStatistic) {
this.samplingParametersForSummaryStatistic = samplingParametersForSummaryStatistic; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup22 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup22 setFreeText(List freeText) {
this.freeText = freeText; 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;
}
}