changeset 87:8005f7011975

update version number in xml.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Tue, 06 Feb 2018 15:14:29 +0100
parents d4b456623d43
children ad505ef703ed
files src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java	Mon Feb 05 20:06:38 2018 +0100
+++ b/src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java	Tue Feb 06 15:14:29 2018 +0100
@@ -32,6 +32,8 @@
  */
 public class OM4StreamWriter {
 
+    protected static final String FORMAT_VERSION = "4.7";
+
     private static Logger logger = Logger.getLogger(OM4StreamWriter.class);
 
     private static final int itemsPerPage = 500;
@@ -105,12 +107,12 @@
 
             if (type.equals(Node.TYPE_ABOX)) {
                 writer.writeStartElement(XMLUtil.OPENMIND_DATA);
-                writer.writeAttribute("version", "4.6");
+                writer.writeAttribute("version", FORMAT_VERSION);
                 // get number of content Entities
                 entitiesCount = ps.getEntityCount(null).intValue();
             } else {
                 writer.writeStartElement(XMLUtil.META_DATA);
-                writer.writeAttribute("version", "4.6");
+                writer.writeAttribute("version", FORMAT_VERSION);
                 // get number of definition Entities
                 entitiesCount = ps.getEntityCount(Node.TYPE_TBOX).intValue();
             }