org.milyn.edi.unedifact.d05a.CONPVA.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.CONPVA;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.StructureIdentification;
import org.milyn.edi.unedifact.d05a.common.RequirementsAndConditions;
import org.milyn.edi.unedifact.d05a.common.PaymentInstructions;
import org.milyn.edi.unedifact.d05a.common.PaymentTerms;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.PercentageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private StructureIdentification structureIdentification;
private RequirementsAndConditions requirementsAndConditions;
private PaymentInstructions paymentInstructions;
private PaymentTerms paymentTerms;
private List percentageDetails;
private List segmentGroup9;
private List segmentGroup10;
private List segmentGroup19;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(structureIdentification != null) {
nodeWriter.write("BII");
nodeWriter.write(delimiters.getField());
structureIdentification.write(nodeWriter, delimiters);
}
if(requirementsAndConditions != null) {
nodeWriter.write("RCS");
nodeWriter.write(delimiters.getField());
requirementsAndConditions.write(nodeWriter, delimiters);
}
if(paymentInstructions != null) {
nodeWriter.write("PAI");
nodeWriter.write(delimiters.getField());
paymentInstructions.write(nodeWriter, delimiters);
}
if(paymentTerms != null) {
nodeWriter.write("PYT");
nodeWriter.write(delimiters.getField());
paymentTerms.write(nodeWriter, delimiters);
}
if(percentageDetails != null && !percentageDetails.isEmpty()) {
for(PercentageDetails percentageDetailsInst : percentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetailsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
segmentGroup9Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup19 != null && !segmentGroup19.isEmpty()) {
for(SegmentGroup19 segmentGroup19Inst : segmentGroup19) {
segmentGroup19Inst.write(nodeWriter, delimiters);
}
}
}
public StructureIdentification getStructureIdentification() {
return structureIdentification;
}
public SegmentGroup8 setStructureIdentification(StructureIdentification structureIdentification) {
this.structureIdentification = structureIdentification; return this;
}
public RequirementsAndConditions getRequirementsAndConditions() {
return requirementsAndConditions;
}
public SegmentGroup8 setRequirementsAndConditions(RequirementsAndConditions requirementsAndConditions) {
this.requirementsAndConditions = requirementsAndConditions; return this;
}
public PaymentInstructions getPaymentInstructions() {
return paymentInstructions;
}
public SegmentGroup8 setPaymentInstructions(PaymentInstructions paymentInstructions) {
this.paymentInstructions = paymentInstructions; return this;
}
public PaymentTerms getPaymentTerms() {
return paymentTerms;
}
public SegmentGroup8 setPaymentTerms(PaymentTerms paymentTerms) {
this.paymentTerms = paymentTerms; return this;
}
public List getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup8 setPercentageDetails(List percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public List getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup8 setSegmentGroup9(List segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup8 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public List getSegmentGroup19() {
return segmentGroup19;
}
public SegmentGroup8 setSegmentGroup19(List segmentGroup19) {
this.segmentGroup19 = segmentGroup19; return this;
}
}