Package org.apache.hivemind.util

Examples of org.apache.hivemind.util.LocalizedNameGenerator.more()


    {
        List result = new ArrayList();

        LocalizedNameGenerator g = new LocalizedNameGenerator(_baseName, locale, EXTENSION);

        while (g.more())
        {
            String name = g.next();

            Localization l = new Localization(g.getCurrentLocale(), _baseResource
                    .getRelativeResource(name));
View Full Code Here


     */
    public String getPropertyValue(String propertyName)
    {try { __CLOVER_397_0.M[2160]++;
        __CLOVER_397_0.S[8848]++;LocalizedNameGenerator generator = new LocalizedNameGenerator(propertyName, getLocale(), "");

        __CLOVER_397_0.S[8849]++;while ((((generator.more()) && (++__CLOVER_397_0.CT[1490] != 0)) || (++__CLOVER_397_0.CF[1490] == 0))){
        {
            __CLOVER_397_0.S[8850]++;String candidateName = generator.next();

            __CLOVER_397_0.S[8851]++;String value = super.getPropertyValue(candidateName);
            __CLOVER_397_0.S[8852]++;if ((((value != null) && (++__CLOVER_397_0.CT[1491] != 0)) || (++__CLOVER_397_0.CF[1491] == 0))){
View Full Code Here

        String baseName = descriptorName.substring(0, dotx);

        LocalizedNameGenerator g = new LocalizedNameGenerator(baseName, _locale, ".properties");
        List urls = new ArrayList();

        while (g.more())
        {
            String name = g.next();
            Resource l = moduleLocation.getRelativeResource(name);
            URL url = l.getResourceURL();
View Full Code Here

        String baseName = descriptorName.substring(0, dotx);

        LocalizedNameGenerator g = new LocalizedNameGenerator(baseName, _locale, ".properties");
        List urls = new ArrayList();

        while (g.more())
        {
            String name = g.next();
            Resource l = moduleLocation.getRelativeResource(name);
            URL url = l.getResourceURL();
View Full Code Here

       
        String baseName = alternateName == null ? extractBaseName(resource) : alternateName;
       
        LocalizedNameGenerator g = new LocalizedNameGenerator(baseName, locale, SUFFIX);
       
        while(g.more())
        {
            String localizedName = g.next();
            Locale l = g.getCurrentLocale();
           
            Resource localizedResource = resource.getRelativeResource(localizedName);
View Full Code Here

    {
        Defense.notNull(propertyName, "propertyName");

        LocalizedNameGenerator g = new LocalizedNameGenerator(propertyName, locale, "");

        while (g.more())
        {
            String localizedName = g.next();

            String result = _source.getPropertyValue(localizedName);
View Full Code Here

        }

        LocalizedNameGenerator generator = new LocalizedNameGenerator(basePath,
                locale, suffix);

        while(generator.more())
        {
            String candidatePath = generator.next();

            if (isExistingResource(candidatePath))
                return new LocalizedResource(candidatePath, generator.getCurrentLocale());
View Full Code Here

            baseName = extractBaseName(resource);
        }

        LocalizedNameGenerator g = new LocalizedNameGenerator(baseName, locale, SUFFIX);

        while(g.more())
        {
            String localizedName = g.next();
            Locale l = g.getCurrentLocale();

            Resource localizedResource = resource.getRelativeResource(localizedName);
View Full Code Here

            baseName = extractBaseName(resource);
        }

        LocalizedNameGenerator g = new LocalizedNameGenerator(baseName, locale, "");

        while(g.more())
        {
            String localizedName = g.next();
            Locale l = g.getCurrentLocale();

            Resource localizedResource = _resourceResolver.findComponentResource(component, null, localizedName, SUFFIX, null);
View Full Code Here

    public void testBasic()
    {
        LocalizedNameGenerator g = new LocalizedNameGenerator("basic", Locale.US, ".test");

        assertTrue(g.more());
        assertEquals("basic_en_US.test", g.next());

        assertTrue(g.more());
        assertEquals("basic_en.test", g.next());
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.