# HG changeset patch # User Robert Casties # Date 1578501685 -3600 # Node ID 3b0ce5e3302de0b35a9050c953e7489423755325 # Parent 4eac7c57e59372ba644f63ee4de7350142618bd6 add Node status field to XML export. diff -r 4eac7c57e593 -r 3b0ce5e3302d src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java --- a/src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java Wed Oct 23 13:25:51 2019 +0200 +++ b/src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java Wed Jan 08 17:41:25 2020 +0100 @@ -39,7 +39,7 @@ */ public class OM4StreamWriter { - protected static final String FORMAT_VERSION = "4.11"; + protected static final String FORMAT_VERSION = "4.12"; private static Logger logger = Logger.getLogger(OM4StreamWriter.class); @@ -324,6 +324,9 @@ if (entity.getIsPublic()) { writer.writeAttribute(XMLUtil.PUBLIC, "true"); } + if (StringUtils.isNotEmpty(entity.getStatus())) { + writer.writeAttribute(XMLUtil.STATUS, entity.getStatus()); + } /* * write OpenMind attributes of this entity as XML tags diff -r 4eac7c57e593 -r 3b0ce5e3302d src/main/java/org/mpi/openmind/repository/utils/XMLUtil.java --- a/src/main/java/org/mpi/openmind/repository/utils/XMLUtil.java Wed Oct 23 13:25:51 2019 +0200 +++ b/src/main/java/org/mpi/openmind/repository/utils/XMLUtil.java Wed Jan 08 17:41:25 2020 +0100 @@ -68,6 +68,7 @@ public static String ASSERTIONS = "assertions"; public static String ASSERTION = "assertion"; public static String NORMALIZED = "norm"; + public static String STATUS = "status"; public static String ENTITY_STATS = "entity-statistics"; public static String RELATION_STATS = "relation-statistics";