org.milyn.edi.unedifact.d06b.ISENDS.SegmentGroup6 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.ISENDS;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.ATTAttribute;
import org.milyn.edi.unedifact.d06b.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d06b.common.PCDPercentageDetails;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.RCSRequirementsAndConditions;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ATTAttribute aTTAttribute;
private MOAMonetaryAmount mOAMonetaryAmount;
private PCDPercentageDetails pCDPercentageDetails;
private List rCSRequirementsAndConditions;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(aTTAttribute != null) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
aTTAttribute.write(nodeWriter, delimiters);
}
if(mOAMonetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmount.write(nodeWriter, delimiters);
}
if(pCDPercentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetails.write(nodeWriter, delimiters);
}
if(rCSRequirementsAndConditions != null && !rCSRequirementsAndConditions.isEmpty()) {
for(RCSRequirementsAndConditions rCSRequirementsAndConditionsInst : rCSRequirementsAndConditions) {
nodeWriter.write("RCS");
nodeWriter.write(delimiters.getField());
rCSRequirementsAndConditionsInst.write(nodeWriter, delimiters);
}
}
}
public ATTAttribute getATTAttribute() {
return aTTAttribute;
}
public SegmentGroup6 setATTAttribute(ATTAttribute aTTAttribute) {
this.aTTAttribute = aTTAttribute; return this;
}
public MOAMonetaryAmount getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup6 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public PCDPercentageDetails getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup6 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
public List getRCSRequirementsAndConditions() {
return rCSRequirementsAndConditions;
}
public SegmentGroup6 setRCSRequirementsAndConditions(List rCSRequirementsAndConditions) {
this.rCSRequirementsAndConditions = rCSRequirementsAndConditions; return this;
}
}