org.milyn.edi.unedifact.d97a.RECADV.SegmentGroup12 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d97a.RECADV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d97a.common.CDIPhysicalOrLogicalState;
import java.util.List;
import org.milyn.edi.unedifact.d97a.common.INPPartiesToInstruction;
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 CDIPhysicalOrLogicalState cDIPhysicalOrLogicalState;
private List iNPPartiesToInstruction;
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(iNPPartiesToInstruction != null && !iNPPartiesToInstruction.isEmpty()) {
for(INPPartiesToInstruction iNPPartiesToInstructionInst : iNPPartiesToInstruction) {
nodeWriter.write("INP");
nodeWriter.write(delimiters.getField());
iNPPartiesToInstructionInst.write(nodeWriter, delimiters);
}
}
}
public CDIPhysicalOrLogicalState getCDIPhysicalOrLogicalState() {
return cDIPhysicalOrLogicalState;
}
public SegmentGroup12 setCDIPhysicalOrLogicalState(CDIPhysicalOrLogicalState cDIPhysicalOrLogicalState) {
this.cDIPhysicalOrLogicalState = cDIPhysicalOrLogicalState; return this;
}
public List getINPPartiesToInstruction() {
return iNPPartiesToInstruction;
}
public SegmentGroup12 setINPPartiesToInstruction(List iNPPartiesToInstruction) {
this.iNPPartiesToInstruction = iNPPartiesToInstruction; return this;
}
}