org.milyn.edi.unedifact.d95b.CONDRO.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d95b.CONDRO;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d95b.common.BIIStructureIdentification;
import org.milyn.edi.unedifact.d95b.common.GISGeneralIndicator;
import org.milyn.edi.unedifact.d95b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d95b.common.IMDItemDescription;
import java.util.List;
import org.milyn.edi.unedifact.d95b.common.RFFReference;
import org.milyn.edi.unedifact.d95b.common.QTYQuantity;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup7 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BIIStructureIdentification bIIStructureIdentification;
private GISGeneralIndicator gISGeneralIndicator;
private DTMDateTimePeriod dTMDateTimePeriod;
private IMDItemDescription iMDItemDescription;
private List rFFReference;
private QTYQuantity qTYQuantity;
private SegmentGroup8 segmentGroup8;
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(gISGeneralIndicator != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
gISGeneralIndicator.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriod.write(nodeWriter, delimiters);
}
if(iMDItemDescription != null) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
iMDItemDescription.write(nodeWriter, delimiters);
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(qTYQuantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
qTYQuantity.write(nodeWriter, delimiters);
}
if(segmentGroup8 != null) {
segmentGroup8.write(nodeWriter, delimiters);
}
}
public BIIStructureIdentification getBIIStructureIdentification() {
return bIIStructureIdentification;
}
public SegmentGroup7 setBIIStructureIdentification(BIIStructureIdentification bIIStructureIdentification) {
this.bIIStructureIdentification = bIIStructureIdentification; return this;
}
public GISGeneralIndicator getGISGeneralIndicator() {
return gISGeneralIndicator;
}
public SegmentGroup7 setGISGeneralIndicator(GISGeneralIndicator gISGeneralIndicator) {
this.gISGeneralIndicator = gISGeneralIndicator; return this;
}
public DTMDateTimePeriod getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup7 setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public IMDItemDescription getIMDItemDescription() {
return iMDItemDescription;
}
public SegmentGroup7 setIMDItemDescription(IMDItemDescription iMDItemDescription) {
this.iMDItemDescription = iMDItemDescription; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup7 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public QTYQuantity getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup7 setQTYQuantity(QTYQuantity qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public SegmentGroup8 getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(SegmentGroup8 segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
}