Package org.codehaus.jackson

Examples of org.codehaus.jackson.JsonNode.asBoolean()


            } else if (valueNode.isArray()) {
                value = toList(valueNode);
            } else if (valueNode.isObject()) {
                value = toMap(valueNode);
            } else if (valueNode.isBoolean()) {
                value = valueNode.asBoolean();
            } else if (valueNode.isInt()) {
                value = valueNode.asInt();
            } else if (valueNode.isLong()) {
                value = valueNode.asLong();
            } else if (valueNode.isDouble()) {
View Full Code Here


                    partnerSpan = at.addToken(spanStart, spanEnd);
                    break;
            }
        }

        return new DependencyRelation(gramRelTag, isDependent.asBoolean(), partnerSpan);
    }
}
View Full Code Here

    String stencilId = BpmnJsonConverterUtil.getStencilId(elementNode);
    if (STENCIL_EVENT_START_NONE.equals(stencilId)) {
      boolean isPersistence = true;
      JsonNode isPersistenceNode = BpmnJsonConverterUtil.getProperty(PROPERTY_START_EVENT_ISPERSISTENCE, elementNode);
      if (isPersistenceNode != null) {
        isPersistence = isPersistenceNode.asBoolean();
      }
      if (!isPersistence) {
        BpmnModelUtil.addExtensionAttribute(startEvent, FixFlowPackage.Literals.DOCUMENT_ROOT__IS_PERSISTENCE, StringUtil.getString(isPersistence));
      }
    } else if (STENCIL_EVENT_START_TIMER.equals(stencilId)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.