Package rex.graphics.datasourcetree.elements

Examples of rex.graphics.datasourcetree.elements.CatalogElement


 
  public void testGetCatalogList() {
    try
    {
      prop.setDataSourceInfo("InventorySource");
      Assert.assertEquals("Inventory",(new CatalogElement(null,(((port1.getCatalogList(rest,prop)).getElementsByTagName("row")).item(0)),null)).toString());
      prop.setDataSourceInfo("FoodMartSource");
      Assert.assertEquals("FoodMart",(new CatalogElement(null,(((port1.getCatalogList(rest,prop)).getElementsByTagName("row")).item(0)),null)).toString());
    }
    catch(Exception exc)
    {
      System.out.println("Error"+exc.getStackTrace());
    }
View Full Code Here


      {
        ServerMetadata smd = new ServerMetadata(ur);
        XMLADiscoverRestrictions restrictions = XMLAObjectsFactory.newXMLADiscoverRestrictions();
        XMLADiscoverProperties   properties   = XMLAObjectsFactory.newXMLADiscoverProperties();
          properties.setDataSourceInfo((String)cmbDS.getSelectedItem());
        CatalogElement ds[]=(CatalogElement[])smd.getCatalogList(restrictions,properties);
        cmbCat.removeAllItems();
        for (int i = 0; i < ds.length; i++)
          {         
            cmbCat.addItem((ds[i].toString()).trim());
          }
View Full Code Here

TOP

Related Classes of rex.graphics.datasourcetree.elements.CatalogElement

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.