Package java.beans

Examples of java.beans.BeanDescriptor


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


  /**
   * @see java.beans.BeanInfo#getBeanDescriptor()
   */
  public BeanDescriptor getBeanDescriptor() {
    BeanDescriptor bd = new BeanDescriptor(minExclusive.class);
    bd.setName("minExclusive");
    bd.setDisplayName(XMLBean.concatName(schema.XSD_URI, "minExclusive"));
    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("simpleType");
    bd.setDisplayName(XMLBean.concatName(schema.XSD_URI, "simpleType"));
    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("length");
    bd.setDisplayName(XMLBean.concatName(schema.XSD_URI, "length"));
    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("maxLength");
    bd.setDisplayName(XMLBean.concatName(schema.XSD_URI, "maxLength"));
    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("list");
    bd.setDisplayName(XMLBean.concatName(schema.XSD_URI, "list"));
    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("anyAttribute");
    bd.setDisplayName(XMLBean.concatName(schema.XSD_URI, "anyAttribute"));
    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("maxExclusive");
    bd.setDisplayName(XMLBean.concatName(schema.XSD_URI, "maxExclusive"));
    bd.setValue("ignore", new String[] { schema.XSD_URI+"#annotation" });
    return bd;
  }
View Full Code Here

  public BeanInfo info;

  public XMLBean() throws IntrospectionException {
    // initialize bean info
    info = Introspector.getBeanInfo(this.getClass(), XMLBean.class);
    BeanDescriptor bd = info.getBeanDescriptor();
    name = bd.getDisplayName();
    localName = bd.getName();
  }
View Full Code Here

    Gloze.logger.error("invoked default RDF mapping");
    return index;
  }

  public String get_namespace() {
    BeanDescriptor bd = info.getBeanDescriptor();
    String name = bd.getDisplayName();
    String localName = bd.getName();
    if (name.equals(localName)) return null;
    // the namespace is the difference between name and localName
    return name.substring(0, name.length() - localName.length());
  }
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.