org.milyn.edi.unedifact.d02a.BOPDIR.SegmentGroup3 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.BOPDIR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.RFFReference;
import org.milyn.edi.unedifact.d02a.common.ATTAttribute;
import org.milyn.edi.unedifact.d02a.common.FIIFinancialInstitutionInformation;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.NADNameAndAddress;
import org.milyn.edi.unedifact.d02a.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d02a.common.CUXCurrencies;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup3 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private RFFReference rFFReference;
private ATTAttribute aTTAttribute;
private FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation;
private List nADNameAndAddress;
private List mOAMonetaryAmount;
private CUXCurrencies cUXCurrencies;
private List segmentGroup4;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(rFFReference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReference.write(nodeWriter, delimiters);
}
if(aTTAttribute != null) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
aTTAttribute.write(nodeWriter, delimiters);
}
if(fIIFinancialInstitutionInformation != null) {
nodeWriter.write("FII");
nodeWriter.write(delimiters.getField());
fIIFinancialInstitutionInformation.write(nodeWriter, delimiters);
}
if(nADNameAndAddress != null && !nADNameAndAddress.isEmpty()) {
for(NADNameAndAddress nADNameAndAddressInst : nADNameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nADNameAndAddressInst.write(nodeWriter, delimiters);
}
}
if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(cUXCurrencies != null) {
nodeWriter.write("CUX");
nodeWriter.write(delimiters.getField());
cUXCurrencies.write(nodeWriter, delimiters);
}
if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
segmentGroup4Inst.write(nodeWriter, delimiters);
}
}
}
public RFFReference getRFFReference() {
return rFFReference;
}
public SegmentGroup3 setRFFReference(RFFReference rFFReference) {
this.rFFReference = rFFReference; return this;
}
public ATTAttribute getATTAttribute() {
return aTTAttribute;
}
public SegmentGroup3 setATTAttribute(ATTAttribute aTTAttribute) {
this.aTTAttribute = aTTAttribute; return this;
}
public FIIFinancialInstitutionInformation getFIIFinancialInstitutionInformation() {
return fIIFinancialInstitutionInformation;
}
public SegmentGroup3 setFIIFinancialInstitutionInformation(FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation) {
this.fIIFinancialInstitutionInformation = fIIFinancialInstitutionInformation; return this;
}
public List getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup3 setNADNameAndAddress(List nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup3 setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public CUXCurrencies getCUXCurrencies() {
return cUXCurrencies;
}
public SegmentGroup3 setCUXCurrencies(CUXCurrencies cUXCurrencies) {
this.cUXCurrencies = cUXCurrencies; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public SegmentGroup3 setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
}