org.milyn.edi.unedifact.d99b.MEDPRE.SegmentGroup12 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.MEDPRE;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.FCAFinancialChargesAllocation;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.PNAPartyIdentification;
import org.milyn.edi.unedifact.d99b.common.IDEIdentity;
import org.milyn.edi.unedifact.d99b.common.RCSRequirementsAndConditions;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup12 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private FCAFinancialChargesAllocation fCAFinancialChargesAllocation;
private List pNAPartyIdentification;
private List iDEIdentity;
private List rCSRequirementsAndConditions;
private List segmentGroup13;
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(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
segmentGroup13Inst.write(nodeWriter, delimiters);
}
}
}
public FCAFinancialChargesAllocation getFCAFinancialChargesAllocation() {
return fCAFinancialChargesAllocation;
}
public SegmentGroup12 setFCAFinancialChargesAllocation(FCAFinancialChargesAllocation fCAFinancialChargesAllocation) {
this.fCAFinancialChargesAllocation = fCAFinancialChargesAllocation; return this;
}
public List getPNAPartyIdentification() {
return pNAPartyIdentification;
}
public SegmentGroup12 setPNAPartyIdentification(List pNAPartyIdentification) {
this.pNAPartyIdentification = pNAPartyIdentification; return this;
}
public List getIDEIdentity() {
return iDEIdentity;
}
public SegmentGroup12 setIDEIdentity(List iDEIdentity) {
this.iDEIdentity = iDEIdentity; return this;
}
public List getRCSRequirementsAndConditions() {
return rCSRequirementsAndConditions;
}
public SegmentGroup12 setRCSRequirementsAndConditions(List rCSRequirementsAndConditions) {
this.rCSRequirementsAndConditions = rCSRequirementsAndConditions; return this;
}
public List getSegmentGroup13() {
return segmentGroup13;
}
public SegmentGroup12 setSegmentGroup13(List segmentGroup13) {
this.segmentGroup13 = segmentGroup13; return this;
}
}