org.milyn.edi.unedifact.d98a.RESETT.SegmentGroup3 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.RESETT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.GeneralIndicator;
import org.milyn.edi.unedifact.d98a.common.PaymentInstructions;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.NameAndAddress;
import org.milyn.edi.unedifact.d98a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d98a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d98a.common.Currencies;
import org.milyn.edi.unedifact.d98a.common.FreeText;
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 GeneralIndicator generalIndicator1;
private PaymentInstructions paymentInstructions;
private List nameAndAddress;
private List dateTimePeriod;
private List segmentGroup4;
private List generalIndicator2;
private List monetaryAmount;
private Currencies currencies;
private List freeText;
private List segmentGroup5;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(generalIndicator1 != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicator1.write(nodeWriter, delimiters);
}
if(paymentInstructions != null) {
nodeWriter.write("PAI");
nodeWriter.write(delimiters.getField());
paymentInstructions.write(nodeWriter, delimiters);
}
if(nameAndAddress != null && !nameAndAddress.isEmpty()) {
for(NameAndAddress nameAndAddressInst : nameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddressInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
segmentGroup4Inst.write(nodeWriter, delimiters);
}
}
if(generalIndicator2 != null && !generalIndicator2.isEmpty()) {
for(GeneralIndicator generalIndicator2Inst : generalIndicator2) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicator2Inst.write(nodeWriter, delimiters);
}
}
if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(currencies != null) {
nodeWriter.write("CUX");
nodeWriter.write(delimiters.getField());
currencies.write(nodeWriter, delimiters);
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
segmentGroup5Inst.write(nodeWriter, delimiters);
}
}
}
public GeneralIndicator getGeneralIndicator1() {
return generalIndicator1;
}
public SegmentGroup3 setGeneralIndicator1(GeneralIndicator generalIndicator1) {
this.generalIndicator1 = generalIndicator1; return this;
}
public PaymentInstructions getPaymentInstructions() {
return paymentInstructions;
}
public SegmentGroup3 setPaymentInstructions(PaymentInstructions paymentInstructions) {
this.paymentInstructions = paymentInstructions; return this;
}
public List getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup3 setNameAndAddress(List nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup3 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public SegmentGroup3 setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
public List getGeneralIndicator2() {
return generalIndicator2;
}
public SegmentGroup3 setGeneralIndicator2(List generalIndicator2) {
this.generalIndicator2 = generalIndicator2; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup3 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public Currencies getCurrencies() {
return currencies;
}
public SegmentGroup3 setCurrencies(Currencies currencies) {
this.currencies = currencies; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup3 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup5() {
return segmentGroup5;
}
public SegmentGroup3 setSegmentGroup5(List segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy