org.milyn.edi.unedifact.d05a.PROINQ.SegmentGroup6 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.PROINQ;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.InformationRequired;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.AdditionalProductId;
import org.milyn.edi.unedifact.d05a.common.ItemDescription;
import org.milyn.edi.unedifact.d05a.common.Measurements;
import org.milyn.edi.unedifact.d05a.common.NameAndAddress;
import org.milyn.edi.unedifact.d05a.common.ProductGroupInformation;
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private InformationRequired informationRequired;
private List additionalProductId;
private List itemDescription;
private List measurements;
private List nameAndAddress;
private List productGroupInformation;
private List dateTimePeriod;
private List segmentGroup7;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(informationRequired != null) {
nodeWriter.write("IRQ");
nodeWriter.write(delimiters.getField());
informationRequired.write(nodeWriter, delimiters);
}
if(additionalProductId != null && !additionalProductId.isEmpty()) {
for(AdditionalProductId additionalProductIdInst : additionalProductId) {
nodeWriter.write("PIA");
nodeWriter.write(delimiters.getField());
additionalProductIdInst.write(nodeWriter, delimiters);
}
}
if(itemDescription != null && !itemDescription.isEmpty()) {
for(ItemDescription itemDescriptionInst : itemDescription) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
itemDescriptionInst.write(nodeWriter, delimiters);
}
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(nameAndAddress != null && !nameAndAddress.isEmpty()) {
for(NameAndAddress nameAndAddressInst : nameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddressInst.write(nodeWriter, delimiters);
}
}
if(productGroupInformation != null && !productGroupInformation.isEmpty()) {
for(ProductGroupInformation productGroupInformationInst : productGroupInformation) {
nodeWriter.write("PGI");
nodeWriter.write(delimiters.getField());
productGroupInformationInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
segmentGroup7Inst.write(nodeWriter, delimiters);
}
}
}
public InformationRequired getInformationRequired() {
return informationRequired;
}
public SegmentGroup6 setInformationRequired(InformationRequired informationRequired) {
this.informationRequired = informationRequired; return this;
}
public List getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup6 setAdditionalProductId(List additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public List getItemDescription() {
return itemDescription;
}
public SegmentGroup6 setItemDescription(List itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup6 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup6 setNameAndAddress(List nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getProductGroupInformation() {
return productGroupInformation;
}
public SegmentGroup6 setProductGroupInformation(List productGroupInformation) {
this.productGroupInformation = productGroupInformation; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup6 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getSegmentGroup7() {
return segmentGroup7;
}
public SegmentGroup6 setSegmentGroup7(List segmentGroup7) {
this.segmentGroup7 = segmentGroup7; return this;
}
}