org.milyn.edi.unedifact.d98a.CUSDEC.SegmentGroup21 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.LineItem;
import org.milyn.edi.unedifact.d98a.common.AdditionalProductId;
import org.milyn.edi.unedifact.d98a.common.Quantity;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.PriceDetails;
import org.milyn.edi.unedifact.d98a.common.PercentageDetails;
import org.milyn.edi.unedifact.d98a.common.Measurements;
import org.milyn.edi.unedifact.d98a.common.QuantityVariances;
import org.milyn.edi.unedifact.d98a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d98a.common.NameAndAddress;
import org.milyn.edi.unedifact.d98a.common.RelatedIdentificationNumbers;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup21 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private LineItem lineItem;
private AdditionalProductId additionalProductId;
private Quantity quantity;
private List priceDetails;
private PercentageDetails percentageDetails;
private List measurements;
private List quantityVariances;
private List monetaryAmount;
private List nameAndAddress;
private List relatedIdentificationNumbers;
private List segmentGroup22;
private List segmentGroup23;
private SegmentGroup25 segmentGroup25;
private List segmentGroup26;
private List segmentGroup27;
private List segmentGroup28;
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) {
nodeWriter.write("PIA");
nodeWriter.write(delimiters.getField());
additionalProductId.write(nodeWriter, delimiters);
}
if(quantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantity.write(nodeWriter, delimiters);
}
if(priceDetails != null && !priceDetails.isEmpty()) {
for(PriceDetails priceDetailsInst : priceDetails) {
nodeWriter.write("PRI");
nodeWriter.write(delimiters.getField());
priceDetailsInst.write(nodeWriter, delimiters);
}
}
if(percentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetails.write(nodeWriter, delimiters);
}
if(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(quantityVariances != null && !quantityVariances.isEmpty()) {
for(QuantityVariances quantityVariancesInst : quantityVariances) {
nodeWriter.write("QVR");
nodeWriter.write(delimiters.getField());
quantityVariancesInst.write(nodeWriter, delimiters);
}
}
if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(nameAndAddress != null && !nameAndAddress.isEmpty()) {
for(NameAndAddress nameAndAddressInst : nameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddressInst.write(nodeWriter, delimiters);
}
}
if(relatedIdentificationNumbers != null && !relatedIdentificationNumbers.isEmpty()) {
for(RelatedIdentificationNumbers relatedIdentificationNumbersInst : relatedIdentificationNumbers) {
nodeWriter.write("GIR");
nodeWriter.write(delimiters.getField());
relatedIdentificationNumbersInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
segmentGroup22Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
segmentGroup23Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup25 != null) {
segmentGroup25.write(nodeWriter, delimiters);
}
if(segmentGroup26 != null && !segmentGroup26.isEmpty()) {
for(SegmentGroup26 segmentGroup26Inst : segmentGroup26) {
segmentGroup26Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup27 != null && !segmentGroup27.isEmpty()) {
for(SegmentGroup27 segmentGroup27Inst : segmentGroup27) {
segmentGroup27Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup28 != null && !segmentGroup28.isEmpty()) {
for(SegmentGroup28 segmentGroup28Inst : segmentGroup28) {
segmentGroup28Inst.write(nodeWriter, delimiters);
}
}
}
public LineItem getLineItem() {
return lineItem;
}
public SegmentGroup21 setLineItem(LineItem lineItem) {
this.lineItem = lineItem; return this;
}
public AdditionalProductId getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup21 setAdditionalProductId(AdditionalProductId additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public Quantity getQuantity() {
return quantity;
}
public SegmentGroup21 setQuantity(Quantity quantity) {
this.quantity = quantity; return this;
}
public List getPriceDetails() {
return priceDetails;
}
public SegmentGroup21 setPriceDetails(List priceDetails) {
this.priceDetails = priceDetails; return this;
}
public PercentageDetails getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup21 setPercentageDetails(PercentageDetails percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup21 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getQuantityVariances() {
return quantityVariances;
}
public SegmentGroup21 setQuantityVariances(List quantityVariances) {
this.quantityVariances = quantityVariances; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup21 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup21 setNameAndAddress(List nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getRelatedIdentificationNumbers() {
return relatedIdentificationNumbers;
}
public SegmentGroup21 setRelatedIdentificationNumbers(List relatedIdentificationNumbers) {
this.relatedIdentificationNumbers = relatedIdentificationNumbers; return this;
}
public List getSegmentGroup22() {
return segmentGroup22;
}
public SegmentGroup21 setSegmentGroup22(List segmentGroup22) {
this.segmentGroup22 = segmentGroup22; return this;
}
public List getSegmentGroup23() {
return segmentGroup23;
}
public SegmentGroup21 setSegmentGroup23(List segmentGroup23) {
this.segmentGroup23 = segmentGroup23; return this;
}
public SegmentGroup25 getSegmentGroup25() {
return segmentGroup25;
}
public SegmentGroup21 setSegmentGroup25(SegmentGroup25 segmentGroup25) {
this.segmentGroup25 = segmentGroup25; return this;
}
public List getSegmentGroup26() {
return segmentGroup26;
}
public SegmentGroup21 setSegmentGroup26(List segmentGroup26) {
this.segmentGroup26 = segmentGroup26; return this;
}
public List getSegmentGroup27() {
return segmentGroup27;
}
public SegmentGroup21 setSegmentGroup27(List segmentGroup27) {
this.segmentGroup27 = segmentGroup27; return this;
}
public List getSegmentGroup28() {
return segmentGroup28;
}
public SegmentGroup21 setSegmentGroup28(List segmentGroup28) {
this.segmentGroup28 = segmentGroup28; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy