Examples of Language


Examples of org.apache.jetspeed.om.portlet.Language

    @Override
    protected LanguageBean load()
    {
        PortletApplication app = locator.getPortletRegistry().getPortletApplication(paNodeBean.getApplicationName());
        PortletDefinition def = app.getPortlet(paNodeBean.getName());
        Language language = def.getLanguage(locale);
        return new LanguageBean(language);
    }
View Full Code Here

Examples of org.apache.jetspeed.om.portlet.Language

                    PortletDefinition def = app.getPortlet(paNodeBean.getName());
                   
                    if (newTitle != null && newShortTitle != null && newKeywords != null && newLocale != null)
                    {
                        Locale locale = new Locale(newLocale);
                        Language newLanguage = def.addLanguage(locale);
                        newLanguage.setTitle(newTitle);
                        newLanguage.setShortTitle(newShortTitle);
                        newLanguage.setKeywords(newKeywords);

                        newTitle = null;
                        newShortTitle = null;
                        newKeywords = null;
                        newLocale = null;
View Full Code Here

Examples of org.apache.jetspeed.om.portlet.Language

                bundleCache = portletResourceBundleCache.get(pdName);
            }
            bundle = bundleCache.get(locale);
            if (bundle == null)
            {
                Language l = pd.getLanguage(locale);
                if (pd.getResourceBundle() == null)
                {
                    bundle = new InlinePortletResourceBundle(l.getTitle(), l.getShortTitle(), l.getKeywords());
                }
                else
                {
                    ClassLoader paCl = classLoaderMap.get(paName);
                   
                    if (paCl == null)
                    {
                        throw new UnavailableException("Portlet Application " + paName + " not available");
                    }
                    ResourceBundle loadedBundle = loadResourceBundle(l.getLocale(), pd.getResourceBundle(), paCl);
                    if (loadedBundle != null)
                    {
                        bundle = new InlinePortletResourceBundle(l.getTitle(), l.getShortTitle(), l.getKeywords(), loadedBundle);
                    }
                    else
                    {
                        bundle = new InlinePortletResourceBundle(l.getTitle(), l.getShortTitle(), l.getKeywords());
                    }
                }
                bundleCache.put(locale, bundle);
            }
        }
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.scripting.api.language.Language

    public String getLanguageName(Class<? extends Language> languageType)
    {
        lazyInitCache();

        Language language = this.languageCache.get(languageType);

        if(language == null)
        {
            throw noScriptingLanguageAvailableFor(languageType);
        }
        return language.getName();
    }
View Full Code Here

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

    {
        HashSet localSet = new HashSet();
        Iterator itr = innerCollection.iterator();
        while (itr.hasNext())
        {
            Language lang = (Language) itr.next();
            localSet.add(lang.getLocale());
        }

        return localSet.iterator();
    }
View Full Code Here

Examples of org.apache.uima.cas.text.Language

  public void process(JCas aJCas) throws AnalysisEngineProcessException {

    this.logger.log(Level.INFO, "Snowball annotator starts processing");

    // get get stemmer for the document language
    String language = new Language(aJCas.getDocumentLanguage()).getLanguagePart();

    SnowballProgram stemmer = this.stemmers.get(language);

    // create stemms if stemmer for the current document language is available
    if (stemmer != null) {
View Full Code Here

Examples of org.aperteworkflow.editor.domain.Language

public class LanguageForm extends Form implements FormFieldFactory {

    private BeanItem<Language> item;
   
    public LanguageForm() {
        item = new BeanItem<Language>(new Language());

        setFormFieldFactory(this);
        setItemDataSource(item);
    }
View Full Code Here

Examples of org.axsl.i18n.Language

            throws HyphenationException {
        if (! testWord.toLowerCase().equals("hyphenation")) {
            throw new HyphenationException("Test of \"hyphenation\" has "
                    + "invalid input.");
        }
        final Language testLanguage = Language.findFromAlpha("en");
        final Hyphenation hyphenation = this.serverImplementation.hyphenate(
                testWord, 0, testWord.length(), testLanguage, null, 2, 2,
                false);
        assertNotNull(hyphenation);
        assertEquals(3, hyphenation.getPoints().length);
View Full Code Here

Examples of org.campware.dream.om.Language

    protected boolean getEntry(Criteria criteria, Context context)
    {
        try
        {
            Language entry = (Language) LanguagePeer.doSelect(criteria).get(0);
            context.put("entry", entry);
            return true;
        }
        catch (Exception e)
        {
View Full Code Here

Examples of org.carrot2.core.linguistic.Language

        // Initialize a new Lingo clustering component.
        ArrayList languageList = new ArrayList(languages.length);
        for (int i = 0; i < languages.length; i++) {
          final String lcode = languages[i];
          try {
            final Language lang = AllKnownLanguages.getLanguageForIsoCode(lcode);
            if (lang == null) {
              logger.warn("Language not supported in Carrot2: " + lcode);
            } else {
              languageList.add(lang);
              logger.debug("Language loaded: " + lcode);
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.