![JAR search and dependency download from the Maven repository](/logo.png)
org.milyn.edi.unedifact.d99b.CNTCND.SegmentGroup40 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.CNTCND;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.NameAndAddress;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.GeneralIndicator;
import org.milyn.edi.unedifact.d99b.common.FinancialInstitutionInformation;
import org.milyn.edi.unedifact.d99b.common.MonetaryAmount;
import org.milyn.edi.unedifact.d99b.common.DutyTaxFeeDetails;
import org.milyn.edi.unedifact.d99b.common.Reference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup40 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private NameAndAddress nameAndAddress;
private List generalIndicator;
private List financialInstitutionInformation;
private List monetaryAmount;
private List dutyTaxFeeDetails;
private List reference;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(nameAndAddress != null) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddress.write(nodeWriter, delimiters);
}
if(generalIndicator != null && !generalIndicator.isEmpty()) {
for(GeneralIndicator generalIndicatorInst : generalIndicator) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicatorInst.write(nodeWriter, delimiters);
}
}
if(financialInstitutionInformation != null && !financialInstitutionInformation.isEmpty()) {
for(FinancialInstitutionInformation financialInstitutionInformationInst : financialInstitutionInformation) {
nodeWriter.write("FII");
nodeWriter.write(delimiters.getField());
financialInstitutionInformationInst.write(nodeWriter, delimiters);
}
}
if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(dutyTaxFeeDetails != null && !dutyTaxFeeDetails.isEmpty()) {
for(DutyTaxFeeDetails dutyTaxFeeDetailsInst : dutyTaxFeeDetails) {
nodeWriter.write("TAX");
nodeWriter.write(delimiters.getField());
dutyTaxFeeDetailsInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
}
public NameAndAddress getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup40 setNameAndAddress(NameAndAddress nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup40 setGeneralIndicator(List generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
public List getFinancialInstitutionInformation() {
return financialInstitutionInformation;
}
public SegmentGroup40 setFinancialInstitutionInformation(List financialInstitutionInformation) {
this.financialInstitutionInformation = financialInstitutionInformation; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup40 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getDutyTaxFeeDetails() {
return dutyTaxFeeDetails;
}
public SegmentGroup40 setDutyTaxFeeDetails(List dutyTaxFeeDetails) {
this.dutyTaxFeeDetails = dutyTaxFeeDetails; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup40 setReference(List reference) {
this.reference = reference; return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy