org.milyn.edi.unedifact.d98a.RESMSG.SegmentGroup5 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.RESMSG;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.ItemDescription;
import org.milyn.edi.unedifact.d98a.common.Quantity;
import org.milyn.edi.unedifact.d98a.common.Language;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d98a.common.NameAndAddress;
import org.milyn.edi.unedifact.d98a.common.Reference;
import org.milyn.edi.unedifact.d98a.common.PercentageDetails;
import org.milyn.edi.unedifact.d98a.common.PaymentInstructions;
import org.milyn.edi.unedifact.d98a.common.PaymentTermsBasis;
import org.milyn.edi.unedifact.d98a.common.FinancialInstitutionInformation;
import org.milyn.edi.unedifact.d98a.common.Dimensions;
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 SegmentGroup5 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ItemDescription itemDescription;
private Quantity quantity;
private Language language;
private List dateTimePeriod;
private NameAndAddress nameAndAddress;
private List reference;
private PercentageDetails percentageDetails;
private PaymentInstructions paymentInstructions;
private List paymentTermsBasis;
private List financialInstitutionInformation;
private List dimensions;
private List freeText;
private List segmentGroup6;
private List segmentGroup7;
private List segmentGroup8;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(itemDescription != null) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
itemDescription.write(nodeWriter, delimiters);
}
if(quantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantity.write(nodeWriter, delimiters);
}
if(language != null) {
nodeWriter.write("LAN");
nodeWriter.write(delimiters.getField());
language.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(nameAndAddress != null) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddress.write(nodeWriter, delimiters);
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(percentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetails.write(nodeWriter, delimiters);
}
if(paymentInstructions != null) {
nodeWriter.write("PAI");
nodeWriter.write(delimiters.getField());
paymentInstructions.write(nodeWriter, delimiters);
}
if(paymentTermsBasis != null && !paymentTermsBasis.isEmpty()) {
for(PaymentTermsBasis paymentTermsBasisInst : paymentTermsBasis) {
nodeWriter.write("PAT");
nodeWriter.write(delimiters.getField());
paymentTermsBasisInst.write(nodeWriter, delimiters);
}
}
if(financialInstitutionInformation != null && !financialInstitutionInformation.isEmpty()) {
for(FinancialInstitutionInformation financialInstitutionInformationInst : financialInstitutionInformation) {
nodeWriter.write("FII");
nodeWriter.write(delimiters.getField());
financialInstitutionInformationInst.write(nodeWriter, delimiters);
}
}
if(dimensions != null && !dimensions.isEmpty()) {
for(Dimensions dimensionsInst : dimensions) {
nodeWriter.write("DIM");
nodeWriter.write(delimiters.getField());
dimensionsInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
segmentGroup6Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
segmentGroup7Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
}
public ItemDescription getItemDescription() {
return itemDescription;
}
public SegmentGroup5 setItemDescription(ItemDescription itemDescription) {
this.itemDescription = itemDescription; return this;
}
public Quantity getQuantity() {
return quantity;
}
public SegmentGroup5 setQuantity(Quantity quantity) {
this.quantity = quantity; return this;
}
public Language getLanguage() {
return language;
}
public SegmentGroup5 setLanguage(Language language) {
this.language = language; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup5 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public NameAndAddress getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup5 setNameAndAddress(NameAndAddress nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup5 setReference(List reference) {
this.reference = reference; return this;
}
public PercentageDetails getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup5 setPercentageDetails(PercentageDetails percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public PaymentInstructions getPaymentInstructions() {
return paymentInstructions;
}
public SegmentGroup5 setPaymentInstructions(PaymentInstructions paymentInstructions) {
this.paymentInstructions = paymentInstructions; return this;
}
public List getPaymentTermsBasis() {
return paymentTermsBasis;
}
public SegmentGroup5 setPaymentTermsBasis(List paymentTermsBasis) {
this.paymentTermsBasis = paymentTermsBasis; return this;
}
public List getFinancialInstitutionInformation() {
return financialInstitutionInformation;
}
public SegmentGroup5 setFinancialInstitutionInformation(List financialInstitutionInformation) {
this.financialInstitutionInformation = financialInstitutionInformation; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup5 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup5 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup6() {
return segmentGroup6;
}
public SegmentGroup5 setSegmentGroup6(List segmentGroup6) {
this.segmentGroup6 = segmentGroup6; return this;
}
public List getSegmentGroup7() {
return segmentGroup7;
}
public SegmentGroup5 setSegmentGroup7(List segmentGroup7) {
this.segmentGroup7 = segmentGroup7; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup5 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy