org.milyn.edi.unedifact.d99a.ENTREC.SegmentGroup7 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99a.ENTREC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99a.common.INDIndexDetails;
import org.milyn.edi.unedifact.d99a.common.RFFReference;
import org.milyn.edi.unedifact.d99a.common.FTXFreeText;
import java.util.List;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup7 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private INDIndexDetails iNDIndexDetails;
private RFFReference rFFReference;
private FTXFreeText fTXFreeText;
private List segmentGroup8;
private SegmentGroup10 segmentGroup10;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(iNDIndexDetails != null) {
nodeWriter.write("IND");
nodeWriter.write(delimiters.getField());
iNDIndexDetails.write(nodeWriter, delimiters);
}
if(rFFReference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReference.write(nodeWriter, delimiters);
}
if(fTXFreeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeText.write(nodeWriter, delimiters);
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null) {
segmentGroup10.write(nodeWriter, delimiters);
}
}
public INDIndexDetails getINDIndexDetails() {
return iNDIndexDetails;
}
public SegmentGroup7 setINDIndexDetails(INDIndexDetails iNDIndexDetails) {
this.iNDIndexDetails = iNDIndexDetails; return this;
}
public RFFReference getRFFReference() {
return rFFReference;
}
public SegmentGroup7 setRFFReference(RFFReference rFFReference) {
this.rFFReference = rFFReference; return this;
}
public FTXFreeText getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup7 setFTXFreeText(FTXFreeText fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
public SegmentGroup10 getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup7 setSegmentGroup10(SegmentGroup10 segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
}