org.milyn.edi.unedifact.d99b.RECADV.SegmentGroup8 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.RECADV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.CDIPhysicalOrLogicalState;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.INPPartiesAndInstruction;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 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 SegmentGroup8 setCDIPhysicalOrLogicalState(CDIPhysicalOrLogicalState cDIPhysicalOrLogicalState) {
this.cDIPhysicalOrLogicalState = cDIPhysicalOrLogicalState; return this;
}
public List getINPPartiesAndInstruction() {
return iNPPartiesAndInstruction;
}
public SegmentGroup8 setINPPartiesAndInstruction(List iNPPartiesAndInstruction) {
this.iNPPartiesAndInstruction = iNPPartiesAndInstruction; return this;
}
}