Package java.beans

Examples of java.beans.BeanDescriptor


          if(descriptor != null){
            this.add("\"title\":\""+descriptor.getDisplayName()+"\"," +
                "\"description\":\""+descriptor.getShortDescription()+"\","+
                "\"readonly\":"+(descriptor.getWriteMethod() == null)+",");
          }else if(!isJSONPrimitive(clazz)){
        BeanDescriptor beanDescriptor = getBeanDescriptor(clazz);
        if(beanDescriptor != null)
              this.add("\"title\":\""+beanDescriptor.getDisplayName()+"\"," +
                  "\"description\":\""+beanDescriptor.getShortDescription()+"\",");
          }
         
          if(object instanceof String ||
                object instanceof Character ||
                object instanceof Locale ||
View Full Code Here


    * @param clazz
    * @return
    */
  protected static BeanDescriptor getBeanDescriptor(Class<?> clazz){
    try{
      BeanDescriptor beanDescriptor = ((clazz.isAnnotationPresent(JSONObject.class) &&
            clazz.getAnnotation(JSONObject.class).ignoreHierarchy())
            ? Introspector.getBeanInfo(clazz)
                : Introspector.getBeanInfo(clazz,clazz.isEnum() ? Enum.class : clazz.equals(Object.class)? null : Object.class)).getBeanDescriptor();
      populateFeatureDescriptor(clazz, beanDescriptor);
       return beanDescriptor;
View Full Code Here

  public DBBeanInfo() {
  }

  public BeanDescriptor getBeanDescriptor() {
    return new BeanDescriptor(beanClass);
  }
View Full Code Here

  public DBBindBeanInfo() {
  }

  public BeanDescriptor getBeanDescriptor() {
    return new BeanDescriptor(beanClass);
  }
View Full Code Here

  public CategoriesBeanInfo() {
  }

  public BeanDescriptor getBeanDescriptor() {
    return new BeanDescriptor(beanClass);
  }
View Full Code Here

  public DBLanguagesBeanInfo() {
  }

  public BeanDescriptor getBeanDescriptor() {
    return new BeanDescriptor(beanClass);
  }
View Full Code Here

    return 1;
  }
 
  public java.beans.BeanDescriptor getBeanDescriptor()
  {
    final BeanDescriptor result = new BeanDescriptor(MediaPlayer.class);
    result.setName("MediaPlayer");
    result.setDisplayName("MediaPlayer Bean");
    result.setShortDescription("MediaPlayer Bean");
    return result;
  }
View Full Code Here

  /**
   * @see java.beans.BeanInfo#getBeanDescriptor()
   */
  public BeanDescriptor getBeanDescriptor() {
    BeanDescriptor bd = new BeanDescriptor(BEAN);
    bd.setName("whiteSpace");
    bd.setDisplayName(XMLBean.concatName(schema.XSD_URI, "whiteSpace"));
    bd.setValue("ignore", new String[] { schema.XSD_URI+"#annotation" });
    return bd;
  }
View Full Code Here

  /**
   * @see java.beans.BeanInfo#getBeanDescriptor()
   */
  public BeanDescriptor getBeanDescriptor() {
    BeanDescriptor bd = new BeanDescriptor(BEAN);
    bd.setName("fractionDigits");
    bd.setDisplayName(XMLBean.concatName(schema.XSD_URI, "fractionDigits"));
    bd.setValue("ignore", new String[] { schema.XSD_URI+"#annotation" });
    return bd;
  }
View Full Code Here

  /**
   * @see java.beans.BeanInfo#getBeanDescriptor()
   */
  public BeanDescriptor getBeanDescriptor() {
    BeanDescriptor bd = new BeanDescriptor(BEAN);
    bd.setName("redefine");
    bd.setDisplayName(XMLBean.concatName(schema.XSD_URI, "redefine"));
    bd.setValue("ignore", new String[] { schema.XSD_URI+"#annotation" });
    return bd;
  }
View Full Code Here

TOP

Related Classes of java.beans.BeanDescriptor

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.