org.milyn.edi.unedifact.d95b.BOPDIR.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d95b.BOPDIR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d95b.common.RCSRequirementsAndConditions;
import java.util.List;
import org.milyn.edi.unedifact.d95b.common.FTXFreeText;
import org.milyn.edi.unedifact.d95b.common.FIIFinancialInstitutionInformation;
import org.milyn.edi.unedifact.d95b.common.NADNameAndAddress;
import org.milyn.edi.unedifact.d95b.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d95b.common.LOCPlaceLocationIdentification;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private RCSRequirementsAndConditions rCSRequirementsAndConditions;
private List fTXFreeText;
private SegmentGroup9 segmentGroup9;
private SegmentGroup10 segmentGroup10;
private FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation;
private NADNameAndAddress nADNameAndAddress;
private MOAMonetaryAmount mOAMonetaryAmount;
private List lOCPlaceLocationIdentification;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(rCSRequirementsAndConditions != null) {
nodeWriter.write("RCS");
nodeWriter.write(delimiters.getField());
rCSRequirementsAndConditions.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup9 != null) {
segmentGroup9.write(nodeWriter, delimiters);
}
if(segmentGroup10 != null) {
segmentGroup10.write(nodeWriter, delimiters);
}
if(fIIFinancialInstitutionInformation != null) {
nodeWriter.write("FII");
nodeWriter.write(delimiters.getField());
fIIFinancialInstitutionInformation.write(nodeWriter, delimiters);
}
if(nADNameAndAddress != null) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nADNameAndAddress.write(nodeWriter, delimiters);
}
if(mOAMonetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmount.write(nodeWriter, delimiters);
}
if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
}
public RCSRequirementsAndConditions getRCSRequirementsAndConditions() {
return rCSRequirementsAndConditions;
}
public SegmentGroup8 setRCSRequirementsAndConditions(RCSRequirementsAndConditions rCSRequirementsAndConditions) {
this.rCSRequirementsAndConditions = rCSRequirementsAndConditions; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup8 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public SegmentGroup9 getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup8 setSegmentGroup9(SegmentGroup9 segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
public SegmentGroup10 getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup8 setSegmentGroup10(SegmentGroup10 segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public FIIFinancialInstitutionInformation getFIIFinancialInstitutionInformation() {
return fIIFinancialInstitutionInformation;
}
public SegmentGroup8 setFIIFinancialInstitutionInformation(FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation) {
this.fIIFinancialInstitutionInformation = fIIFinancialInstitutionInformation; return this;
}
public NADNameAndAddress getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup8 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public MOAMonetaryAmount getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup8 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup8 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
}