org.milyn.edi.unedifact.d99b.CONEST.SegmentGroup3 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.CONEST;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.BIIStructureIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.IMDItemDescription;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup3 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BIIStructureIdentification bIIStructureIdentification;
private List iMDItemDescription;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(bIIStructureIdentification != null) {
nodeWriter.write("BII");
nodeWriter.write(delimiters.getField());
bIIStructureIdentification.write(nodeWriter, delimiters);
}
if(iMDItemDescription != null && !iMDItemDescription.isEmpty()) {
for(IMDItemDescription iMDItemDescriptionInst : iMDItemDescription) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
iMDItemDescriptionInst.write(nodeWriter, delimiters);
}
}
}
public BIIStructureIdentification getBIIStructureIdentification() {
return bIIStructureIdentification;
}
public SegmentGroup3 setBIIStructureIdentification(BIIStructureIdentification bIIStructureIdentification) {
this.bIIStructureIdentification = bIIStructureIdentification; return this;
}
public List getIMDItemDescription() {
return iMDItemDescription;
}
public SegmentGroup3 setIMDItemDescription(List iMDItemDescription) {
this.iMDItemDescription = iMDItemDescription; return this;
}
}