org.milyn.edi.unedifact.d98a.INFENT.SegmentGroup4 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.INFENT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.SequenceDetails;
import org.milyn.edi.unedifact.d98a.common.IndexDetails;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.Reference;
import org.milyn.edi.unedifact.d98a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d98a.common.FreeText;
import org.milyn.edi.unedifact.d98a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d98a.common.Quantity;
import org.milyn.edi.unedifact.d98a.common.Currencies;
import org.milyn.edi.unedifact.d98a.common.PercentageDetails;
import org.milyn.edi.unedifact.d98a.common.AccountIdentification;
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 SequenceDetails sequenceDetails;
private IndexDetails indexDetails;
private List reference;
private List monetaryAmount;
private List freeText;
private List dateTimePeriod;
private List quantity;
private List currencies;
private List percentageDetails;
private List accountIdentification;
private List segmentGroup5;
private List segmentGroup7;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(sequenceDetails != null) {
nodeWriter.write("SEQ");
nodeWriter.write(delimiters.getField());
sequenceDetails.write(nodeWriter, delimiters);
}
if(indexDetails != null) {
nodeWriter.write("IND");
nodeWriter.write(delimiters.getField());
indexDetails.write(nodeWriter, delimiters);
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(quantity != null && !quantity.isEmpty()) {
for(Quantity quantityInst : quantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantityInst.write(nodeWriter, delimiters);
}
}
if(currencies != null && !currencies.isEmpty()) {
for(Currencies currenciesInst : currencies) {
nodeWriter.write("CUX");
nodeWriter.write(delimiters.getField());
currenciesInst.write(nodeWriter, delimiters);
}
}
if(percentageDetails != null && !percentageDetails.isEmpty()) {
for(PercentageDetails percentageDetailsInst : percentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetailsInst.write(nodeWriter, delimiters);
}
}
if(accountIdentification != null && !accountIdentification.isEmpty()) {
for(AccountIdentification accountIdentificationInst : accountIdentification) {
nodeWriter.write("CPT");
nodeWriter.write(delimiters.getField());
accountIdentificationInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
segmentGroup5Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
segmentGroup7Inst.write(nodeWriter, delimiters);
}
}
}
public SequenceDetails getSequenceDetails() {
return sequenceDetails;
}
public SegmentGroup4 setSequenceDetails(SequenceDetails sequenceDetails) {
this.sequenceDetails = sequenceDetails; return this;
}
public IndexDetails getIndexDetails() {
return indexDetails;
}
public SegmentGroup4 setIndexDetails(IndexDetails indexDetails) {
this.indexDetails = indexDetails; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup4 setReference(List reference) {
this.reference = reference; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup4 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup4 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup4 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getQuantity() {
return quantity;
}
public SegmentGroup4 setQuantity(List quantity) {
this.quantity = quantity; return this;
}
public List getCurrencies() {
return currencies;
}
public SegmentGroup4 setCurrencies(List currencies) {
this.currencies = currencies; return this;
}
public List getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup4 setPercentageDetails(List percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public List getAccountIdentification() {
return accountIdentification;
}
public SegmentGroup4 setAccountIdentification(List accountIdentification) {
this.accountIdentification = accountIdentification; return this;
}
public List getSegmentGroup5() {
return segmentGroup5;
}
public SegmentGroup4 setSegmentGroup5(List segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
public List getSegmentGroup7() {
return segmentGroup7;
}
public SegmentGroup4 setSegmentGroup7(List segmentGroup7) {
this.segmentGroup7 = segmentGroup7; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy