A utility method to extract spout component names from the topology.

@return list of all spout names
970187
public List<String> getSpoutNames(PhysicalPlan pp) {
    TopologyAPI.Topology localTopology = pp.getTopology();
    ArrayList<String> spoutNames = new ArrayList<>();
    for (TopologyAPI.Spout spout : localTopology.getSpoutsList()) {
      spoutNames.add(spout.getComp().getName());
    }

    return spoutNames;
  }
691943
public java.util.List<PipelineObject> getPipelineObjects() {
        if (pipelineObjects == null) {
            pipelineObjects = new com.amazonaws.internal.SdkInternalList<PipelineObject>();
        }
        return pipelineObjects;
    }
592124
public List<FacesConfigFlowDefinitionFlowCallType<FacesConfigFlowDefinitionType<T>>> getAllFlowCall()
   {
      List<FacesConfigFlowDefinitionFlowCallType<FacesConfigFlowDefinitionType<T>>> list = new ArrayList<FacesConfigFlowDefinitionFlowCallType<FacesConfigFlowDefinitionType<T>>>();
      List<Node> nodeList = childNode.get("flow-call");
      for(Node node: nodeList)
      {
         FacesConfigFlowDefinitionFlowCallType<FacesConfigFlowDefinitionType<T>>  type = new FacesConfigFlowDefinitionFlowCallTypeImpl<FacesConfigFlowDefinitionType<T>>(this, "flow-call", childNode, node);
         list.add(type);
      }
      return list;
   }
56740
public List<String> getVariableNames() {

		return variables.asList().stream() //
				.map(TemplateVariable::getName) //
				.collect(Collectors.toList());
	}
953227
public List<String> columnNames() {
        return columnList.stream().map(Column::name).collect(toList());
    }
259643
public List<String> getPropertyNames() {
        ArrayList<String> names = new ArrayList<>(properties.keySet());
        Collections.sort(names);
        return names;
    }
322162
public HashMap<SIBUuid8, PubSubOutputHandler> getAllPubSubOutputHandlers()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "getAllPubSubOutputHandlers");

        _pubsubOutputHandlerLockManager.lock();

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "getAllPubSubOutputHandlers", _pubsubOutputHandlers);

        return _pubsubOutputHandlers;
    }
1217014
public List<String> getAllVariables() {
        List<String> result = new ArrayList<String>();
        result.addAll(this.getAllLHSVariables());
        result.addAll(this.getAllRHSVariables());
        return result;
    }
427241
private List<String> extractIndexNames() {

        List<String> modules = new ArrayList<String>();

        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(getParamIndexes())) {
            StringTokenizer tok = new StringTokenizer(getParamIndexes(), ",");
            while (tok.hasMoreTokens()) {
                String module = tok.nextToken();
                modules.add(module);
            }
        }
        return modules;
    }
815800
public List<PortComponentRefType<ServiceRefType<T>>> getAllPortComponentRef()
   {
      List<PortComponentRefType<ServiceRefType<T>>> list = new ArrayList<PortComponentRefType<ServiceRefType<T>>>();
      List<Node> nodeList = childNode.get("port-component-ref");
      for(Node node: nodeList)
      {
         PortComponentRefType<ServiceRefType<T>>  type = new PortComponentRefTypeImpl<ServiceRefType<T>>(this, "port-component-ref", childNode, node);
         list.add(type);
      }
      return list;
   }
435147
public String[] getNames() {
        String[] headers = new String[columns.getColumns().size()];
        for (int i = 0; i < columns.getColumns().size(); i++) {
            headers[i] = columns.getColumns().get(i).getName();
        }
        return headers;
    }
410391
public List<Duplet<String, ArrayList<WComponent>>> getTerms() {
		Map<String, Duplet<String, ArrayList<WComponent>>> componentsByTerm = new HashMap<>();
		List<Duplet<String, ArrayList<WComponent>>> result = new ArrayList<>();

		List<WComponent> childList = content.getComponentModel().getChildren();

		if (childList != null) {
			for (int i = 0; i < childList.size(); i++) {
				WComponent child = childList.get(i);
				String term = child.getTag();

				Duplet<String, ArrayList<WComponent>> termComponents = componentsByTerm.get(term);

				if (termComponents == null) {
					termComponents = new Duplet<>(term,
							new ArrayList<WComponent>());
					componentsByTerm.put(term, termComponents);
					result.add(termComponents);
				}

				termComponents.getSecond().add(child);
			}
		}

		return result;
	}
941362
@Override
  public Set<String> getProcessApplicationNames() {
    List<JmxManagedProcessApplication> processApplications = serviceContainer.getServiceValuesByType(ServiceTypes.PROCESS_APPLICATION);
    Set<String> processApplicationNames = new HashSet<String>();
    for (JmxManagedProcessApplication jmxManagedProcessApplication : processApplications) {
      processApplicationNames.add(jmxManagedProcessApplication.getProcessApplicationName());
    }
    return processApplicationNames;
  }
291202
protected static Set<String> getAllServicePropertyNames() {
	   /* Not clear it adds value to expose this publicly, especially with the odd
	    * J2SE_MODE in here.
	    */
		HashSet<String> retVal = new HashSet<String>();
		retVal.add(ServicePropertyNames.BATCH_THREADPOOL_SERVICE);
		retVal.add(ServicePropertyNames.CONTAINER_ARTIFACT_FACTORY_SERVICE);
		retVal.add(ServicePropertyNames.DELEGATING_ARTIFACT_FACTORY_SERVICE);
		retVal.add(ServicePropertyNames.DELEGATING_JOBXML_LOADER_SERVICE);
		retVal.add(ServicePropertyNames.J2SE_MODE);
		retVal.add(ServicePropertyNames.JOBXML_LOADER_SERVICE);
		retVal.add(ServicePropertyNames.TRANSACTION_SERVICE);
		return retVal;
	}
228108
public List<String> getNames() {
        if (this.isEmpty()) {
            return Collections.emptyList();
        } else {
            final List<String> names = new ArrayList<>(this.size());
            for (final T i : this) {
                names.add(i.getName());
            }
            return names;
        }
    }
180325
public Collection<String> getPropertyNames() throws RepositoryException
   {

      HashSet<String> props = new HashSet<String>();
      for (HierarchicalProperty p : properties)
      {
         props.add(p.getStringName());
      }
      return props;

      // PropertyIterator iter = node.getProperties();
      // ArrayList<String> props = new ArrayList<String>();
      // while (iter.hasNext()) {
      // String name = iter.nextProperty().getName();
      // if (!"jcr:primaryType".equals(name) && !"jcr:mixinTypes".equals(name)
      // && !"jcr:data".equals(name) && !"jcr:uuid".equals(name))
      // props.add(name);
      // }
      // return props;
   }
272916
public String[] getInterfaces() {
        int size = mInterfaces.size();
        String[] names = new String[size];

        for (int i=0; i<size; i++) {
            names[i] = mInterfaces.get(i)
                .getType().getRootName();
        }

        return names;
    }