Examples of InMemoryNodeModel


Examples of org.apache.commons.configuration2.tree.InMemoryNodeModel

        }

        @Override
        protected NodeModel<ImmutableNode> cloneNodeModel()
        {
            return new InMemoryNodeModel(getModel().getNodeHandler().getRootNode());
        }
View Full Code Here

Examples of org.apache.commons.configuration2.tree.InMemoryNodeModel

        {
            throw new ConfigurationRuntimeException(
                    "Passed in key must select exactly one node: " + key);
        }
        BaseHierarchicalConfiguration sub =
                new BaseHierarchicalConfiguration(new InMemoryNodeModel(
                        targetNodes.get(0)));
        initSubConfiguration(sub);
        return sub;
    }
View Full Code Here

Examples of org.apache.commons.configuration2.tree.InMemoryNodeModel

     */
    private BaseHierarchicalConfiguration createIndependentSubConfigurationForNode(
            ImmutableNode node)
    {
        BaseHierarchicalConfiguration sub =
                new BaseHierarchicalConfiguration(new InMemoryNodeModel(node));
        initSubConfiguration(sub);
        return sub;
    }
View Full Code Here

Examples of org.apache.commons.configuration2.tree.InMemoryNodeModel

        if (!supportUpdates)
        {
            return configurationsAt(key);
        }

        InMemoryNodeModel parentModel;
        beginRead(false);
        try
        {
            parentModel = getSubConfigurationParentModel();
        }
        finally
        {
            endRead();
        }

        Collection<NodeSelector> selectors =
                parentModel.selectAndTrackNodes(key, this);
        return createConnectedSubConfigurations(this, selectors);
    }
View Full Code Here

Examples of org.apache.commons.configuration2.tree.InMemoryNodeModel

        if (!supportUpdates)
        {
            return childConfigurationsAt(key);
        }

        InMemoryNodeModel parentModel = getSubConfigurationParentModel();
        return createConnectedSubConfigurations(this,
                parentModel.trackChildNodes(key, this));
    }
View Full Code Here

Examples of org.apache.commons.configuration2.tree.InMemoryNodeModel

     * original and copied configurations are independent on each other.
     */
    @Override
    protected NodeModel<ImmutableNode> cloneNodeModel()
    {
        return new InMemoryNodeModel(getModel().getNodeHandler().getRootNode());
    }
View Full Code Here

Examples of org.apache.commons.configuration2.tree.InMemoryNodeModel

     */
    private static NodeModel<ImmutableNode> createNodeModel(
            HierarchicalConfiguration<ImmutableNode> c)
    {
        ImmutableNode root = (c != null) ? obtainRootNode(c) : null;
        return new InMemoryNodeModel(root);
    }
View Full Code Here

Examples of org.apache.commons.configuration2.tree.InMemoryNodeModel

     *
     * @param root the root node
     */
    XMLPropertyListConfiguration(ImmutableNode root)
    {
        super(new InMemoryNodeModel(root));
    }
View Full Code Here

Examples of org.apache.commons.configuration2.tree.InMemoryNodeModel

     *
     * @param root the root node
     */
    PropertyListConfiguration(ImmutableNode root)
    {
        super(new InMemoryNodeModel(root));
    }
View Full Code Here

Examples of org.apache.commons.configuration2.tree.InMemoryNodeModel

            {
                String key = it.next();
                ImmutableNode node =
                        new ImmutableNode.Builder().name(key)
                                .value(config.getProperty(key)).create();
                InMemoryNodeModel tempModel = new InMemoryNodeModel(node);
                printNode(out, indentLevel + 1, node, tempModel.getNodeHandler());
                out.println(";");
            }
            out.println(padding + "}");
        }
        else if (value instanceof Map)
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.