org.milyn.edi.unedifact.d05a.BOPBNK.SegmentGroup3 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.BOPBNK;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.Reference;
import org.milyn.edi.unedifact.d05a.common.Currencies;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d05a.common.PlaceLocationIdentification;
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 Reference reference;
private Currencies currencies;
private List monetaryAmount;
private PlaceLocationIdentification placeLocationIdentification;
private List segmentGroup4;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(reference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
reference.write(nodeWriter, delimiters);
}
if(currencies != null) {
nodeWriter.write("CUX");
nodeWriter.write(delimiters.getField());
currencies.write(nodeWriter, delimiters);
}
if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(placeLocationIdentification != null) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentification.write(nodeWriter, delimiters);
}
if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
segmentGroup4Inst.write(nodeWriter, delimiters);
}
}
}
public Reference getReference() {
return reference;
}
public SegmentGroup3 setReference(Reference reference) {
this.reference = reference; return this;
}
public Currencies getCurrencies() {
return currencies;
}
public SegmentGroup3 setCurrencies(Currencies currencies) {
this.currencies = currencies; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup3 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public PlaceLocationIdentification getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup3 setPlaceLocationIdentification(PlaceLocationIdentification placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public SegmentGroup3 setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
}