Package org.gatein.wsrp.registration

Examples of org.gatein.wsrp.registration.RegistrationPropertyDescription


   {
      ParameterValidation.throwIllegalArgExceptionIfNull(propertyDescription, "PropertyDescription");
      QName name = propertyDescription.getName();
      ParameterValidation.throwIllegalArgExceptionIfNull(name, "Property name");

      final RegistrationPropertyDescription old = registrationProperties.put(name, propertyDescription);
      if (modifyNowIfNeeded(old, propertyDescription))
      {
         propertyDescription.setValueChangeListener(this);
         notifyRegistrationPropertyChangeListeners();
      }
View Full Code Here


   }

   public RegistrationPropertyDescription addEmptyRegistrationProperty(String name)
   {
      ParameterValidation.throwIllegalArgExceptionIfNull(name, "Property name");
      RegistrationPropertyDescription reg = new RegistrationPropertyDescription(name, WSRPConstants.XSD_STRING);

      addRegistrationProperty(reg);

      return reg;
   }
View Full Code Here

   }

   private RegistrationPropertyDescription getPropertyDescription(QName propertyName)
   {
      // copy to ensure immutability
      final RegistrationPropertyDescription description = registrationProperties.get(propertyName);
      if (description != null)
      {
         return new RegistrationPropertyDescription(description);
      }
      else
      {
         throw new IllegalArgumentException("Unknown property name '" + propertyName + "'");
      }
View Full Code Here

   }

   public RegistrationPropertyDescription removeRegistrationProperty(QName propertyName)
   {
      ParameterValidation.throwIllegalArgExceptionIfNull(propertyName, "Property name");
      RegistrationPropertyDescription prop = registrationProperties.remove(propertyName);
      if (modifyNowIfNeeded(null, prop))
      {
         notifyRegistrationPropertyChangeListeners();
      }
View Full Code Here

         return registrationRequirements.getRegistrationProperties();
      }

      public void addEmptyRegistrationProperty(String propertyName)
      {
         RegistrationPropertyDescription prop = registrationRequirements.addEmptyRegistrationProperty(propertyName);

         // Search for the non-existent item
         int index = Collections.binarySearch(registrationProperties, prop);

         // Add the non-existent item to the list
View Full Code Here

         }
      }

      public void removeRegistrationProperty(String propertyName)
      {
         RegistrationPropertyDescription prop = registrationRequirements.removeRegistrationProperty(propertyName);

         registrationProperties.remove(prop);
      }
View Full Code Here

      {
         Map<QName, RegistrationProperty> result = new HashMap<QName, RegistrationProperty>(descriptions.size());
         for (PropertyDescription description : descriptions)
         {
            QName name = description.getName();
            RegistrationPropertyDescription desc = WSRPUtils.convertToRegistrationPropertyDescription(description);
            RegistrationProperty prop = new RegistrationProperty(name, null, WSRPUtils.toString(desc.getLang()), this);
            prop.setDescription(desc);
            prop.setStatus(RegistrationProperty.Status.MISSING_VALUE);
            result.put(name, prop);
         }
View Full Code Here

    * @since 2.6
    */
   public static RegistrationPropertyDescription convertToRegistrationPropertyDescription(PropertyDescription propertyDescription)
   {
      ParameterValidation.throwIllegalArgExceptionIfNull(propertyDescription, "PropertyDescription");
      RegistrationPropertyDescription desc = new RegistrationPropertyDescription(propertyDescription.getName(),
         propertyDescription.getType());
      desc.setLabel(getLocalizedStringOrNull(propertyDescription.getLabel()));
      desc.setHint(getLocalizedStringOrNull(propertyDescription.getHint()));

      return desc;
   }
View Full Code Here

         System.out.println("newChild regReq " + localName);
      }

      if ("registration-property-description".equals(localName))
      {
         return new RegistrationPropertyDescription();
      }
      else
      {
         return null;
      }
View Full Code Here

   {
      // Retrieve parent table from event
      HtmlDataTable table = getParentDataTable((UIComponent)event.getSource());

      // Get selected prop
      RegistrationPropertyDescription prop = (RegistrationPropertyDescription)table.getRowData();

      selectedProp = prop.getNameAsString();
   }
View Full Code Here

TOP

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

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.