Examples of PropertyBean


Examples of org.ajax4jsf.builder.config.PropertyBean

        context.put("converter", converter);
        context.put("package", converter.getPackageName());
        Set<String> importClasses = new HashSet<String>();
        for (Iterator it = converter.getProperties().iterator(); it
            .hasNext();) {
          PropertyBean property = (PropertyBean) it.next();
          // For non-primitive types, add import declaration.
          if (!property.isSimpleType() && !property.isExist()) {
            importClasses.add(property.getClassname());
          }
        }
        importClasses.add(converter.getSuperclass());
        context.put("imports", importClasses);
        String resultPath = converter.getClassname().replace('.', '/')

Examples of org.ajax4jsf.builder.config.PropertyBean

        context.put("tag", component.getTag());
        context.put("package", component.getTag().getPackageName());
        Set<String> importClasses = new HashSet<String>();
        for (Iterator<PropertyBean> it = component.getProperties().iterator(); it
            .hasNext();) {
          PropertyBean property = (PropertyBean) it.next();
          // For non-primitive types, add import declaration.
          if (!property.isSimpleType() && !property.isHidden()) {
            importClasses.add(property.getClassname());
          }
        }
        importClasses.add(component.getTag().getSuperclass());
        context.put("imports", importClasses);
        String resultPath = component.getTag().getClassname().replace('.', '/')

Examples of org.ajax4jsf.builder.config.PropertyBean

        context.put("tag", validator.getTag());
        context.put("package", validator.getTag().getPackageName());
        Set<String> importClasses = new HashSet<String>();
        for (Iterator it = validator.getProperties().iterator(); it
            .hasNext();) {
          PropertyBean property = (PropertyBean) it.next();
          // For non-primitive types, add import declaration.
          if (!property.isSimpleType() && !property.isHidden()) {
            importClasses.add(property.getClassname());
          }
        }
        importClasses.add(validator.getTag().getSuperclass());
        context.put("imports", importClasses);
        String resultPath = validator.getTag().getClassname().replace('.', '/')

Examples of org.ajax4jsf.builder.config.PropertyBean

        context.put("tag", component.getTag());
        context.put("package", component.getTag().getPackageName());
        Set<String> importClasses = new HashSet<String>();
        for (Iterator<PropertyBean> it = component.getProperties().iterator(); it
            .hasNext();) {
          PropertyBean property = (PropertyBean) it.next();
          // For non-primitive types, add import declaration.
          if (!property.isSimpleType() && !property.isHidden()) {
            importClasses.add(property.getClassname());
          }
        }
        importClasses.add(component.getTag().getTest().getSuperclassname());
        context.put("imports", importClasses);
        String resultPath = component.getTag().getTest().getClassname().replace('.', '/')

Examples of org.ajax4jsf.builder.config.PropertyBean

        context.put("tag", converter.getTag());
        context.put("package", converter.getTag().getPackageName());
        Set<String> importClasses = new HashSet<String>();
        for (Iterator it = converter.getProperties().iterator(); it
            .hasNext();) {
          PropertyBean property = (PropertyBean) it.next();
          // For non-primitive types, add import declaration.
          if (!property.isSimpleType() && !property.isHidden()) {
            importClasses.add(property.getClassname());
          }
        }
        importClasses.add(converter.getTag().getSuperclass());
        context.put("imports", importClasses);
        String resultPath = converter.getTag().getClassname().replace('.', '/')

Examples of org.apache.slide.taglib.bean.PropertyBean

     *        use the default namespace (&quot;DAV:&quot;)
     **/
    protected PropertyBean getProperty(RevisionBean revision, String name,
                                       String namespace) {
       
        PropertyBean bean = null;
        if (revision != null) {
            bean = revision.getProperty(name, namespace);
        }
       
        return bean;

Examples of org.freeplane.core.resources.components.PropertyBean

  public Properties getCurrentOptionProperties() {
    final Properties p = new Properties();
    Vector<IPropertyControl> controls = this.propertyControls;
    for (final IPropertyControl control : controls) {
      if (control instanceof PropertyBean) {
        final PropertyBean bean = (PropertyBean) control;
        final String value = bean.getValue();       
        if (value != null) {
          p.setProperty(bean.getName(), value);
        }
      }
    }
    return p;
  }

Examples of org.jboss.test.microcontainer.support.PropertyBean

    *
    * @throws Exception for any error
    */
   public void testBeanMetaData() throws Exception
   {
      PropertyBean bean = (PropertyBean)getBean("Bean");

      MetaDataContextInterceptor.reset();
      assertEquals(5, bean.getIntProperty());
      assertNotNull(MetaDataContextInterceptor.classAnnotation);
      assertNull(MetaDataContextInterceptor.joinpointAnnotation);

      MetaDataContextInterceptor.reset();
      assertEquals("Bean", bean.getStringProperty());
      assertNotNull(MetaDataContextInterceptor.classAnnotation);
      assertNull(MetaDataContextInterceptor.joinpointAnnotation);
   }

Examples of org.jboss.test.microcontainer.support.PropertyBean

    * @throws Exception for any error
    */
   public void testPropertyMetaData() throws Exception
   {
     
      PropertyBean bean1 = (PropertyBean)getBean("Bean1");

      MetaDataContextInterceptor.reset();
      assertEquals(10, bean1.getIntProperty());
      assertNull(MetaDataContextInterceptor.classAnnotation);
      assertNotNull(MetaDataContextInterceptor.joinpointAnnotation);
     
      MetaDataContextInterceptor.reset();
      assertEquals("Bean1", bean1.getStringProperty());
      assertNull(MetaDataContextInterceptor.classAnnotation);
      assertNull(MetaDataContextInterceptor.joinpointAnnotation);
   }

Examples of org.jboss.test.microcontainer.support.PropertyBean

    * @throws Exception for any error
    */
   public void testNoMetaData() throws Exception
   {
     
      PropertyBean bean1 = (PropertyBean)getBean("NoMetaDataBean");

      MetaDataContextInterceptor.reset();
      assertEquals(50, bean1.getIntProperty());
      assertNull(MetaDataContextInterceptor.classAnnotation);
      assertNull(MetaDataContextInterceptor.joinpointAnnotation);
     
      MetaDataContextInterceptor.reset();
      assertEquals("NoMetaDataBean", bean1.getStringProperty());
      assertNull(MetaDataContextInterceptor.classAnnotation);
      assertNull(MetaDataContextInterceptor.joinpointAnnotation);
   }
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.