![JAR search and dependency download from the Maven repository](/logo.png)
org.milyn.edi.unedifact.d06b.IMPDEF.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.IMPDEF;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.DataElementUsageDetails;
import org.milyn.edi.unedifact.d06b.common.SimpleDataElementDetails;
import org.milyn.edi.unedifact.d06b.common.EditingDetails;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.ItemDescription;
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;
import org.milyn.edi.unedifact.d06b.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DataElementUsageDetails dataElementUsageDetails;
private SimpleDataElementDetails simpleDataElementDetails;
private EditingDetails editingDetails;
private List itemDescription;
private List processingInformation;
private List freeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(dataElementUsageDetails != null) {
nodeWriter.write("ELU");
nodeWriter.write(delimiters.getField());
dataElementUsageDetails.write(nodeWriter, delimiters);
}
if(simpleDataElementDetails != null) {
nodeWriter.write("ELM");
nodeWriter.write(delimiters.getField());
simpleDataElementDetails.write(nodeWriter, delimiters);
}
if(editingDetails != null) {
nodeWriter.write("EDT");
nodeWriter.write(delimiters.getField());
editingDetails.write(nodeWriter, delimiters);
}
if(itemDescription != null && !itemDescription.isEmpty()) {
for(ItemDescription itemDescriptionInst : itemDescription) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
itemDescriptionInst.write(nodeWriter, delimiters);
}
}
if(processingInformation != null && !processingInformation.isEmpty()) {
for(ProcessingInformation processingInformationInst : processingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformationInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
}
public DataElementUsageDetails getDataElementUsageDetails() {
return dataElementUsageDetails;
}
public SegmentGroup8 setDataElementUsageDetails(DataElementUsageDetails dataElementUsageDetails) {
this.dataElementUsageDetails = dataElementUsageDetails; return this;
}
public SimpleDataElementDetails getSimpleDataElementDetails() {
return simpleDataElementDetails;
}
public SegmentGroup8 setSimpleDataElementDetails(SimpleDataElementDetails simpleDataElementDetails) {
this.simpleDataElementDetails = simpleDataElementDetails; return this;
}
public EditingDetails getEditingDetails() {
return editingDetails;
}
public SegmentGroup8 setEditingDetails(EditingDetails editingDetails) {
this.editingDetails = editingDetails; return this;
}
public List getItemDescription() {
return itemDescription;
}
public SegmentGroup8 setItemDescription(List itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getProcessingInformation() {
return processingInformation;
}
public SegmentGroup8 setProcessingInformation(List processingInformation) {
this.processingInformation = processingInformation; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup8 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy