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

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

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: