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

Examples of org.apache.ws.jaxme.js.beanreader.BeanInfoFactory$BeanInfoImpl


  }

  /** Tests creating a bean info factory.
   */
  public void testBeanInfoFactory() throws Exception {
    BeanInfoFactory bif = newBeanInfoFactory();
    checkRootBean(bif);
    checkPrimitiveSimpleTypeBean(bif);
    checkSimpleTypeBean(bif);
  }
View Full Code Here


    BeanProperty[] myBeanProperties = bi.getBeanProperties();
    assertEquals(5, myBeanProperties.length);
  }

  private BeanInfoFactory newBeanInfoFactory() throws BeanReaderException, TokenStreamException, RecognitionException {
    return new BeanInfoFactory(getResolver(), getRootBeanType());
  }
View Full Code Here

  public void testCreateSchema() throws Exception {
    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.BeanInfoFactory$BeanInfoImpl

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.