Package org.xembly

Examples of org.xembly.Directives.addIf()


        @NotNull(message = "xpath can't be NULL") final String xpath,
        @NotNull(message = "obj can't be NULL") final JsonObject obj
    ) throws IOException {
        final Directives dirs = new Directives().xpath(xpath);
        for (final Map.Entry<String, JsonValue> entry : obj.entrySet()) {
            dirs.addIf(entry.getKey())
                .set(StringUtils.strip(entry.getValue().toString(), "\""))
                .up();
        }
        this.storage.apply(dirs);
    }
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.