org.milyn.edi.unedifact.d06b.ICSOLI.SegmentGroup4 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.ICSOLI;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.RODRiskObjectType;
import org.milyn.edi.unedifact.d06b.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d06b.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup4 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private RODRiskObjectType rODRiskObjectType;
private MOAMonetaryAmount mOAMonetaryAmount;
private FTXFreeText fTXFreeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(rODRiskObjectType != null) {
nodeWriter.write("ROD");
nodeWriter.write(delimiters.getField());
rODRiskObjectType.write(nodeWriter, delimiters);
}
if(mOAMonetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmount.write(nodeWriter, delimiters);
}
if(fTXFreeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeText.write(nodeWriter, delimiters);
}
}
public RODRiskObjectType getRODRiskObjectType() {
return rODRiskObjectType;
}
public SegmentGroup4 setRODRiskObjectType(RODRiskObjectType rODRiskObjectType) {
this.rODRiskObjectType = rODRiskObjectType; return this;
}
public MOAMonetaryAmount getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup4 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public FTXFreeText getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup4 setFTXFreeText(FTXFreeText fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}