org.milyn.edi.unedifact.d98a.CONDRO.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.CONDRO;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.StructureIdentification;
import org.milyn.edi.unedifact.d98a.common.GeneralIndicator;
import org.milyn.edi.unedifact.d98a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d98a.common.ItemDescription;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.Reference;
import org.milyn.edi.unedifact.d98a.common.Quantity;
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 StructureIdentification structureIdentification;
private GeneralIndicator generalIndicator;
private DateTimePeriod dateTimePeriod;
private ItemDescription itemDescription;
private List reference;
private Quantity quantity;
private SegmentGroup8 segmentGroup8;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(structureIdentification != null) {
nodeWriter.write("BII");
nodeWriter.write(delimiters.getField());
structureIdentification.write(nodeWriter, delimiters);
}
if(generalIndicator != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicator.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriod.write(nodeWriter, delimiters);
}
if(itemDescription != null) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
itemDescription.write(nodeWriter, delimiters);
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(quantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantity.write(nodeWriter, delimiters);
}
if(segmentGroup8 != null) {
segmentGroup8.write(nodeWriter, delimiters);
}
}
public StructureIdentification getStructureIdentification() {
return structureIdentification;
}
public SegmentGroup7 setStructureIdentification(StructureIdentification structureIdentification) {
this.structureIdentification = structureIdentification; return this;
}
public GeneralIndicator getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup7 setGeneralIndicator(GeneralIndicator generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
public DateTimePeriod getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup7 setDateTimePeriod(DateTimePeriod dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public ItemDescription getItemDescription() {
return itemDescription;
}
public SegmentGroup7 setItemDescription(ItemDescription itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup7 setReference(List reference) {
this.reference = reference; return this;
}
public Quantity getQuantity() {
return quantity;
}
public SegmentGroup7 setQuantity(Quantity quantity) {
this.quantity = quantity; return this;
}
public SegmentGroup8 getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(SegmentGroup8 segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy