Examples of valueToTree()


Examples of com.fasterxml.jackson.databind.ObjectMapper.valueToTree()

    LOG.warning("Warning, this type of State can't store JsonNodes, only Serializable objects. This JsonNode is stored as string.");
    return locPutIfUnchanged(key, newVal.toString(), oldVal.toString());
  }
  public synchronized Serializable locPut(String key, Serializable value) {
    ObjectMapper om = JOM.getInstance();
    locPut(key, om.valueToTree(value));
    return value;
  }
  public boolean locPutIfUnchanged(String key, Serializable newVal,
      Serializable oldVal) {
    ObjectMapper om = JOM.getInstance();
View Full Code Here

Examples of com.fasterxml.jackson.databind.ObjectMapper.valueToTree()

    return value;
  }
  public boolean locPutIfUnchanged(String key, Serializable newVal,
      Serializable oldVal) {
    ObjectMapper om = JOM.getInstance();
    return locPutIfUnchanged(key, om.valueToTree(newVal), om.valueToTree(oldVal));
  }
}
View Full Code Here

Examples of com.fasterxml.jackson.databind.ObjectMapper.valueToTree()

    return value;
  }
  public boolean locPutIfUnchanged(String key, Serializable newVal,
      Serializable oldVal) {
    ObjectMapper om = JOM.getInstance();
    return locPutIfUnchanged(key, om.valueToTree(newVal), om.valueToTree(oldVal));
  }
}
View Full Code Here

Examples of com.fasterxml.jackson.databind.ObjectMapper.valueToTree()

    return ent;
  }

  protected <T> JsonNode toJson(T entity) {
    ObjectMapper om = new ObjectMapper();
    JsonNode req = om.valueToTree(entity);
    return req;
  }

  protected JsonNode parseJson(String json) throws JsonProcessingException, IOException {
    ObjectMapper om = new ObjectMapper();
View Full Code Here

Examples of org.codehaus.jackson.map.ObjectMapper.valueToTree()

        FakeConnection connection = new FakeConnection();
        String resultString = loadJsonFromFile("system-props.json");

        ObjectMapper mapper = new ObjectMapper();
        ComplexResult result = mapper.readValue(resultString, ComplexResult.class);
        JsonNode json = mapper.valueToTree(result);

        connection.setContent(json);

        ConfigurationWriteDelegate delegate = new ConfigurationWriteDelegate(definition, connection, null);
View Full Code Here

Examples of org.codehaus.jackson.map.ObjectMapper.valueToTree()

        FakeConnection connection = new FakeConnection();
        String resultString = loadJsonFromFile("system-props.json");

        ObjectMapper mapper = new ObjectMapper();
        ComplexResult result = mapper.readValue(resultString, ComplexResult.class);
        JsonNode json = mapper.valueToTree(result);

        connection.setContent(json);

        ConfigurationWriteDelegate delegate = new ConfigurationWriteDelegate(definition, connection, null);
View Full Code Here

Examples of org.codehaus.jackson.map.ObjectMapper.valueToTree()

        FakeConnection connection = new FakeConnection();
        String resultString = loadJsonFromFile("system-props.json");

        ObjectMapper mapper = new ObjectMapper();
        ComplexResult result = mapper.readValue(resultString, ComplexResult.class);
        JsonNode json = mapper.valueToTree(result);

        connection.setContent(json);

        ConfigurationWriteDelegate delegate = new ConfigurationWriteDelegate(definition, connection, null);
View Full Code Here

Examples of org.codehaus.jackson.map.ObjectMapper.valueToTree()

        FakeConnection connection = new FakeConnection();
        String resultString = loadJsonFromFile("expressionTest.json");

        ObjectMapper mapper = new ObjectMapper();
        ComplexResult result = mapper.readValue(resultString, ComplexResult.class);
        JsonNode json = mapper.valueToTree(result);

        connection.setContent(json);

        ConfigurationWriteDelegate delegate = new ConfigurationWriteDelegate(definition, connection, null);
View Full Code Here

Examples of org.codehaus.jackson.map.ObjectMapper.valueToTree()

        FakeConnection connection = new FakeConnection();
        String resultString = loadJsonFromFile("collapsedMapTest.json");

        ObjectMapper mapper = new ObjectMapper();
        ComplexResult result = mapper.readValue(resultString, ComplexResult.class);
        JsonNode json = mapper.valueToTree(result);

        connection.setContent(json);

        ConfigurationWriteDelegate delegate = new ConfigurationWriteDelegate(definition, connection, null);
View Full Code Here

Examples of org.codehaus.jackson.map.ObjectMapper.valueToTree()

        FakeConnection connection = new FakeConnection();
        String resultString = loadJsonFromFile("collapsedMapTest.json");

        ObjectMapper mapper = new ObjectMapper();
        ComplexResult result = mapper.readValue(resultString, ComplexResult.class);
        JsonNode json = mapper.valueToTree(result);

        connection.setContent(json);

        ConfigurationWriteDelegate delegate = new ConfigurationWriteDelegate(definition, connection, null);
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.