org.milyn.edi.unedifact.d15a.common.DGSDangerousGoods Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d15a.common;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d15a.common.field.C205HazardCode;
import org.milyn.edi.unedifact.d15a.common.field.C234UndgInformation;
import org.milyn.edi.unedifact.d15a.common.field.C223DangerousGoodsShipmentFlashpoint;
import org.milyn.edi.unedifact.d15a.common.field.C235HazardIdentificationPlacardDetails;
import org.milyn.edi.unedifact.d15a.common.field.C236DangerousGoodsLabel;
import org.milyn.edi.unedifact.d15a.common.field.C289TunnelRestriction;
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 DGSDangerousGoods implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private String e8273DangerousGoodsRegulationsCode;
private C205HazardCode c205HazardCode;
private C234UndgInformation c234UndgInformation;
private C223DangerousGoodsShipmentFlashpoint c223DangerousGoodsShipmentFlashpoint;
private String e8339PackagingDangerLevelCode;
private String e8364EmergencyProcedureForShipsIdentifier;
private String e8410HazardMedicalFirstAidGuideIdentifier;
private String e8126TransportEmergencyCardIdentifier;
private C235HazardIdentificationPlacardDetails c235HazardIdentificationPlacardDetails;
private C236DangerousGoodsLabel c236DangerousGoodsLabel;
private String e8255PackingInstructionTypeCode;
private String e8179TransportMeansDescriptionCode;
private String e8211HazardousCargoTransportAuthorisationCode;
private C289TunnelRestriction c289TunnelRestriction;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e8273DangerousGoodsRegulationsCode != null) {
nodeWriter.write(delimiters.escape(e8273DangerousGoodsRegulationsCode.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c205HazardCode != null) {
c205HazardCode.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c234UndgInformation != null) {
c234UndgInformation.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c223DangerousGoodsShipmentFlashpoint != null) {
c223DangerousGoodsShipmentFlashpoint.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e8339PackagingDangerLevelCode != null) {
nodeWriter.write(delimiters.escape(e8339PackagingDangerLevelCode.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e8364EmergencyProcedureForShipsIdentifier != null) {
nodeWriter.write(delimiters.escape(e8364EmergencyProcedureForShipsIdentifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e8410HazardMedicalFirstAidGuideIdentifier != null) {
nodeWriter.write(delimiters.escape(e8410HazardMedicalFirstAidGuideIdentifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e8126TransportEmergencyCardIdentifier != null) {
nodeWriter.write(delimiters.escape(e8126TransportEmergencyCardIdentifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c235HazardIdentificationPlacardDetails != null) {
c235HazardIdentificationPlacardDetails.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c236DangerousGoodsLabel != null) {
c236DangerousGoodsLabel.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e8255PackingInstructionTypeCode != null) {
nodeWriter.write(delimiters.escape(e8255PackingInstructionTypeCode.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e8179TransportMeansDescriptionCode != null) {
nodeWriter.write(delimiters.escape(e8179TransportMeansDescriptionCode.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e8211HazardousCargoTransportAuthorisationCode != null) {
nodeWriter.write(delimiters.escape(e8211HazardousCargoTransportAuthorisationCode.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c289TunnelRestriction != null) {
c289TunnelRestriction.write(nodeWriter, delimiters);
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 getE8273DangerousGoodsRegulationsCode() {
return e8273DangerousGoodsRegulationsCode;
}
public DGSDangerousGoods setE8273DangerousGoodsRegulationsCode(String e8273DangerousGoodsRegulationsCode) {
this.e8273DangerousGoodsRegulationsCode = e8273DangerousGoodsRegulationsCode; return this;
}
public C205HazardCode getC205HazardCode() {
return c205HazardCode;
}
public DGSDangerousGoods setC205HazardCode(C205HazardCode c205HazardCode) {
this.c205HazardCode = c205HazardCode; return this;
}
public C234UndgInformation getC234UndgInformation() {
return c234UndgInformation;
}
public DGSDangerousGoods setC234UndgInformation(C234UndgInformation c234UndgInformation) {
this.c234UndgInformation = c234UndgInformation; return this;
}
public C223DangerousGoodsShipmentFlashpoint getC223DangerousGoodsShipmentFlashpoint() {
return c223DangerousGoodsShipmentFlashpoint;
}
public DGSDangerousGoods setC223DangerousGoodsShipmentFlashpoint(C223DangerousGoodsShipmentFlashpoint c223DangerousGoodsShipmentFlashpoint) {
this.c223DangerousGoodsShipmentFlashpoint = c223DangerousGoodsShipmentFlashpoint; return this;
}
public String getE8339PackagingDangerLevelCode() {
return e8339PackagingDangerLevelCode;
}
public DGSDangerousGoods setE8339PackagingDangerLevelCode(String e8339PackagingDangerLevelCode) {
this.e8339PackagingDangerLevelCode = e8339PackagingDangerLevelCode; return this;
}
public String getE8364EmergencyProcedureForShipsIdentifier() {
return e8364EmergencyProcedureForShipsIdentifier;
}
public DGSDangerousGoods setE8364EmergencyProcedureForShipsIdentifier(String e8364EmergencyProcedureForShipsIdentifier) {
this.e8364EmergencyProcedureForShipsIdentifier = e8364EmergencyProcedureForShipsIdentifier; return this;
}
public String getE8410HazardMedicalFirstAidGuideIdentifier() {
return e8410HazardMedicalFirstAidGuideIdentifier;
}
public DGSDangerousGoods setE8410HazardMedicalFirstAidGuideIdentifier(String e8410HazardMedicalFirstAidGuideIdentifier) {
this.e8410HazardMedicalFirstAidGuideIdentifier = e8410HazardMedicalFirstAidGuideIdentifier; return this;
}
public String getE8126TransportEmergencyCardIdentifier() {
return e8126TransportEmergencyCardIdentifier;
}
public DGSDangerousGoods setE8126TransportEmergencyCardIdentifier(String e8126TransportEmergencyCardIdentifier) {
this.e8126TransportEmergencyCardIdentifier = e8126TransportEmergencyCardIdentifier; return this;
}
public C235HazardIdentificationPlacardDetails getC235HazardIdentificationPlacardDetails() {
return c235HazardIdentificationPlacardDetails;
}
public DGSDangerousGoods setC235HazardIdentificationPlacardDetails(C235HazardIdentificationPlacardDetails c235HazardIdentificationPlacardDetails) {
this.c235HazardIdentificationPlacardDetails = c235HazardIdentificationPlacardDetails; return this;
}
public C236DangerousGoodsLabel getC236DangerousGoodsLabel() {
return c236DangerousGoodsLabel;
}
public DGSDangerousGoods setC236DangerousGoodsLabel(C236DangerousGoodsLabel c236DangerousGoodsLabel) {
this.c236DangerousGoodsLabel = c236DangerousGoodsLabel; return this;
}
public String getE8255PackingInstructionTypeCode() {
return e8255PackingInstructionTypeCode;
}
public DGSDangerousGoods setE8255PackingInstructionTypeCode(String e8255PackingInstructionTypeCode) {
this.e8255PackingInstructionTypeCode = e8255PackingInstructionTypeCode; return this;
}
public String getE8179TransportMeansDescriptionCode() {
return e8179TransportMeansDescriptionCode;
}
public DGSDangerousGoods setE8179TransportMeansDescriptionCode(String e8179TransportMeansDescriptionCode) {
this.e8179TransportMeansDescriptionCode = e8179TransportMeansDescriptionCode; return this;
}
public String getE8211HazardousCargoTransportAuthorisationCode() {
return e8211HazardousCargoTransportAuthorisationCode;
}
public DGSDangerousGoods setE8211HazardousCargoTransportAuthorisationCode(String e8211HazardousCargoTransportAuthorisationCode) {
this.e8211HazardousCargoTransportAuthorisationCode = e8211HazardousCargoTransportAuthorisationCode; return this;
}
public C289TunnelRestriction getC289TunnelRestriction() {
return c289TunnelRestriction;
}
public DGSDangerousGoods setC289TunnelRestriction(C289TunnelRestriction c289TunnelRestriction) {
this.c289TunnelRestriction = c289TunnelRestriction; return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy