org.milyn.edi.unedifact.d99b.BUSCRD.SegmentGroup12 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.BUSCRD;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.ProcessingInformation;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.ItemDescription;
import org.milyn.edi.unedifact.d99b.common.CharacteristicValue;
import org.milyn.edi.unedifact.d99b.common.PercentageDetails;
import org.milyn.edi.unedifact.d99b.common.NumberOfUnits;
import org.milyn.edi.unedifact.d99b.common.Reference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup12 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ProcessingInformation processingInformation;
private List itemDescription;
private List characteristicValue;
private PercentageDetails percentageDetails;
private NumberOfUnits numberOfUnits;
private List reference;
private List segmentGroup13;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(processingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformation.write(nodeWriter, delimiters);
}
if(itemDescription != null && !itemDescription.isEmpty()) {
for(ItemDescription itemDescriptionInst : itemDescription) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
itemDescriptionInst.write(nodeWriter, delimiters);
}
}
if(characteristicValue != null && !characteristicValue.isEmpty()) {
for(CharacteristicValue characteristicValueInst : characteristicValue) {
nodeWriter.write("CAV");
nodeWriter.write(delimiters.getField());
characteristicValueInst.write(nodeWriter, delimiters);
}
}
if(percentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetails.write(nodeWriter, delimiters);
}
if(numberOfUnits != null) {
nodeWriter.write("EQN");
nodeWriter.write(delimiters.getField());
numberOfUnits.write(nodeWriter, delimiters);
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
segmentGroup13Inst.write(nodeWriter, delimiters);
}
}
}
public ProcessingInformation getProcessingInformation() {
return processingInformation;
}
public SegmentGroup12 setProcessingInformation(ProcessingInformation processingInformation) {
this.processingInformation = processingInformation; return this;
}
public List getItemDescription() {
return itemDescription;
}
public SegmentGroup12 setItemDescription(List itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getCharacteristicValue() {
return characteristicValue;
}
public SegmentGroup12 setCharacteristicValue(List characteristicValue) {
this.characteristicValue = characteristicValue; return this;
}
public PercentageDetails getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup12 setPercentageDetails(PercentageDetails percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public NumberOfUnits getNumberOfUnits() {
return numberOfUnits;
}
public SegmentGroup12 setNumberOfUnits(NumberOfUnits numberOfUnits) {
this.numberOfUnits = numberOfUnits; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup12 setReference(List reference) {
this.reference = reference; return this;
}
public List getSegmentGroup13() {
return segmentGroup13;
}
public SegmentGroup12 setSegmentGroup13(List segmentGroup13) {
this.segmentGroup13 = segmentGroup13; return this;
}
}