org.milyn.edi.unedifact.d94a.HANMOV.SegmentGroup16 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d94a.HANMOV;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d94a.common.EQDEquipmentDetails;
import org.milyn.edi.unedifact.d94a.common.EQNNumberOfUnits;
import org.milyn.edi.unedifact.d94a.common.SELSealNumber;
import java.util.List;
import org.milyn.edi.unedifact.d94a.common.EQAAttachedEquipment;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup16 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private EQDEquipmentDetails eQDEquipmentDetails;
private EQNNumberOfUnits eQNNumberOfUnits;
private SELSealNumber sELSealNumber;
private List eQAAttachedEquipment;
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(eQNNumberOfUnits != null) {
nodeWriter.write("EQN");
nodeWriter.write(delimiters.getField());
eQNNumberOfUnits.write(nodeWriter, delimiters);
}
if(sELSealNumber != null) {
nodeWriter.write("SEL");
nodeWriter.write(delimiters.getField());
sELSealNumber.write(nodeWriter, delimiters);
}
if(eQAAttachedEquipment != null && !eQAAttachedEquipment.isEmpty()) {
for(EQAAttachedEquipment eQAAttachedEquipmentInst : eQAAttachedEquipment) {
nodeWriter.write("EQA");
nodeWriter.write(delimiters.getField());
eQAAttachedEquipmentInst.write(nodeWriter, delimiters);
}
}
}
public EQDEquipmentDetails getEQDEquipmentDetails() {
return eQDEquipmentDetails;
}
public SegmentGroup16 setEQDEquipmentDetails(EQDEquipmentDetails eQDEquipmentDetails) {
this.eQDEquipmentDetails = eQDEquipmentDetails; return this;
}
public EQNNumberOfUnits getEQNNumberOfUnits() {
return eQNNumberOfUnits;
}
public SegmentGroup16 setEQNNumberOfUnits(EQNNumberOfUnits eQNNumberOfUnits) {
this.eQNNumberOfUnits = eQNNumberOfUnits; return this;
}
public SELSealNumber getSELSealNumber() {
return sELSealNumber;
}
public SegmentGroup16 setSELSealNumber(SELSealNumber sELSealNumber) {
this.sELSealNumber = sELSealNumber; return this;
}
public List getEQAAttachedEquipment() {
return eQAAttachedEquipment;
}
public SegmentGroup16 setEQAAttachedEquipment(List eQAAttachedEquipment) {
this.eQAAttachedEquipment = eQAAttachedEquipment; return this;
}
}