Package org.bifrost.xmlio.config

Examples of org.bifrost.xmlio.config.XmlIOConfig


   * object attributes are mapped from xml names to their actual java names.
   */
  public void testPropertyMapping()
  {
    String configString = createXml(TEST_PROPERTY_MAPPING);
    XmlIOConfig config = XmlIOConfig.getInstance();
    // Set up mapping
    List list = new LinkedList();
    list.add(new PropertyMap("a", "string"));
    list.add(new PropertyMap("b", "number"));
    ObjectMap oMap = new ObjectMap("TestHelperSimple", "TestHelperSimple", list);
    config.addObjectMap(oMap);
    InputStream reader = new ByteArrayInputStream(configString.getBytes());
    XmlReader xmlReader = null;
    try
    {
      xmlReader = new XmlReader(reader, "org.bifrost.xmlio.test.helpers");
View Full Code Here


   * object attributes are mapped from xml names to their actual java names.
   */
  public void testGlobalPropertyMapping()
  {
    String configString = createXml(TEST_PROPERTY_MAPPING);
    XmlIOConfig config = XmlIOConfig.getInstance();
    // Set up mapping
    config.addPropertyMap(new PropertyMap("a", "string"));
    config.addPropertyMap(new PropertyMap("b", "number"));
    InputStream reader = new ByteArrayInputStream(configString.getBytes());
    XmlReader xmlReader = null;
    try
    {
      xmlReader = new XmlReader(reader, "org.bifrost.xmlio.test.helpers");
View Full Code Here

TOP

Related Classes of org.bifrost.xmlio.config.XmlIOConfig

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.