org.milyn.edi.unedifact.d02a.CUSREP.SegmentGroup4 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.CUSREP;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.DutyTaxFeeDetails;
import org.milyn.edi.unedifact.d02a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d02a.common.FinancialInstitutionInformation;
import org.milyn.edi.unedifact.d02a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d02a.common.Reference;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d02a.common.GeneralIndicator;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup4 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DutyTaxFeeDetails dutyTaxFeeDetails;
private MonetaryAmount monetaryAmount;
private FinancialInstitutionInformation financialInstitutionInformation;
private PlaceLocationIdentification placeLocationIdentification;
private Reference reference;
private List dateTimePeriod;
private GeneralIndicator generalIndicator;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(dutyTaxFeeDetails != null) {
nodeWriter.write("TAX");
nodeWriter.write(delimiters.getField());
dutyTaxFeeDetails.write(nodeWriter, delimiters);
}
if(monetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmount.write(nodeWriter, delimiters);
}
if(financialInstitutionInformation != null) {
nodeWriter.write("FII");
nodeWriter.write(delimiters.getField());
financialInstitutionInformation.write(nodeWriter, delimiters);
}
if(placeLocationIdentification != null) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentification.write(nodeWriter, delimiters);
}
if(reference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
reference.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(generalIndicator != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicator.write(nodeWriter, delimiters);
}
}
public DutyTaxFeeDetails getDutyTaxFeeDetails() {
return dutyTaxFeeDetails;
}
public SegmentGroup4 setDutyTaxFeeDetails(DutyTaxFeeDetails dutyTaxFeeDetails) {
this.dutyTaxFeeDetails = dutyTaxFeeDetails; return this;
}
public MonetaryAmount getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup4 setMonetaryAmount(MonetaryAmount monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public FinancialInstitutionInformation getFinancialInstitutionInformation() {
return financialInstitutionInformation;
}
public SegmentGroup4 setFinancialInstitutionInformation(FinancialInstitutionInformation financialInstitutionInformation) {
this.financialInstitutionInformation = financialInstitutionInformation; return this;
}
public PlaceLocationIdentification getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup4 setPlaceLocationIdentification(PlaceLocationIdentification placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public Reference getReference() {
return reference;
}
public SegmentGroup4 setReference(Reference reference) {
this.reference = reference; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup4 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public GeneralIndicator getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup4 setGeneralIndicator(GeneralIndicator generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
}