org.virtuslab.edi.unedifact.d99a.DMSTAT.SegmentGroup2 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.virtuslab.edi.unedifact.d99a.DMSTAT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.virtuslab.edi.unedifact.d99a.common.HYNHierarchyInformation;
import java.util.List;
import org.virtuslab.edi.unedifact.d99a.common.RFFReference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup2 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private HYNHierarchyInformation hYNHierarchyInformation;
private List rFFReference;
private List segmentGroup3;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(hYNHierarchyInformation != null) {
nodeWriter.write("HYN");
nodeWriter.write(delimiters.getField());
hYNHierarchyInformation.write(nodeWriter, delimiters);
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
segmentGroup3Inst.write(nodeWriter, delimiters);
}
}
}
public HYNHierarchyInformation getHYNHierarchyInformation() {
return hYNHierarchyInformation;
}
public SegmentGroup2 setHYNHierarchyInformation(HYNHierarchyInformation hYNHierarchyInformation) {
this.hYNHierarchyInformation = hYNHierarchyInformation; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup2 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getSegmentGroup3() {
return segmentGroup3;
}
public SegmentGroup2 setSegmentGroup3(List segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
}