Examples of BeanDescriptor


Examples of java.beans.BeanDescriptor

  /**
   * @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

Examples of java.beans.BeanDescriptor

  /**
   * @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

Examples of java.beans.BeanDescriptor

  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

Examples of java.beans.BeanDescriptor

    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

Examples of java.beans.BeanDescriptor

    // the namespace is the difference between name and localName
    return name.substring(0, name.length() - localName.length());
  }

  public ContentIFace getContentModel() throws IntrospectionException {
    BeanDescriptor bd = info.getBeanDescriptor();
    ContentIFace content = (ContentIFace) bd.getValue("content");
    if (content != null) return content;
    return new Content();
  }
View Full Code Here

Examples of java.beans.BeanDescriptor

 
  /**
   * @see java.beans.BeanInfo#getBeanDescriptor()
   */
  public BeanDescriptor getBeanDescriptor() {
    BeanDescriptor bd = new BeanDescriptor(BEAN);
    try {
    bd.setValue("content", new Content());
    } catch (Exception e) {
      Gloze.logger.error(e.getMessage());
    }
    return bd;
  }
View Full Code Here

Examples of java.beans.BeanDescriptor

  /**
   * @see java.beans.BeanInfo#getBeanDescriptor()
   */
  public BeanDescriptor getBeanDescriptor() {
    BeanDescriptor bd = new BeanDescriptor(BEAN);
    bd.setName("any");
    bd.setDisplayName(XMLBean.concatName(schema.XSD_URI, "any"));
    bd.setValue("ignore", new String[] { schema.XSD_URI+"#annotation" });
    try {
      bd.setValue("content", new element(schema.XSD_URI, "annotation", "0", "unbounded"));
    } catch (Exception e) {
      Gloze.logger.error(e.getMessage());
    }
    return bd;
  }
View Full Code Here

Examples of java.beans.BeanDescriptor

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

Examples of java.beans.BeanDescriptor

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

Examples of java.beans.BeanDescriptor

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