/** * Determines the start position of the iteration. Finds the index of the * given start node in the children of the root node. * * @param node the root node * @param startNode the start node * @return the start node's index */ protected int findStartIndex(ConfigurationNode node, ConfigurationNode startNode) { for (int index = 0; index < node.getChildrenCount(); index++) { if (node.getChild(index) == startNode) { return index; } } return -1; } }
/** * Determines the start position of the iteration. Finds the index of the * given start node in the children of the root node. * * @param node the root node * @param startNode the start node * @return the start node's index */ protected int findStartIndex(ConfigurationNode node, ConfigurationNode startNode) { for (int index = 0; index < node.getChildrenCount(); index++) { if (node.getChild(index) == startNode) { return index; } } return -1; } }
for (int i = 0; i < attributeNode.getChildrenCount(); i++) { if (LDAP_SEARCH_ATTRIBUTE_TAG.equals(attributeNode.getChild(i).getName())) { Object kid = attributeNode.getChild(i).getValue(); if (kid != null) { String returnName = getFirstAttribute(attributeNode.getChild(i), RETURN_NAME); if (returnName == null) { x = getFirstAttribute(attributeNode.getChild(i), RETURN_AS_LIST); boolean returnAsList = false; if (x != null) { x = getFirstAttribute(attributeNode.getChild(i), IS_GROUP); boolean isGroup = false; if (x != null) {