org.milyn.edi.unedifact.d03b.RECADV.SegmentGroup37 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d03b.RECADV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d03b.common.PhysicalOrLogicalState;
import java.util.List;
import org.milyn.edi.unedifact.d03b.common.PartiesAndInstruction;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup37 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PhysicalOrLogicalState physicalOrLogicalState;
private List partiesAndInstruction;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(physicalOrLogicalState != null) {
nodeWriter.write("CDI");
nodeWriter.write(delimiters.getField());
physicalOrLogicalState.write(nodeWriter, delimiters);
}
if(partiesAndInstruction != null && !partiesAndInstruction.isEmpty()) {
for(PartiesAndInstruction partiesAndInstructionInst : partiesAndInstruction) {
nodeWriter.write("INP");
nodeWriter.write(delimiters.getField());
partiesAndInstructionInst.write(nodeWriter, delimiters);
}
}
}
public PhysicalOrLogicalState getPhysicalOrLogicalState() {
return physicalOrLogicalState;
}
public SegmentGroup37 setPhysicalOrLogicalState(PhysicalOrLogicalState physicalOrLogicalState) {
this.physicalOrLogicalState = physicalOrLogicalState; return this;
}
public List getPartiesAndInstruction() {
return partiesAndInstruction;
}
public SegmentGroup37 setPartiesAndInstruction(List partiesAndInstruction) {
this.partiesAndInstruction = partiesAndInstruction; return this;
}
}