Class JsonConverterUtil

    • Constructor Detail

      • JsonConverterUtil

        public JsonConverterUtil()
    • Method Detail

      • getPropertyValueAsString

        public static java.lang.String getPropertyValueAsString​(java.lang.String name,
                                                                com.fasterxml.jackson.databind.JsonNode objectNode)
      • getPropertyValueAsBoolean

        public static boolean getPropertyValueAsBoolean​(java.lang.String name,
                                                        com.fasterxml.jackson.databind.JsonNode objectNode)
      • getPropertyValueAsBoolean

        public static boolean getPropertyValueAsBoolean​(java.lang.String name,
                                                        com.fasterxml.jackson.databind.JsonNode objectNode,
                                                        boolean defaultValue)
      • getPropertyValueAsList

        public static java.util.List<java.lang.String> getPropertyValueAsList​(java.lang.String name,
                                                                              com.fasterxml.jackson.databind.JsonNode objectNode)
      • getProperty

        public static com.fasterxml.jackson.databind.JsonNode getProperty​(java.lang.String name,
                                                                          com.fasterxml.jackson.databind.JsonNode objectNode)
      • getBpmnProcessModelChildShapesPropertyValues

        protected static java.util.List<JsonConverterUtil.JsonLookupResult> getBpmnProcessModelChildShapesPropertyValues​(com.fasterxml.jackson.databind.JsonNode editorJsonNode,
                                                                                                                         java.lang.String propertyName,
                                                                                                                         java.util.List<java.lang.String> allowedStencilTypes)
        Usable for BPMN 2.0 editor json: traverses all child shapes (also nested), goes into the properties and sees if there is a matching property in the 'properties' of the childshape and returns those in a list. Returns a map with said json nodes, with the key the name of the childshape.
      • internalGetBpmnProcessChildShapePropertyValues

        protected static void internalGetBpmnProcessChildShapePropertyValues​(com.fasterxml.jackson.databind.JsonNode editorJsonNode,
                                                                             java.lang.String propertyName,
                                                                             java.util.List<java.lang.String> allowedStencilTypes,
                                                                             java.util.List<JsonConverterUtil.JsonLookupResult> result)
      • getBpmnProcessModelFormReferences

        public static java.util.List<JsonConverterUtil.JsonLookupResult> getBpmnProcessModelFormReferences​(com.fasterxml.jackson.databind.JsonNode editorJsonNode)
      • getBpmnProcessModelDecisionTableReferences

        public static java.util.List<JsonConverterUtil.JsonLookupResult> getBpmnProcessModelDecisionTableReferences​(com.fasterxml.jackson.databind.JsonNode editorJsonNode)
      • getAppModelReferencedProcessModels

        public static java.util.List<com.fasterxml.jackson.databind.JsonNode> getAppModelReferencedProcessModels​(com.fasterxml.jackson.databind.JsonNode appModelJson)
      • getAppModelReferencedModelIds

        public static java.util.Set<java.lang.String> getAppModelReferencedModelIds​(com.fasterxml.jackson.databind.JsonNode appModelJson)
      • gatherLongPropertyFromJsonNodes

        public static java.util.Set<java.lang.Long> gatherLongPropertyFromJsonNodes​(java.lang.Iterable<com.fasterxml.jackson.databind.JsonNode> jsonNodes,
                                                                                    java.lang.String propertyName)
        Loops through a list of JsonNode instances, and stores the given property with given type in the returned list. In Java 8, this probably could be done a lot cooler.
      • gatherStringPropertyFromJsonNodes

        public static java.util.Set<java.lang.String> gatherStringPropertyFromJsonNodes​(java.lang.Iterable<com.fasterxml.jackson.databind.JsonNode> jsonNodes,
                                                                                        java.lang.String propertyName)
      • filterOutJsonNodes

        public static java.util.List<com.fasterxml.jackson.databind.JsonNode> filterOutJsonNodes​(java.util.List<JsonConverterUtil.JsonLookupResult> lookupResults)