org.milyn.edi.unedifact.d98a.common.EquipmentDetails Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.common;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.field.EquipmentIdentificationC237;
import org.milyn.edi.unedifact.d98a.common.field.EquipmentSizeAndTypeC224;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
import java.io.StringWriter;
import java.util.List;
import java.util.ArrayList;
import org.milyn.edisax.util.EDIUtils;
import org.milyn.edisax.model.internal.DelimiterType;
public class EquipmentDetails implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private String equipmentQualifier;
private EquipmentIdentificationC237 equipmentIdentification;
private EquipmentSizeAndTypeC224 equipmentSizeAndType;
private String equipmentSupplierCoded;
private String equipmentStatusCoded;
private String fullEmptyIndicatorCoded;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(equipmentQualifier != null) {
nodeWriter.write(delimiters.escape(equipmentQualifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(equipmentIdentification != null) {
equipmentIdentification.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(equipmentSizeAndType != null) {
equipmentSizeAndType.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(equipmentSupplierCoded != null) {
nodeWriter.write(delimiters.escape(equipmentSupplierCoded.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(equipmentStatusCoded != null) {
nodeWriter.write(delimiters.escape(equipmentStatusCoded.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(fullEmptyIndicatorCoded != null) {
nodeWriter.write(delimiters.escape(fullEmptyIndicatorCoded.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeTokens.add(nodeWriter.toString());
writer.write(EDIUtils.concatAndTruncate(nodeTokens, DelimiterType.FIELD, delimiters));
writer.write(delimiters.getSegmentDelimiter());
writer.flush();
}
public String getEquipmentQualifier() {
return equipmentQualifier;
}
public EquipmentDetails setEquipmentQualifier(String equipmentQualifier) {
this.equipmentQualifier = equipmentQualifier; return this;
}
public EquipmentIdentificationC237 getEquipmentIdentification() {
return equipmentIdentification;
}
public EquipmentDetails setEquipmentIdentification(EquipmentIdentificationC237 equipmentIdentification) {
this.equipmentIdentification = equipmentIdentification; return this;
}
public EquipmentSizeAndTypeC224 getEquipmentSizeAndType() {
return equipmentSizeAndType;
}
public EquipmentDetails setEquipmentSizeAndType(EquipmentSizeAndTypeC224 equipmentSizeAndType) {
this.equipmentSizeAndType = equipmentSizeAndType; return this;
}
public String getEquipmentSupplierCoded() {
return equipmentSupplierCoded;
}
public EquipmentDetails setEquipmentSupplierCoded(String equipmentSupplierCoded) {
this.equipmentSupplierCoded = equipmentSupplierCoded; return this;
}
public String getEquipmentStatusCoded() {
return equipmentStatusCoded;
}
public EquipmentDetails setEquipmentStatusCoded(String equipmentStatusCoded) {
this.equipmentStatusCoded = equipmentStatusCoded; return this;
}
public String getFullEmptyIndicatorCoded() {
return fullEmptyIndicatorCoded;
}
public EquipmentDetails setFullEmptyIndicatorCoded(String fullEmptyIndicatorCoded) {
this.fullEmptyIndicatorCoded = fullEmptyIndicatorCoded; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy