Package org.sf.bee.commons.xml.configuration.impl

Examples of org.sf.bee.commons.xml.configuration.impl.ConfigurationNode


        //-- loop on node's children --//
        for (final IConfigNode child : node) {
            // is child another configuration node?
            if (child instanceof ConfigurationNode) {
                //-- child is a configuration NODE --//
                final ConfigurationNode cn = (ConfigurationNode) child;
                if (cn.size() > 0) {
                    //-- add node --//
                    final String parentUid = this.concat(parentId, node);
                    final String uid = this.concat(parentUid, cn);
                    // RECURSIVELY add chlidren properties or nodes
                    this.addAll(uid, cn);
View Full Code Here


                content = text.getBytes();
            }
            _document = new XmlDocument(content);
            final XmlNode root = _document.getDocumentElement();
            if (null != root) {
                _items = new ConfigurationNode(this, root);
            }
        }
    }
View Full Code Here

    //                      p r i v a t e
    // ------------------------------------------------------------------------
   
    private void init(final Configuration configuration, final String path) {
        if (null != configuration) {
            final ConfigurationNode node = this.getNode(configuration,
                    path);
            this.init(node);
        }
    }
View Full Code Here

    // ------------------------------------------------------------------------
    //                      p r i v a t e
    // ------------------------------------------------------------------------
    private void init(final Configuration configuration, final String path) {
        if (null != configuration) {
            final ConfigurationNode node = this.getNode(configuration,
                    path);
            this.init(node);
        }
    }
View Full Code Here

TOP

Related Classes of org.sf.bee.commons.xml.configuration.impl.ConfigurationNode

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.