org.virtuslab.edi.unedifact.d99a.CHACCO.SegmentGroup5 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.virtuslab.edi.unedifact.d99a.CHACCO;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.virtuslab.edi.unedifact.d99a.common.RELRelationship;
import org.virtuslab.edi.unedifact.d99a.common.CPTAccountIdentification;
import org.virtuslab.edi.unedifact.d99a.common.FIIFinancialInstitutionInformation;
import org.virtuslab.edi.unedifact.d99a.common.PATPaymentTermsBasis;
import org.virtuslab.edi.unedifact.d99a.common.PAIPaymentInstructions;
import java.util.List;
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 RELRelationship rELRelationship;
private CPTAccountIdentification cPTAccountIdentification;
private FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation;
private PATPaymentTermsBasis pATPaymentTermsBasis;
private PAIPaymentInstructions pAIPaymentInstructions;
private List segmentGroup6;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(rELRelationship != null) {
nodeWriter.write("REL");
nodeWriter.write(delimiters.getField());
rELRelationship.write(nodeWriter, delimiters);
}
if(cPTAccountIdentification != null) {
nodeWriter.write("CPT");
nodeWriter.write(delimiters.getField());
cPTAccountIdentification.write(nodeWriter, delimiters);
}
if(fIIFinancialInstitutionInformation != null) {
nodeWriter.write("FII");
nodeWriter.write(delimiters.getField());
fIIFinancialInstitutionInformation.write(nodeWriter, delimiters);
}
if(pATPaymentTermsBasis != null) {
nodeWriter.write("PAT");
nodeWriter.write(delimiters.getField());
pATPaymentTermsBasis.write(nodeWriter, delimiters);
}
if(pAIPaymentInstructions != null) {
nodeWriter.write("PAI");
nodeWriter.write(delimiters.getField());
pAIPaymentInstructions.write(nodeWriter, delimiters);
}
if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
segmentGroup6Inst.write(nodeWriter, delimiters);
}
}
}
public RELRelationship getRELRelationship() {
return rELRelationship;
}
public SegmentGroup5 setRELRelationship(RELRelationship rELRelationship) {
this.rELRelationship = rELRelationship; return this;
}
public CPTAccountIdentification getCPTAccountIdentification() {
return cPTAccountIdentification;
}
public SegmentGroup5 setCPTAccountIdentification(CPTAccountIdentification cPTAccountIdentification) {
this.cPTAccountIdentification = cPTAccountIdentification; return this;
}
public FIIFinancialInstitutionInformation getFIIFinancialInstitutionInformation() {
return fIIFinancialInstitutionInformation;
}
public SegmentGroup5 setFIIFinancialInstitutionInformation(FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation) {
this.fIIFinancialInstitutionInformation = fIIFinancialInstitutionInformation; return this;
}
public PATPaymentTermsBasis getPATPaymentTermsBasis() {
return pATPaymentTermsBasis;
}
public SegmentGroup5 setPATPaymentTermsBasis(PATPaymentTermsBasis pATPaymentTermsBasis) {
this.pATPaymentTermsBasis = pATPaymentTermsBasis; return this;
}
public PAIPaymentInstructions getPAIPaymentInstructions() {
return pAIPaymentInstructions;
}
public SegmentGroup5 setPAIPaymentInstructions(PAIPaymentInstructions pAIPaymentInstructions) {
this.pAIPaymentInstructions = pAIPaymentInstructions; return this;
}
public List getSegmentGroup6() {
return segmentGroup6;
}
public SegmentGroup5 setSegmentGroup6(List segmentGroup6) {
this.segmentGroup6 = segmentGroup6; return this;
}
}