org.milyn.edi.unedifact.d06b.DAPLOS.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.DAPLOS;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.HierarchyInformation;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.AdditionalProductId;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private HierarchyInformation hierarchyInformation;
private List additionalProductId;
private List segmentGroup9;
private List segmentGroup10;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(hierarchyInformation != null) {
nodeWriter.write("HYN");
nodeWriter.write(delimiters.getField());
hierarchyInformation.write(nodeWriter, delimiters);
}
if(additionalProductId != null && !additionalProductId.isEmpty()) {
for(AdditionalProductId additionalProductIdInst : additionalProductId) {
nodeWriter.write("PIA");
nodeWriter.write(delimiters.getField());
additionalProductIdInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
segmentGroup9Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
}
public HierarchyInformation getHierarchyInformation() {
return hierarchyInformation;
}
public SegmentGroup8 setHierarchyInformation(HierarchyInformation hierarchyInformation) {
this.hierarchyInformation = hierarchyInformation; return this;
}
public List getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup8 setAdditionalProductId(List additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public List getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup8 setSegmentGroup9(List segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup8 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
}