org.milyn.edi.unedifact.d05a.SAFHAZ.SegmentGroup13 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.SAFHAZ;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.CharacteristicClassId;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.ItemDescription;
import org.milyn.edi.unedifact.d05a.common.FreeText;
import org.milyn.edi.unedifact.d05a.common.CharacteristicValue;
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 CharacteristicClassId characteristicClassId;
private List itemDescription;
private List freeText;
private List characteristicValue;
private List segmentGroup14;
private List segmentGroup15;
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(itemDescription != null && !itemDescription.isEmpty()) {
for(ItemDescription itemDescriptionInst : itemDescription) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
itemDescriptionInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(characteristicValue != null && !characteristicValue.isEmpty()) {
for(CharacteristicValue characteristicValueInst : characteristicValue) {
nodeWriter.write("CAV");
nodeWriter.write(delimiters.getField());
characteristicValueInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
segmentGroup15Inst.write(nodeWriter, delimiters);
}
}
}
public CharacteristicClassId getCharacteristicClassId() {
return characteristicClassId;
}
public SegmentGroup13 setCharacteristicClassId(CharacteristicClassId characteristicClassId) {
this.characteristicClassId = characteristicClassId; return this;
}
public List getItemDescription() {
return itemDescription;
}
public SegmentGroup13 setItemDescription(List itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup13 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getCharacteristicValue() {
return characteristicValue;
}
public SegmentGroup13 setCharacteristicValue(List characteristicValue) {
this.characteristicValue = characteristicValue; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup13 setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
public List getSegmentGroup15() {
return segmentGroup15;
}
public SegmentGroup13 setSegmentGroup15(List segmentGroup15) {
this.segmentGroup15 = segmentGroup15; return this;
}
}