org.milyn.edi.unedifact.d05a.BAPLIE.SegmentGroup6 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.BAPLIE;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.EQDEquipmentDetails;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.EQAAttachedEquipment;
import org.milyn.edi.unedifact.d05a.common.NADNameAndAddress;
import org.milyn.edi.unedifact.d05a.common.RFFReference;
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 EQDEquipmentDetails eQDEquipmentDetails;
private List eQAAttachedEquipment;
private List nADNameAndAddress;
private List rFFReference;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(eQDEquipmentDetails != null) {
nodeWriter.write("EQD");
nodeWriter.write(delimiters.getField());
eQDEquipmentDetails.write(nodeWriter, delimiters);
}
if(eQAAttachedEquipment != null && !eQAAttachedEquipment.isEmpty()) {
for(EQAAttachedEquipment eQAAttachedEquipmentInst : eQAAttachedEquipment) {
nodeWriter.write("EQA");
nodeWriter.write(delimiters.getField());
eQAAttachedEquipmentInst.write(nodeWriter, delimiters);
}
}
if(nADNameAndAddress != null && !nADNameAndAddress.isEmpty()) {
for(NADNameAndAddress nADNameAndAddressInst : nADNameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nADNameAndAddressInst.write(nodeWriter, delimiters);
}
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
}
public EQDEquipmentDetails getEQDEquipmentDetails() {
return eQDEquipmentDetails;
}
public SegmentGroup6 setEQDEquipmentDetails(EQDEquipmentDetails eQDEquipmentDetails) {
this.eQDEquipmentDetails = eQDEquipmentDetails; return this;
}
public List getEQAAttachedEquipment() {
return eQAAttachedEquipment;
}
public SegmentGroup6 setEQAAttachedEquipment(List eQAAttachedEquipment) {
this.eQAAttachedEquipment = eQAAttachedEquipment; return this;
}
public List getNADNameAndAddress() {
return nADNameAndAddress;
}
public SegmentGroup6 setNADNameAndAddress(List nADNameAndAddress) {
this.nADNameAndAddress = nADNameAndAddress; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup6 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
}