Package org.apache.pluto.om.common

Examples of org.apache.pluto.om.common.Description


     * @return Localized text string of the display name or <code>null</code>
     *         if no Description exists for this locale
     */
    public String getDescriptionText( Locale locale )
    {
        Description desc = getDescription(locale);
        if (desc != null)
        {
            return desc.getDescription();
        }
        return null;
    }
View Full Code Here


                preference.getName(), list);

        Iterator descItr = newPref.getDescriptions();
        while (descItr.hasNext())
        {
            Description desc = (Description) descItr.next();
            newPref.addDescription(desc.getLocale(), desc.getDescription());
        }

    }
View Full Code Here

     * @deprecated
     * @return
     */
    public String getDescription()
    {
        Description desc = getDescription(Locale.getDefault());
        if (desc != null)
        {
            return desc.getDescription();
        }
        return null;
    }
View Full Code Here

            throw new IllegalArgumentException("The Locale argument cannot be null");
        }

        // TODO: This may cause concurrent modification exceptions
        Iterator itr = iterator();
        Description fallBack = null;
        while (itr.hasNext())
        {
            Description desc = (Description) itr.next();
            if (desc.getLocale().equals(arg0))
            {
                return desc;
            }
            // set fall back if we have a Locale that only has
            // language set.
            if (desc.getLocale().getLanguage().equals(arg0.getLanguage()))
            {
                fallBack = desc;
            }
        }
        return fallBack;
View Full Code Here

TOP

Related Classes of org.apache.pluto.om.common.Description

Copyright © 2018 www.massapicom. 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.