org.milyn.edi.unedifact.d13a.MEDPRE.SegmentGroup17 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d13a.MEDPRE;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d13a.common.FCAFinancialChargesAllocation;
import java.util.List;
import org.milyn.edi.unedifact.d13a.common.PNAPartyIdentification;
import org.milyn.edi.unedifact.d13a.common.IDEIdentity;
import org.milyn.edi.unedifact.d13a.common.RCSRequirementsAndConditions;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup17 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private FCAFinancialChargesAllocation fCAFinancialChargesAllocation;
private List pNAPartyIdentification;
private List iDEIdentity;
private List rCSRequirementsAndConditions;
private List segmentGroup18;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(fCAFinancialChargesAllocation != null) {
nodeWriter.write("FCA");
nodeWriter.write(delimiters.getField());
fCAFinancialChargesAllocation.write(nodeWriter, delimiters);
}
if(pNAPartyIdentification != null && !pNAPartyIdentification.isEmpty()) {
for(PNAPartyIdentification pNAPartyIdentificationInst : pNAPartyIdentification) {
nodeWriter.write("PNA");
nodeWriter.write(delimiters.getField());
pNAPartyIdentificationInst.write(nodeWriter, delimiters);
}
}
if(iDEIdentity != null && !iDEIdentity.isEmpty()) {
for(IDEIdentity iDEIdentityInst : iDEIdentity) {
nodeWriter.write("IDE");
nodeWriter.write(delimiters.getField());
iDEIdentityInst.write(nodeWriter, delimiters);
}
}
if(rCSRequirementsAndConditions != null && !rCSRequirementsAndConditions.isEmpty()) {
for(RCSRequirementsAndConditions rCSRequirementsAndConditionsInst : rCSRequirementsAndConditions) {
nodeWriter.write("RCS");
nodeWriter.write(delimiters.getField());
rCSRequirementsAndConditionsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
segmentGroup18Inst.write(nodeWriter, delimiters);
}
}
}
public FCAFinancialChargesAllocation getFCAFinancialChargesAllocation() {
return fCAFinancialChargesAllocation;
}
public SegmentGroup17 setFCAFinancialChargesAllocation(FCAFinancialChargesAllocation fCAFinancialChargesAllocation) {
this.fCAFinancialChargesAllocation = fCAFinancialChargesAllocation; return this;
}
public List getPNAPartyIdentification() {
return pNAPartyIdentification;
}
public SegmentGroup17 setPNAPartyIdentification(List pNAPartyIdentification) {
this.pNAPartyIdentification = pNAPartyIdentification; return this;
}
public List getIDEIdentity() {
return iDEIdentity;
}
public SegmentGroup17 setIDEIdentity(List iDEIdentity) {
this.iDEIdentity = iDEIdentity; return this;
}
public List getRCSRequirementsAndConditions() {
return rCSRequirementsAndConditions;
}
public SegmentGroup17 setRCSRequirementsAndConditions(List rCSRequirementsAndConditions) {
this.rCSRequirementsAndConditions = rCSRequirementsAndConditions; return this;
}
public List getSegmentGroup18() {
return segmentGroup18;
}
public SegmentGroup17 setSegmentGroup18(List segmentGroup18) {
this.segmentGroup18 = segmentGroup18; return this;
}
}