Returns the current formatter configuration.<p>

@param containerName the current container name

@return the current formatter configuration
776402
public CmsFormatterConfig getFormatterConfig(String containerName) {

        CmsFormatterConfig formatterConfig = null;
        if (m_formatters != null) {
            String formatterId = getSettings().get(CmsFormatterConfig.getSettingsKeyForContainer(containerName));
            if ((formatterId != null)
                && getFormatters().containsKey(containerName)
                && getFormatters().get(containerName).containsKey(formatterId)) {
                // if the settings contain the formatter id, use the matching config
                formatterConfig = getFormatters().get(containerName).get(formatterId);
            } else if (getFormatters().containsKey(containerName) && !getFormatters().get(containerName).isEmpty()) {
                // otherwise use the first entry for the given container
                formatterConfig = getFormatters().get(containerName).values().iterator().next();
            }
        }
        return formatterConfig;
    }
757845
public CmsResourceTypeConfig getResourceType(String typeName) {

        for (CmsResourceTypeConfig type : getResourceTypes()) {
            if (typeName.equals(type.getTypeName())) {
                return type;
            }
        }
        return null;
    }
309286
public static String getSerializedContainerInfo(CmsContainer container) throws Exception {

        return CmsGwtActionElement.serialize(I_CmsContainerpageService.class.getMethod("getContainerInfo"), container);
    }
1225445
public Configuration getConfiguration(String name) {
        Configuration[] values = getConfigurations(name);

        if (values == null) {
            return null;
        }

        return values[0];
    }
1226020
public static ImageWriter getWriter(String formatName) {
		ImageWriter writer = null;
		Iterator<ImageWriter> iter = ImageIO.getImageWritersByFormatName(formatName);
		if (iter.hasNext()) {
			writer = iter.next();
		}
		if (null == writer) {
			// 尝试扩展名获取
			iter = ImageIO.getImageWritersBySuffix(formatName);
			if (iter.hasNext()) {
				writer = iter.next();
			}
		}
		return writer;
	}
921450
public FormatSettingsManager getFormatSettingsManager() {
        if (formatSettingsManager != null) {
            return formatSettingsManager;
        }
        formatSettingsManager = (FormatSettingsManager) ContainerManager.getComponent("formatSettingsManager");
        return formatSettingsManager;
    }
7804
private function getMappingField(ContainerConfigurationInterface $containerConfiguration, $fieldName)
    {
        if (isset($this->fieldMapper[$fieldName])) {
            $fieldName = $this->fieldMapper[$fieldName];
        }

        try {
            $optionTextFieldName = $this->mappingHelper->getOptionTextFieldName($fieldName);
            $containerConfiguration->getMapping()->getField($optionTextFieldName);
            $fieldName = $optionTextFieldName;
        } catch (\Exception $e) {
            ;
        }

        return $fieldName;
    }
329666
public static String getFormat(String fileName) {
        int lastDot = fileName.lastIndexOf('.');
        if (lastDot == -1)
            return null;
        return getLanguage(fileName.substring(lastDot));
    }
509564
public CmsWorkplaceEditorConfiguration getEditorConfiguration(String name) {

        for (CmsWorkplaceEditorConfiguration config : m_editorConfigurations) {
            if (name.equals(config.getName())) {
                return config;
            }
        }
        return null;
    }
421188
@Override
  public Configuration getConfiguration() {
    return Tang.Factory.getTang().newConfigurationBuilder()
        .bindNamedParameter(TcpPortRangeBegin.class, String.valueOf(portRangeBegin))
        .bindNamedParameter(TcpPortRangeCount.class, String.valueOf(portRangeCount))
        .bindNamedParameter(TcpPortRangeTryCount.class, String.valueOf(portRangeTryCount))
        .bindSetEntry(EvaluatorConfigurationProviders.class, TcpPortConfigurationProvider.class)
        .build();
  }
866738
public Map<CmsUUID, I_CmsFormatterBean> getInactiveFormatters() {

        CmsFormatterConfigurationCacheState cacheState = getCachedFormatters();
        Map<CmsUUID, I_CmsFormatterBean> result = Maps.newHashMap(cacheState.getFormatters());
        result.keySet().removeAll(getActiveFormatters().keySet());
        return result;
    }
120297
private function getContainerConfiguration()
    {
        $containerName = $this->getRequest()->getParam('search_container_preview');

        $containerConfig = $this->containerConfigFactory->create(
            ['containerName' => $containerName, 'storeId' => $this->getOptimizer()->getStoreId()]
        );

        return $containerConfig;
    }
722011
public synchronized CmsContainerConfiguration getContainerConfiguration(String rootPath, String name) {

        String key = getCacheKey(rootPath);
        if (m_configurationsByPath.containsKey(key)) {
            CmsContainerConfigurationGroup group = m_configurationsByPath.get(key);
            CmsContainerConfiguration result = group.getConfiguration(name);
            return result;
        }
        return null;
    }
846563
public Map<CmsUUID, I_CmsFormatterBean> getActiveFormatters() {

        CmsFormatterConfigurationCacheState cacheState = getCachedFormatters();
        Map<CmsUUID, I_CmsFormatterBean> result = Maps.newHashMap(cacheState.getAutoEnabledFormatters());
        applyAllFormatterChanges(result, cacheState);
        return result;
    }
1044318
@Nullable
    public Container getContainerWithName(@Nonnull String name) {
        if (name == null || name.trim().length() == 0) {
            throw new IllegalArgumentException("A container name must be provided.");
        }

        for (Container container : getContainers()) {
            if (container.getName().equals(name)) {
                return container;
            }
        }

        return null;
    }
1180285
public java.lang.String getContainer() {
    java.lang.Object ref = container_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      container_ = s;
      return s;
    }
  }
401813
public function getContainerFormat($container)
    {
        if (isset($this->format[$container])) {
            return $this->format[$container];
        }

        return $this->defaultFormat;
    }