org.milyn.edi.unedifact.d96a.SLSRPT.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.SLSRPT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.LineItem;
import java.util.List;
import org.milyn.edi.unedifact.d96a.common.AdditionalProductId;
import org.milyn.edi.unedifact.d96a.common.ItemDescription;
import org.milyn.edi.unedifact.d96a.common.Package;
import org.milyn.edi.unedifact.d96a.common.Reference;
import org.milyn.edi.unedifact.d96a.common.DocumentMessageDetails;
import org.milyn.edi.unedifact.d96a.common.AdditionalInformation;
import org.milyn.edi.unedifact.d96a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d96a.common.PriceDetails;
import org.milyn.edi.unedifact.d96a.common.GoodsIdentityNumber;
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 LineItem lineItem;
private List additionalProductId;
private List itemDescription;
private List _package;
private List reference;
private List documentMessageDetails;
private List additionalInformation;
private List monetaryAmount;
private List priceDetails;
private List goodsIdentityNumber;
private List segmentGroup8;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(lineItem != null) {
nodeWriter.write("LIN");
nodeWriter.write(delimiters.getField());
lineItem.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(_package != null && !_package.isEmpty()) {
for(Package _packageInst : _package) {
nodeWriter.write("PAC");
nodeWriter.write(delimiters.getField());
_packageInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(documentMessageDetails != null && !documentMessageDetails.isEmpty()) {
for(DocumentMessageDetails documentMessageDetailsInst : documentMessageDetails) {
nodeWriter.write("DOC");
nodeWriter.write(delimiters.getField());
documentMessageDetailsInst.write(nodeWriter, delimiters);
}
}
if(additionalInformation != null && !additionalInformation.isEmpty()) {
for(AdditionalInformation additionalInformationInst : additionalInformation) {
nodeWriter.write("ALI");
nodeWriter.write(delimiters.getField());
additionalInformationInst.write(nodeWriter, delimiters);
}
}
if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(priceDetails != null && !priceDetails.isEmpty()) {
for(PriceDetails priceDetailsInst : priceDetails) {
nodeWriter.write("PRI");
nodeWriter.write(delimiters.getField());
priceDetailsInst.write(nodeWriter, delimiters);
}
}
if(goodsIdentityNumber != null && !goodsIdentityNumber.isEmpty()) {
for(GoodsIdentityNumber goodsIdentityNumberInst : goodsIdentityNumber) {
nodeWriter.write("GIN");
nodeWriter.write(delimiters.getField());
goodsIdentityNumberInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
}
public LineItem getLineItem() {
return lineItem;
}
public SegmentGroup7 setLineItem(LineItem lineItem) {
this.lineItem = lineItem; return this;
}
public List getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup7 setAdditionalProductId(List additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public List getItemDescription() {
return itemDescription;
}
public SegmentGroup7 setItemDescription(List itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List get_package() {
return _package;
}
public SegmentGroup7 set_package(List _package) {
this._package = _package; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup7 setReference(List reference) {
this.reference = reference; return this;
}
public List getDocumentMessageDetails() {
return documentMessageDetails;
}
public SegmentGroup7 setDocumentMessageDetails(List documentMessageDetails) {
this.documentMessageDetails = documentMessageDetails; return this;
}
public List getAdditionalInformation() {
return additionalInformation;
}
public SegmentGroup7 setAdditionalInformation(List additionalInformation) {
this.additionalInformation = additionalInformation; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup7 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getPriceDetails() {
return priceDetails;
}
public SegmentGroup7 setPriceDetails(List priceDetails) {
this.priceDetails = priceDetails; return this;
}
public List getGoodsIdentityNumber() {
return goodsIdentityNumber;
}
public SegmentGroup7 setGoodsIdentityNumber(List goodsIdentityNumber) {
this.goodsIdentityNumber = goodsIdentityNumber; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
}