Package org.jitterbit.integration.json.dom

Examples of org.jitterbit.integration.json.dom.JsonNode


    public JsonNode current() {
        return parentStack.isEmpty() ? null : parentStack.peek();
    }
   
    public boolean isSimpleArray() {
        JsonNode node = current();
        return node instanceof ArrayNode && ((ArrayNode) node).isSimpleForm();
    }
View Full Code Here


    public JsonNode down() {
        if (parentStack.isEmpty()) {
            pushNewParent(root);
            return root;
        } else {
            JsonNode parent = parentStack.peek();
            JsonNode child = parent.firstChild();
            if (child != null) {
                pushNewParent(child);
            }
            return child;
        }
View Full Code Here

        parentStack.push(p);
        childStack.push(null);
    }
   
    public void startField() {
        JsonNode parent = parentStack.peek();
        JsonNode child = childStack.pop();
        if (child == null) {
            child = parent.firstChild();
        } else {
            child = parent.nextChild(child);
        }
View Full Code Here

            endField();
        }
    }
   
    public void scalarArrayItem() {
        JsonNode parent = parentStack.peek();
        JsonNode child = childStack.pop();
        if (child == null) {
            child = parent.firstChild();
        } else {
            child = parent.nextChild(child);
        }
View Full Code Here

        childStack.push(child);
    }
   
    @Override
    public String toString() {
        JsonNode n = current();
        return n == null ? "[null]" : n.toString();
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.json.dom.JsonNode

Copyright © 2018 www.massapicom. 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.