Package org.gatein.wsrp.registration

Examples of org.gatein.wsrp.registration.LocalizedString


   public abstract void setLabel(String label);

   public void initFrom(RegistrationPropertyDescription desc)
   {
      LocalizedString description = desc.getDescription();
      if (description != null)
      {
         setDescription(description.getValue());
      }
      LocalizedString hint = desc.getHint();
      if (hint != null)
      {
         setHint(hint.getValue());
      }
      LocalizedString label = desc.getLabel();
      if (label != null)
      {
         setLabel(label.getValue());
      }

      // convert QNames to Strings
      setName(desc.getName().toString());
      setType(desc.getType().toString());
View Full Code Here


         desc.setDefaultDescription(description);
      }
      String hint = getHint();
      if (!ParameterValidation.isNullOrEmpty(hint))
      {
         desc.setHint(new LocalizedString(hint));
      }
      String label = getLabel();
      if (!ParameterValidation.isNullOrEmpty(label))
      {
         desc.setLabel(new LocalizedString(label));
      }

      return desc;
   }
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 = WSRPUtils.getLocale(lang);
      }

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

   public abstract void setLabel(String label);

   public void initFrom(RegistrationPropertyDescription desc)
   {
      LocalizedString description = desc.getDescription();
      if (description != null)
      {
         setDescription(description.getValue());
      }
      LocalizedString hint = desc.getHint();
      if (hint != null)
      {
         setHint(hint.getValue());
      }
      LocalizedString label = desc.getLabel();
      if (label != null)
      {
         setLabel(label.getValue());
      }

      // convert QNames to Strings
      setName(desc.getName().toString());
      setType(desc.getType().toString());
View Full Code Here

         desc.setDefaultDescription(description);
      }
      String hint = getHint();
      if (!ParameterValidation.isNullOrEmpty(hint))
      {
         desc.setHint(new LocalizedString(hint));
      }
      String label = getLabel();
      if (!ParameterValidation.isNullOrEmpty(label))
      {
         desc.setLabel(new LocalizedString(label));
      }

      return desc;
   }
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

      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

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.