Returns if there are alternative formatters available for the given container.<p>

@param containerName the container name

@return <code>true</code> if there are alternative formatters available for the given container
774219
public boolean hasAlternativeFormatters(String containerName) {

        return (m_formatters.get(containerName) != null) && (m_formatters.get(containerName).size() > 1);
    }
759173
public static boolean isContainer(final IRI ldpType) {
        return LDP.Container.equals(ldpType) || LDP.BasicContainer.equals(ldpType)
            || LDP.DirectContainer.equals(ldpType) || LDP.IndirectContainer.equals(ldpType);
    }
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;
    }
49383
public boolean setContainer(C container) {
		this.mapContainer = container == null ? null : new WeakReference<>(container);
		return true;
	}
352773
List<CmsContainer> getEditableContainers() {

        List<CmsContainer> containers = new ArrayList<CmsContainer>();
        for (CmsContainer container : m_containers.values()) {
            if ((m_targetContainers.get(container.getName()) != null)
                && isContainerEditable(m_targetContainers.get(container.getName()))) {
                containers.add(container);
            }
        }
        return containers;
    }
1079229
public boolean contains(Container subset) {
    if(subset instanceof RunContainer) {
      return contains((RunContainer)subset);
    } else if(subset instanceof ArrayContainer) {
      return contains((ArrayContainer) subset);
    } else if(subset instanceof BitmapContainer){
      return contains((BitmapContainer)subset);
    }
    return false;
  }
1363073
protected boolean isInvalidResourceName(String resourceName) {

        if (resourceName == null) {
            return true;
        }
        try {

            m_cms.readResource(resourceName);
            return false;
        } catch (CmsException e) {
            //Ok, resource not valid..
        }
        return true;
    }
1141986
public boolean isCachedAtomContainer(IAtomContainer container) {
        if (cachedDescriptorValues == null) return false;
        return (cachedDescriptorValues.get(PREVIOUS_ATOMCONTAINER) == container);
    }
1055005
public List<I_CmsFormatterBean> getAllMatchingFormatters(String containerTypes, int containerWidth) {

        return new ArrayList<I_CmsFormatterBean>(
            Collections2.filter(m_allFormatters, new MatchesTypeOrWidth(containerTypes, containerWidth)));

    }
439017
public boolean hasMethod(final String methodName) {
        for (final ClassInfo ci : getOverrideOrder()) {
            if (ci.hasDeclaredMethod(methodName)) {
                return true;
            }
        }
        return false;
    }
1181550
private boolean isValidTemplateElement(String template, String element) {

        List elements = new ArrayList(getTemplateElements(template));
        Iterator i = elements.iterator();
        while (i.hasNext()) {
            CmsDialogElement currElement = (CmsDialogElement)i.next();
            if (element.equals(currElement.getName())) {
                return true;
            }
        }

        return false;
    }
883861
public boolean hasColumn(String columnName) {
        Integer idx = columnNamesIndex.get(columnName);
        return idx != null;
    }
1180742
private boolean hasNextSafely(Iterator iterator) {
        try {
            /* Throw a ServiceConfigurationError if a provider-configuration file violates the specified format,
+            or if it names a provider class that cannot be found and instantiated, or if the result of
+            instantiating the class is not assignable to the service type, or if any other kind of exception
+            or error is thrown as the next provider is located and instantiated.
+            @see http://docs.oracle.com/javase/7/docs/api/java/util/ServiceLoader.html#iterator()
+            */
            return iterator.hasNext();
        } catch (Exception e) {
            LOGGER.error("iterator.hasNext() failed", e);
            return false;
        }
    }
437808
private String findContainerId(String imageNameOrAlias, boolean checkAllContainers) throws DockerAccessException {
        String id = lookupContainer(imageNameOrAlias);

        // check for external container. The image name is interpreted as a *container name* for that case ...
        if (id == null) {
            Container container = queryService.getContainer(imageNameOrAlias);
            if (container != null && (checkAllContainers || container.isRunning())) {
                id = container.getId();
            }
        }
        return id;
    }
667822
@Override
    public boolean hasRemoteObjectWithPrefix(String appName, String moduleName, String compName, String namespaceString, String name) throws NamingException {
        boolean b = false;
        NamingConstants.JavaColonNamespace namespace = NamingConstants.JavaColonNamespace.fromName(namespaceString);
        ComponentMetaData cmd = getCMD(appName, moduleName, compName, namespace);
        try {
            ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().beginContext(cmd);

            Iterator<RemoteJavaColonNamingHelper> remoteJCNHelpers = remoteJavaColonNamingHelpers.getServices();
            while (remoteJCNHelpers.hasNext()) {
                RemoteJavaColonNamingHelper helper = remoteJCNHelpers.next();
                b = helper.hasRemoteObjectWithPrefix(namespace, name);
                if (b == true)
                    break;
            }
        } finally {
            ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().endContext();
        }
        return b;
    }
1330660
public boolean isCacheContainer(String cacheContainerName) throws Exception {
        Address addr = Address.root().add(SUBSYSTEM, SUBSYSTEM_INFINISPAN);
        String haystack = CACHE_CONTAINER;
        return null != findNodeInList(addr, haystack, cacheContainerName);
    }
621905
private I_CmsFormatterBean getFormatterForElement(CmsContainerElementBean containerElement) {

        if ((containerElement != null)
            && (containerElement.getFormatterId() != null)
            && !containerElement.getFormatterId().isNullUUID()) {
            CmsUUID formatterId = containerElement.getFormatterId();

            // find formatter config setting
            for (Entry<String, String> settingEntry : containerElement.getIndividualSettings().entrySet()) {
                if (settingEntry.getKey().startsWith(CmsFormatterConfig.FORMATTER_SETTINGS_KEY)) {
                    String formatterConfigId = settingEntry.getValue();
                    if (CmsUUID.isValidUUID(formatterConfigId)) {
                        I_CmsFormatterBean formatter = OpenCms.getADEManager().getCachedFormatters(
                            false).getFormatters().get(new CmsUUID(formatterConfigId));
                        if (formatterId.equals(formatter.getJspStructureId())) {
                            return formatter;
                        }
                    }
                }
            }
        }
        return null;
    }