Examples of LocalizedString


Examples of org.jboss.portal.common.i18n.LocalizedString

         {
            tmp.put(Locale.ENGLISH, inlines[i]);
         }

         //
         LocalizedString ls = new LocalizedString(tmp, Locale.ENGLISH);
         containerMeta.addMetaValue(key, ls);
      }

      // Add stuff coming from deployment descriptor
      containerMeta.addMetaValue(MetaInfo.DESCRIPTION, portletMD.getDescription());
View Full Code Here

Examples of org.jboss.portal.common.i18n.LocalizedString

         //
         for (PortletPreferenceMetaData portletPreferenceMD : preferencesMD.getPortletPreferences().values())
         {
            List<String> value = portletPreferenceMD.getValue();
            LocalizedString displayName = bundleMgr.getLocalizedValue("javax.portlet.preference.name." + portletPreferenceMD.getName(), portletPreferenceMD.getName());
            LocalizedString description = bundleMgr.getLocalizedValue("javax.portlet.preference.description." + portletPreferenceMD.getName(), portletPreferenceMD.getName());
            containerPreferences.addContainerPreference(portletPreferenceMD.getName(), value, portletPreferenceMD.isReadOnly(), displayName, description);
         }
      }

      //
View Full Code Here

Examples of org.oasis.wsrp.v1.LocalizedString

         if (keywordsNb > 0)
         {
            StringBuffer sb = new StringBuffer();
            for (int i = 0; i < keywordsNb; i++)
            {
               LocalizedString keyword = keywords.get(i);
               sb.append(keyword.getValue());
               if (i != keywordsNb - 1)
               {
                  sb.append(","); // not the last one, so concatenate a comma to separate
               }
            }
View Full Code Here

Examples of org.oasis.wsrp.v2.LocalizedString

         if (keywordsNb > 0)
         {
            StringBuffer sb = new StringBuffer();
            for (int i = 0; i < keywordsNb; i++)
            {
               LocalizedString keyword = keywords.get(i);
               sb.append(keyword.getValue());
               if (i != keywordsNb - 1)
               {
                  sb.append(","); // not the last one, so concatenate a comma to separate
               }
            }
View Full Code Here

Examples of org.opensaml.saml2.metadata.LocalizedString

    protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
        if (attribute.getLocalName().equals(LangBearing.XML_LANG_ATTR_LOCAL_NAME)
                && SAMLConstants.XML_NS.equals(attribute.getNamespaceURI())) {
            LocalizedURI uri = (LocalizedURI) samlObject;

            LocalizedString uriStr = uri.getURI();
            if (uriStr == null) {
                uriStr = new LocalizedString();
            }

            uriStr.setLanguage(attribute.getValue());
            uri.setURI(uriStr);
        }
    }
View Full Code Here

Examples of org.pentaho.metadata.model.concept.types.LocalizedString

    if (String.class.equals(type) == false)
    {
      return null;
    }

    final LocalizedString settings = (LocalizedString) value;
    final Locale locale = context.getLocale();
    final String localeAsText = locale.toString();
    final Object o = settings.getLocalizedString(localeAsText);
    if (o == null)
    {
      logger.warn("Unable to translate localized-string property for locale [" + locale + "]. " +
          "The localization does not contain a translation for this locale and does not provide a fallback.");
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.extensions.datasources.olap4j.types.LocalizedString

      {
        return Boolean.valueOf(cell.isHidden());
      }
      if (name.equals(MDXMetaAttributeNames.MDX_CAPTION))
      {
        return new LocalizedString(cell, false);
      }
      if (name.equals(MDXMetaAttributeNames.MDX_DESCRIPTION))
      {
        return new LocalizedString(cell, false);
      }

      final Object attribute = cell.getPropertyValue(Property.StandardMemberProperty.valueOf(name));
      if (attribute == null)
      {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.extensions.datasources.olap4j.types.LocalizedString

      {
        return Boolean.valueOf(cell.isHidden());
      }
      if (name.equals(MDXMetaAttributeNames.MDX_CAPTION))
      {
        return new LocalizedString(cell, false);
      }
      if (name.equals(MDXMetaAttributeNames.MDX_DESCRIPTION))
      {
        return new LocalizedString(cell, false);
      }

      try
      {
        final Property.StandardMemberProperty property = Property.StandardMemberProperty.valueOf(name);
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.