Returns a default primitive configuration.

@param name the primitive name
@param <C>  the configuration type
@return the primitive configuration
541804
@SuppressWarnings("unchecked")
  public <C extends PrimitiveConfig<C>> C getPrimitiveDefault(String name) {
    return (C) primitiveDefaults.get(name);
  }
1227665
public String getInitParameter(String name) {
        FilterConfig fc = getFilterConfig();
        if (fc == null) {
            throw new IllegalStateException("FilterConfig not initialized");
        }
        return fc.getInitParameter(name);
    }
303240
public static void addDefaultResource(String name) {
        // The lock hierarchy is that we must always lock
        // instances before locking the class. Since reloadConfiguration
        // is synchronized on the instance, we must not call conf.reloadConfiguration
        // while holding a lock on Configuration.class. Otherwise we could deadlock
        // if that conf is attempting to lock the Class
        ArrayList<Configuration> toReload;
        synchronized (Configuration.class) {
            if (defaultResources.contains(name)) {
                return;
            }
            defaultResources.add(name);
            // Make a copy so we don't iterate while not holding the lock
            toReload = new ArrayList<>(REGISTRY.size());
            toReload.addAll(REGISTRY.keySet());
        }
        for (Configuration conf : toReload) {
            if (conf.loadDefaults) {
                conf.reloadConfiguration();
            }
        }
    }
509564
public CmsWorkplaceEditorConfiguration getEditorConfiguration(String name) {

        for (CmsWorkplaceEditorConfiguration config : m_editorConfigurations) {
            if (name.equals(config.getName())) {
                return config;
            }
        }
        return null;
    }
566346
public static boolean isJavaBasicType(@Nullable String name) {
        if (StringUtils.isEmpty(name)) {
            return false;
        }
        return isJavaLangType(name) || BASIC_TYPE_MAP.containsKey(name);
    }
975381
final LoggerConfig get(String name) {
		final LoggerConfig config = new LoggerConfig();

		if (categories.isEmpty()) {
			config.merge(LoggerConfig.DEFAULT);
			return config;
		}

		if (name == null) {
			name = "";
		}

		while (true) {
			final int index = name.lastIndexOf('.');

			if (config.merge(categories.get(name)))
				return config;

			if (index != -1) {
				name = name.substring(0, index);
			} else {
				if (!config.merge(categories.get(""))) {
					config.merge(LoggerConfig.DEFAULT);
				}
				return config;
			}
		}
	}
158330
public InputStream openConfig(String name) {
        InputStream is = null;
        String configPath = configHome + "/" + name;

        try {
            return FileUtils.readResource(configPath);
        } catch (Throwable e) {
            LOG.debug("Config " + name + " (" + configPath + ") not found", e);
        }

        return is;
    }
300293
private function getPrimitiveByName(string $name): Primitive
    {
        foreach ($this->primitives as $primitive) {
            if ($primitive->getName() == $name) {
                return $primitive;
            }
        }
        
        throw new \Exception("Primitive not found");
    }
750130
public Config getChild(String name)
  {
    Params.notNullOrEmpty(name, "Child name");
    for(Config child : children) {
      if(child.name.equals(name)) {
        return child;
      }
    }
    return null;
  }
412074
public static Optional<Class> getPrimitiveType(String primitiveType) {
        return Optional.ofNullable(PRIMITIVE_TYPE_MAP.get(primitiveType));
    }
1100461
public static String getProperty(String name) {
        if (propertyProvider == null) {
            initPropertyProvider();
        }
        
        return propertyProvider.getProperty(name);
    }
521542
public Collection<Object> getPropertyOrDefault(final String name, final Object... defaultValues) {
        if (this.properties.containsKey(name)) {
            return this.properties.get(name);
        }
        return Arrays.stream(defaultValues).collect(Collectors.toList());
    }
46443
public JSONObject getJsonConfig(String name) throws IOException, 
                                                       JSONException {
    if (name.endsWith(".xml")) {
      URL url = getResource(MATERIALIZEDJSON);
      if (url != null) {
        InputStream in = url.openStream();
        if (in != null) {
          JSONObject json = instantiateJsonObject(in);
          if (json.has(xmlToThrift(name))) {
            return json.getJSONObject(xmlToThrift(name));
          } 
        }
      }
    }
    return null;
  }
841428
public static Specification<JpaDistributionSetType> byName(final String name) {
        return (targetRoot, query, cb) -> cb.equal(targetRoot.<String> get(JpaDistributionSetType_.name), name);
    }
460312
public String getOutputProperty(String name) {
        String val = getOutputPropertyNonDefault(name);
        // If no explicit value, try to get the default value
        if (val == null)
            val = getOutputPropertyDefault(name);
        return val;
        
    }
552225
@Override
    public <T> T get(String name) {
        return (T) config.get(name);
    }
202470
public ConfigurationItem getDefaultItem(final String name) {
    if(name==null) throw new IllegalArgumentException("The passed name was null");
    return defaultConfItems.get(name);
  }