Package org.apache.ws.jaxme.js.beanreader

Examples of org.apache.ws.jaxme.js.beanreader.BeanInfo


  }

  private void checkSimpleTypeBean(BeanInfoFactory pFactory) {
    JavaQName primitiveSimpleTypeBeanType = JavaQNameImpl.getInstance("foo.bar.PrimitiveSimpleTypeBean");
    JavaQName simpleTypeBeanType = JavaQNameImpl.getInstance("foo.bar.PrimitiveSimpleTypeBean.SimpleTypeBean");
    BeanInfo bi = pFactory.getBeanInfo(simpleTypeBeanType);
    assertEquals("simpleTypeBean", bi.getElementName());
    assertEquals(primitiveSimpleTypeBeanType, bi.getSuperType());
    assertNull(bi.getTargetNamespace());
    assertEquals(asKey(simpleTypeBeanType), asKey(bi.getType()));
    BeanProperty[] props = bi.getBeanProperties();
    assertEquals(11, props.length);
  }
View Full Code Here


    assertEquals(11, props.length);
  }

  private void checkPrimitiveSimpleTypeBean(BeanInfoFactory pFactory) {
    JavaQName primitiveSimpleTypeBeanType = JavaQNameImpl.getInstance("foo.bar.PrimitiveSimpleTypeBean");
    BeanInfo bi = pFactory.getBeanInfo(primitiveSimpleTypeBeanType);
    assertEquals("primitiveSimpleTypeBean", bi.getElementName());
    assertNull(bi.getSuperType());
    assertNull(bi.getTargetNamespace());
    assertEquals(primitiveSimpleTypeBeanType, bi.getType());
    BeanProperty[] props = bi.getBeanProperties();
    assertEquals(7, props.length);
  }
View Full Code Here

    assertEquals(7, props.length);
  }

  private void checkRootBean(BeanInfoFactory pFactory) {
    JavaQName myBeanType = JavaQNameImpl.getInstance("foo.bar.MyBean");
    BeanInfo bi = pFactory.getBeanInfo(myBeanType);
    assertEquals("myBean", bi.getElementName());
    assertNull(bi.getSuperType());
    assertNull(bi.getTargetNamespace());
    assertEquals(myBeanType, bi.getType());
    BeanProperty[] myBeanProperties = bi.getBeanProperties();
    assertEquals(5, myBeanProperties.length);
  }
View Full Code Here

    StringWriter sw = new StringWriter();
    TransformerHandler t = ((SAXTransformerFactory) TransformerFactory.newInstance()).newTransformerHandler();
    t.getTransformer().setOutputProperty(OutputKeys.INDENT, "yes");
    t.setResult(new StreamResult(sw));
    BeanInfoFactory beanInfoFactory = newBeanInfoFactory();
    BeanInfo beanInfo = beanInfoFactory.getBeanInfo(getRootBeanType());
    new BeanSchemaWriter(beanInfoFactory).write(beanInfo, t);
    System.out.println(sw.toString());
  }
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.js.beanreader.BeanInfo

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.