public void visitBeforeChildren(Node node, ConfigurationKey key) Collection<ConfigurationNode> subNodes = new LinkedList<ConfigurationNode>(node.getChildren()); subNodes.addAll(node.getAttributes()); Iterator<ConfigurationNode> children = subNodes.iterator(); Node sibling1 = null; Object obj = children.next(); nd = getNodeFor(obj); } while (nd.getReference() != null && children.hasNext()); if (nd.getReference() == null) if (nd.getReference() == null) Node sibling2 = (nd.getReference() == null) ? null : nd; for (Node insertNode : newNodes) if (insertNode.getReference() == null) insertNode.setReference(ref);
child.setValue(value); node.addAttribute(child);
HierarchicalConfiguration.Node lroot = config.getRoot(); List children = lnode.getChildren(PacketHandlerConfigurationItem.XML_KEY); children = lnode.getChildren(PacketHandlerConfigurationItem.XML_KEY_ALT); children = lnode.getChildren(HandlerConfigurationItem.XML_KEY);
HierarchicalConfiguration.Node lroot = config.getRoot(); List children = lnode.getChildren(PacketHandlerConfigurationItem.XML_KEY); children = lnode.getChildren(PacketHandlerConfigurationItem.XML_KEY_ALT); children = lnode.getChildren(HandlerConfigurationItem.XML_KEY);
peek().addChild(node); push(node);
peek().addChild(node); push(node);
private static void setSessionManagerConfig() List list = root.getChildren(SESSION_MANAGER_KEY);
timeoutSeconds = xmlCfg.getConfigInt("timeout"); List children = root.getChildren("chain-catalog");
timeoutSeconds = xmlCfg.getConfigInt("timeout"); List children = root.getChildren("chain-catalog");
List list = cfg.getRoot().getChildren("file"); for (int i = 0; i < list.size(); i++) { ConfigurationNode cn = (ConfigurationNode) list.get(i);
private static void setSessionManagerConfig() List list = root.getChildren(SESSION_MANAGER_KEY);
List<?> usersList = root.getChildren("users"); HierarchicalConfiguration.Node node; List<?> children = node.getChildren("user"); for (Iterator<?> i = children.iterator(); i.hasNext();) user.realm = xmlCfg.getString("[@realm]"); user.password = xmlCfg.getString("[@password]"); Object v = node.getValue();
public void visitBeforeChildren(Node node, ConfigurationKey key) Collection<ConfigurationNode> subNodes = new LinkedList<ConfigurationNode>(node.getChildren()); subNodes.addAll(node.getAttributes()); Iterator<ConfigurationNode> children = subNodes.iterator(); Node sibling1 = null; Object obj = children.next(); nd = getNodeFor(obj); } while (nd.getReference() != null && children.hasNext()); if (nd.getReference() == null) if (nd.getReference() == null) Node sibling2 = (nd.getReference() == null) ? null : nd; for (Node insertNode : newNodes) if (insertNode.getReference() == null) insertNode.setReference(ref);
if (getName() != null) isAttribute() ? ConfigurationKey .constructAttributeKey(getName()) : getName(), String .valueOf(ConfigurationKey.PROPERTY_DELIMITER), for (Iterator<ConfigurationNode> it = getChildren().iterator(); it.hasNext() && !visitor.terminate();) getNodeFor(obj).visit(visitor, key); for (Iterator<ConfigurationNode> it = getAttributes().iterator(); it.hasNext() && !visitor.terminate();) getNodeFor(obj).visit(visitor, key);
if (child.getValue() != null) values.add(child.getValue().toString()); values = PropertyConverter.split(child.getValue().toString(), getListDelimiter(), trim); Node c = createNode(child.getName()); c.setValue(it.next()); for (ConfigurationNode ndAttr : child.getAttributes()) c.addAttribute(ndAttr); parent.remove(child); parent.addChild(c); c = new XMLNode(child.getName(), null); c.setValue(it.next()); parent.addChild(c); child.setValue(values.get(0));
if (getName() != null) isAttribute() ? ConfigurationKey .constructAttributeKey(getName()) : getName(), String .valueOf(ConfigurationKey.PROPERTY_DELIMITER), for (Iterator<ConfigurationNode> it = getChildren().iterator(); it.hasNext() && !visitor.terminate();) getNodeFor(obj).visit(visitor, key); for (Iterator<ConfigurationNode> it = getAttributes().iterator(); it.hasNext() && !visitor.terminate();) getNodeFor(obj).visit(visitor, key);