org.milyn.edi.unedifact.d05a.RECADV.SegmentGroup15 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.RECADV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.CDIPhysicalOrLogicalState;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.INPPartiesAndInstruction;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup15 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private CDIPhysicalOrLogicalState cDIPhysicalOrLogicalState;
private List iNPPartiesAndInstruction;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(cDIPhysicalOrLogicalState != null) {
nodeWriter.write("CDI");
nodeWriter.write(delimiters.getField());
cDIPhysicalOrLogicalState.write(nodeWriter, delimiters);
}
if(iNPPartiesAndInstruction != null && !iNPPartiesAndInstruction.isEmpty()) {
for(INPPartiesAndInstruction iNPPartiesAndInstructionInst : iNPPartiesAndInstruction) {
nodeWriter.write("INP");
nodeWriter.write(delimiters.getField());
iNPPartiesAndInstructionInst.write(nodeWriter, delimiters);
}
}
}
public CDIPhysicalOrLogicalState getCDIPhysicalOrLogicalState() {
return cDIPhysicalOrLogicalState;
}
public SegmentGroup15 setCDIPhysicalOrLogicalState(CDIPhysicalOrLogicalState cDIPhysicalOrLogicalState) {
this.cDIPhysicalOrLogicalState = cDIPhysicalOrLogicalState; return this;
}
public List getINPPartiesAndInstruction() {
return iNPPartiesAndInstruction;
}
public SegmentGroup15 setINPPartiesAndInstruction(List iNPPartiesAndInstruction) {
this.iNPPartiesAndInstruction = iNPPartiesAndInstruction; return this;
}
}