/*
(non-Javadoc)

@see
net.jawr.web.resource.handler.reader.ResourceBrowser#getResourceNames
(java.lang.String)
962526
@Override
	public Set<String> getResourceNames(String dirName) {
		Set<String> resourceNames = new TreeSet<>();

		List<ResourceBrowser> list = new ArrayList<>();
		list.addAll(resourceInfoProviders);
		for (ResourceBrowser rsBrowser : list) {
			if (generatorRegistry.isPathGenerated(dirName)) {
				if (rsBrowser instanceof ResourceGenerator) {
					ResourceGenerator rsGeneratorBrowser = (ResourceGenerator) rsBrowser;
					if (rsGeneratorBrowser.getResolver().matchPath(dirName)) {
						resourceNames.addAll(rsBrowser.getResourceNames(dirName));
						break;
					}
				}
			} else {
				if (!(rsBrowser instanceof ResourceGenerator)) {
					resourceNames.addAll(rsBrowser.getResourceNames(dirName));
					break;
				}
			}
		}

		return resourceNames;
	}
200946
public List<URL> getURLs() {
        final List<URL> resourceURLs = new ArrayList<>(this.size());
        for (final Resource resource : this) {
            resourceURLs.add(resource.getURL());
        }
        return resourceURLs;
    }
238692
@Override
  public Collection<String> getNames(final String name) throws OptionsException {
    if (useSystemwideValues) {
      return getNames(optionsRoot, makePathElements(name), -1);
    }

    return getNames(localOptionsRoot, makePathElements(name), -1);
  }
1319788
@Override
	public final Enumeration<String> getPropertyNames()
    {
    	assertDeserializationLevel(MessageSerializationLevel.ALL_HEADERS);
    	
    	if (propertyMap == null)
    		return new EmptyEnumeration<>();
    		
        return new IteratorEnumeration<>(propertyMap.keySet().iterator());
    }
811204
public Collection<String> getActualDatasourceNames() {
        Collection<String> result = new LinkedHashSet<>(actualDataNodes.size());
        for (DataNode each : actualDataNodes) {
            result.add(each.getDataSourceName());
        }
        return result;
    }
840607
def get_name(self, r):
        """"""
        namer = ResourceNameAdapters[self.manager.resource_type.service]
        return namer(r)
825436
String getResourceName() {
        if (!resourceNameKnown) {
            // The resource name of a classfile can only be determined by
            // reading
            // the file and parsing the constant pool.
            // If we can't do this for some reason, then we just
            // make the resource name equal to the filename.

            try {
                resourceName = getClassDescriptor().toResourceName();
            } catch (Exception e) {
                resourceName = fileName;
            }

            resourceNameKnown = true;
        }
        return resourceName;
    }
1154825
public java.util.List<ResourceTagSet> getResourceTagSets() {
        if (resourceTagSets == null) {
            resourceTagSets = new com.amazonaws.internal.SdkInternalList<ResourceTagSet>();
        }
        return resourceTagSets;
    }
879894
public List<ResourceRefType<WebAppDescriptor>> getAllResourceRef()
   {
      List<ResourceRefType<WebAppDescriptor>> list = new ArrayList<ResourceRefType<WebAppDescriptor>>();
      List<Node> nodeList = model.get("resource-ref");
      for(Node node: nodeList)
      {
         ResourceRefType<WebAppDescriptor>  type = new ResourceRefTypeImpl<WebAppDescriptor>(this, "resource-ref", model, node);
         list.add(type);
      }
      return list;
   }
1354920
public Collection<String> getDataSourceNames() {
        Collection<String> result = new HashSet<>(tableUnits.size(), 1);
        for (TableUnit each : tableUnits) {
            result.add(each.getDataSourceName());
        }
        return result;
    }
1210126
public static List<String> findIndexNames(final String root) throws IOException, URISyntaxException {
        if (root == null) {
            return findIndexNames();
        }

        logger.debug("Looking for indices in classpath under [{}].", root);

        final List<String> indexNames = new ArrayList<>();
        final Set<String> keys = new HashSet<>();
        String[] resources = ResourceList.getResources(root + "/"); // "es/" or "a/b/c/"
        for (String resource : resources) {
            if (!resource.isEmpty()) {
                logger.trace(" - resource [{}].", resource);
                String key;
                if (resource.contains("/")) {
                    key = resource.substring(0, resource.indexOf("/"));
                } else {
                    key = resource;
                }
                if (!key.equals(Defaults.TemplateDir) && !keys.contains(key)) {
                    logger.trace(" - found [{}].", key);
                    keys.add(key);
                    indexNames.add(key);
                }
            }
        }

        return indexNames;
    }
617948
protected Map<String, String> getConnPropsByDataSourceName(final String dataSourceName) {
		return connProps.computeIfAbsent(dataSourceName, k -> new ConcurrentHashMap<>());
	}
234624
@Override
	public Set<String> getResourceNames(String path) {
		return ((WebJarsLocatorPathResolver)resolver).getResourceNames(path);
	}
1254860
public static List<String> getResourceLines(String resourceName) throws IOException {
        InputStreamReader isreader = null;
        BufferedReader reader = null;
        try {
            isreader = new InputStreamReader(Util.class.getResourceAsStream(resourceName));
            reader = new BufferedReader(isreader);
            List<String> lines = new ArrayList<String>();
            String tmp;
            while ((tmp = reader.readLine()) != null) {
                lines.add(tmp);
            }
            return lines;
        } finally {
            closeQuietly(reader);
            closeQuietly(isreader);
        }
    }
1138348
@Override
	public List<PathMapping> getPathMappings(JoinableResourceBundle bundle, String resourcePath,
			ResourceReaderHandler rsReader) {

		List<PathMapping> pathMappings = new ArrayList<>();
		PathMapping pathMapping = null;
		GeneratorMappingHelper helper = new GeneratorMappingHelper(resourcePath);
		String path = resolver.getResourcePath(helper.getPath());
		String[] names = path.split(RESOURCE_BUNDLE_SEPARATOR);

		for (String resourceName : names) {

			path = resourceName.replace(PACKAGE_SEPARATOR, JawrConstant.URL_SEPARATOR_CHAR);
			path = control.toBundleName(path, new Locale("", "")) + PROPERTIES_FILE_SUFFIX;
			URL rbURL = LocaleUtils.getResourceBundleURL(path, config.getContext());
			if (rbURL != null) {
				String strURL = rbURL.toString();
				// returns the path mapping only if the MessageBundle are on a
				// filesystem
				if (strURL.startsWith(JawrConstant.FILE_URL_PREFIX)) {
					String parentPath = "/WEB-INF/classes/" + PathNormalizer.getParentPath(path);
					String resourceBundleName = FileNameUtils.getBaseName(path);
					MessageBundleFileFilter filter = new MessageBundleFileFilter(resourceBundleName);
					pathMapping = new PathMapping(bundle, parentPath, filter);
					pathMappings.add(pathMapping);
				}
			}
		}
		return pathMappings;
	}
744156
public Collection<String> getDataSourceNames(final String shardingSchemaName) {
        return schemaGroup.containsKey(shardingSchemaName) ? schemaGroup.get(shardingSchemaName) : Collections.<String>emptyList();
    }
1057445
public static String getResourceName(Resource resource) {
        String result = null;
        if (resource != null) {
            String name = resource.getName();
            if (ResourceUtil.CONTENT_NODE.equals(name)) {
                result = getResourceName(resource.getParent());
            } else {
                result = name;
            }
        }
        return result;
    }