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.RiskObjectType;
import org.milyn.edi.unedifact.d06b.common.MonetaryAmount;
import org.milyn.edi.unedifact.d06b.common.FreeText;
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 RiskObjectType riskObjectType;
private MonetaryAmount monetaryAmount;
private FreeText freeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(riskObjectType != null) {
nodeWriter.write("ROD");
nodeWriter.write(delimiters.getField());
riskObjectType.write(nodeWriter, delimiters);
}
if(monetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmount.write(nodeWriter, delimiters);
}
if(freeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeText.write(nodeWriter, delimiters);
}
}
public RiskObjectType getRiskObjectType() {
return riskObjectType;
}
public SegmentGroup4 setRiskObjectType(RiskObjectType riskObjectType) {
this.riskObjectType = riskObjectType; return this;
}
public MonetaryAmount getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup4 setMonetaryAmount(MonetaryAmount monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public FreeText getFreeText() {
return freeText;
}
public SegmentGroup4 setFreeText(FreeText freeText) {
this.freeText = freeText; return this;
}
}