Examples of ResourceValue


Examples of com.android.ide.common.rendering.api.ResourceValue

                    // At this time, no support for ?type/name where type is not "attr"
                    return null;
                }

                // Now look for the item in the theme, starting with the current one.
                ResourceValue item = findItemInTheme(resource.name, forceFrameworkOnly || resource.framework);
                if (item == null && mLogger != null) {
                    mLogger.warning(LayoutLog.TAG_RESOURCES_RESOLVE_THEME_ATTR,
                            String.format("Couldn't find theme resource %1$s for the current theme",
                                    reference),
                            new ResourceValue(ResourceType.ATTR, reference, resource.framework));
                }

                return item;
            } else {
                return findResValue(resource.type, resource.name,
View Full Code Here

Examples of com.android.ide.common.rendering.api.ResourceValue

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

        // get the ResourceValue referenced by this value
        ResourceValue resValue = findResValue(value, isFrameworkValue);

        // if resValue is null, but value is not null, this means it was not a reference.
        // we return the name/value wrapper in a ResourceValue. the isFramework flag doesn't
        // matter.
        if (resValue == null) {
            return new ResourceValue(type, name, value, isFrameworkValue);
        }

        // we resolved a first reference, but we need to make sure this isn't a reference also.
        return resolveResValue(resValue);
    }
View Full Code Here

Examples of com.android.ide.common.rendering.api.ResourceValue

        if (value == null) {
            return resValue;
        }

        // else attempt to find another ResourceValue referenced by this one.
        ResourceValue resolvedResValue = findResValue(value, resValue.isFramework());

        // if the value did not reference anything, then we simply return the input value
        if (resolvedResValue == null) {
            return resValue;
        }
View Full Code Here

Examples of edu.umd.cs.findbugs.ba.ResourceValue

                ResourceValueFrame frame) throws DataflowAnalysisException {

            if (!mightCloseResource(basicBlock, handle, cpg)) {
                return false;
            }
            ResourceValue topValue = frame.getTopValue();
            return topValue.isInstance();

        }
View Full Code Here

Examples of org.apache.myfaces.commons.resourcehandler.resource.ResourceHandlerCache.ResourceValue

        String redirectedLibraryName = resolveLibraryName(expectedLibraryName);

        // check cache
        if(getResourceLoaderCache().containsResource(resourceName, redirectedLibraryName, contentType, localePrefix))
        {
            ResourceValue resourceValue = getResourceLoaderCache().getResource(
                    resourceName, redirectedLibraryName, contentType, localePrefix);
           
            //resource = new ResourceImpl(resourceValue.getResourceMeta(), resourceValue.getResourceLoader(),
            //        getResourceHandlerSupport(), contentType);
            resource = new ExtendedResourceImpl((ExtendedResourceMeta) resourceValue.getResourceMeta(), resourceValue.getResourceLoader(),
                    getResourceHandlerSupport(), contentType, localePrefix, redirectedLibraryName.equals(expectedLibraryName) ? null : expectedLibraryName);
        }
        else
        {
            for (ResourceLoader loader : getResourceHandlerSupport().getResourceLoaders())
View Full Code Here

Examples of org.apache.myfaces.commons.resourcehandler.resource.ResourceHandlerCache.ResourceValue

        String redirectedLibraryName = resolveLibraryName(expectedLibraryName);

        // check cache
        if(getResourceLoaderCache().containsResource(resourceName, redirectedLibraryName, contentType, localePrefix))
        {
            ResourceValue resourceValue = getResourceLoaderCache().getResource(
                    resourceName, redirectedLibraryName, contentType, localePrefix);
           
            //resource = new ResourceImpl(resourceValue.getResourceMeta(), resourceValue.getResourceLoader(),
            //        getResourceHandlerSupport(), contentType);
            resource = new ExtendedResourceImpl((ExtendedResourceMeta) resourceValue.getResourceMeta(),
                                     resourceValue.getResourceLoader(),
                                     getResourceHandlerSupport(),
                                     contentType, localePrefix,
                                     redirectedLibraryName.equals(expectedLibraryName) ? null : expectedLibraryName);
        }
        else
View Full Code Here

Examples of org.apache.myfaces.shared.resource.ResourceHandlerCache.ResourceValue

        final String localePrefix = getLocalePrefixForLocateResource();

        // check cache
        if(getResourceLoaderCache().containsResource(resourceName, libraryName, contentType, localePrefix))
        {
            ResourceValue resourceValue = getResourceLoaderCache().getResource(
                    resourceName, libraryName, contentType, localePrefix);
           
            resource = new ResourceImpl(resourceValue.getResourceMeta(), resourceValue.getResourceLoader(),
                    getResourceHandlerSupport(), contentType);
        }
        else
        {
            for (ResourceLoader loader : getResourceHandlerSupport().getResourceLoaders())
View Full Code Here

Examples of org.apache.myfaces.shared.resource.ResourceHandlerCache.ResourceValue

        final String localePrefix = getLocalePrefixForLocateResource();

        // check cache
        if(getResourceLoaderCache().containsResource(resourceName, libraryName, contentType, localePrefix))
        {
            ResourceValue resourceValue = getResourceLoaderCache().getResource(
                    resourceName, libraryName, contentType, localePrefix);
           
            resource = new ResourceImpl(resourceValue.getResourceMeta(), resourceValue.getResourceLoader(),
                    getResourceHandlerSupport(), contentType);
        }
        else
        {
            for (ResourceLoader loader : getResourceHandlerSupport().getResourceLoaders())
View Full Code Here

Examples of org.apache.myfaces.shared.resource.ResourceHandlerCache.ResourceValue

        final String localePrefix = getLocalePrefixForLocateResource();

        // check cache
        if(getResourceLoaderCache().containsResource(resourceName, libraryName, contentType, localePrefix))
        {
            ResourceValue resourceValue = getResourceLoaderCache().getResource(
                    resourceName, libraryName, contentType, localePrefix);
           
            resource = new ResourceImpl(resourceValue.getResourceMeta(), resourceValue.getResourceLoader(),
                    getResourceHandlerSupport(), contentType);
        }
        else
        {
            for (ResourceLoader loader : getResourceHandlerSupport().getResourceLoaders())
View Full Code Here

Examples of org.apache.myfaces.shared.resource.ResourceHandlerCache.ResourceValue

        final String localePrefix = getLocalePrefixForLocateResource();

        // check cache
        if(getResourceLoaderCache().containsResource(resourceName, libraryName, contentType, localePrefix))
        {
            ResourceValue resourceValue = getResourceLoaderCache().getResource(
                    resourceName, libraryName, contentType, localePrefix);
           
            resource = new ResourceImpl(resourceValue.getResourceMeta(), resourceValue.getResourceLoader(),
                    getResourceHandlerSupport(), contentType);
        }
        else
        {
            for (ResourceLoader loader : getResourceHandlerSupport().getResourceLoaders())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.