Package org.gatein.wsrp.registration

Examples of org.gatein.wsrp.registration.LocalizedString


      else
      {
         locale = getLocale(lang);
      }

      LocalizedString localizedString = new LocalizedString(wsrpLocalizedString.getValue(), locale);
      localizedString.setResourceName(wsrpLocalizedString.getResourceName());
      return localizedString;
   }
View Full Code Here


         ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(lang, "xml:lang", localName);
         Locale locale = WSRPUtils.getLocale(lang);

         String resourceName = attrs.getValue("resourceName");

         LocalizedString string = new LocalizedString();
         string.setLocale(locale);

         if (resourceName != null && resourceName.length() > 0)
         {
            string.setResourceName(resourceName);
         }

         return string;
      }
View Full Code Here

*/
public class LocalizedStringConverter implements Converter
{
   public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String s)
   {
      return (s == null || s.length() == 0) ? null : new LocalizedString(s);
   }
View Full Code Here

      ParameterValidation.throwIllegalArgExceptionIfNull(propertyDescription, "RegistrationPropertyDescription");
      PropertyDescription propDesc = WSRPTypeFactory.createPropertyDescription(propertyDescription.getName().toString(),
         propertyDescription.getType());

      // todo: deal with languages properly!!
      LocalizedString hint = propertyDescription.getHint();
      if (hint != null)
      {
         propDesc.setHint(convertToWSRPLocalizedString(hint));
      }
      LocalizedString label = propertyDescription.getLabel();
      if (label != null)
      {
         propDesc.setLabel(convertToWSRPLocalizedString(label));
      }
      return propDesc;
View Full Code Here

      else
      {
         locale = getLocale(lang);
      }

      LocalizedString localizedString = new LocalizedString(wsrpLocalizedString.getValue(), locale);
      localizedString.setResourceName(wsrpLocalizedString.getResourceName());
      return localizedString;
   }
View Full Code Here

TOP

Related Classes of org.gatein.wsrp.registration.LocalizedString

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.