Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-664

Add API org.apache.commons.configuration2.tree.ImmutableNode.getChildren(String)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2
    • None
    • None

    Description

      Add API org.apache.commons.configuration2.tree.ImmutableNode.getChildren(String):

          /**
           * Returns a list with the children of this node. This list cannot be
           * modified.
           * @param name the node name to find
           *
           * @return a list with the child nodes
           */
          public List<ImmutableNode> getChildren(final String name)
          {
              final List<ImmutableNode> list = new ArrayList<>();
              if (name == null) {
                  return list;
              }
              for (final ImmutableNode node : children) 
              {
                  if (name.equals(node.getNodeName()))
                  {
                      list.add(node);
                  }
              }
              return list;
          }
      

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: