org.milyn.edi.unedifact.d97a.VATDEC.SegmentGroup1 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d97a.VATDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d97a.common.NADNameAndAddress;
import java.util.List;
import org.milyn.edi.unedifact.d97a.common.FIIFinancialInstitutionInformation;
import org.milyn.edi.unedifact.d97a.common.PAIPaymentInstructions;
import org.milyn.edi.unedifact.d97a.common.GISGeneralIndicator;
import org.milyn.edi.unedifact.d97a.common.LOCPlaceLocationIdentification;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup1 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private NADNameAndAddress nADNameAndAddress;
private List segmentGroup2;
private List segmentGroup3;
private List fIIFinancialInstitutionInformation;
private List pAIPaymentInstructions;
private List gISGeneralIndicator;
private List lOCPlaceLocationIdentification;
private List segmentGroup4;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(nADNameAndAddress != null) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nADNameAndAddress.write(nodeWriter, delimiters);
}
if(segmentGroup2 != null && !segmentGroup2.isEmpty()) {
for(SegmentGroup2 segmentGroup2Inst : segmentGroup2) {
segmentGroup2Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
segmentGroup3Inst.write(nodeWriter, delimiters);
}
}
if(fIIFinancialInstitutionInformation != null && !fIIFinancialInstitutionInformation.isEmpty()) {
for(FIIFinancialInstitutionInformation fIIFinancialInstitutionInformationInst : fIIFinancialInstitutionInformation) {
nodeWriter.write("FII");
nodeWriter.write(delimiters.getField());
fIIFinancialInstitutionInformationInst.write(nodeWriter, delimiters);
}
}
if(pAIPaymentInstructions != null && !pAIPaymentInstructions.isEmpty()) {
for(PAIPaymentInstructions pAIPaymentInstructionsInst : pAIPaymentInstructions) {
nodeWriter.write("PAI");
nodeWriter.write(delimiters.getField());
pAIPaymentInstructionsInst.write(nodeWriter, delimiters);
}
}
if(gISGeneralIndicator != null && !gISGeneralIndicator.isEmpty()) {
for(GISGeneralIndicator gISGeneralIndicatorInst : gISGeneralIndicator) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
gISGeneralIndicatorInst.write(nodeWriter, delimiters);
}
}
if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
segmentGroup4Inst.write(nodeWriter, delimiters);
}
}
}
public NADNameAndAddress getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup1 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public List getSegmentGroup2() {
return segmentGroup2;
}
public SegmentGroup1 setSegmentGroup2(List segmentGroup2) {
this.segmentGroup2 = segmentGroup2; return this;
}
public List getSegmentGroup3() {
return segmentGroup3;
}
public SegmentGroup1 setSegmentGroup3(List segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
public List getFIIFinancialInstitutionInformation() {
return fIIFinancialInstitutionInformation;
}
public SegmentGroup1 setFIIFinancialInstitutionInformation(List fIIFinancialInstitutionInformation) {
this.fIIFinancialInstitutionInformation = fIIFinancialInstitutionInformation; return this;
}
public List getPAIPaymentInstructions() {
return pAIPaymentInstructions;
}
public SegmentGroup1 setPAIPaymentInstructions(List pAIPaymentInstructions) {
this.pAIPaymentInstructions = pAIPaymentInstructions; return this;
}
public List getGISGeneralIndicator() {
return gISGeneralIndicator;
}
public SegmentGroup1 setGISGeneralIndicator(List gISGeneralIndicator) {
this.gISGeneralIndicator = gISGeneralIndicator; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup1 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public SegmentGroup1 setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
}