Examples of XmlOrgSet


Examples of org.jayasoft.woj.tools.dlbuilder.xmldescriptor.model.XmlOrgSet

     
      digester.addObjectCreate( "*/category/ext", XmlExtension.class );
      digester.addSetProperties( "*/category/ext", "name", "name" );
      digester.addSetNext( "*/category/ext", "addExtension" );
     
      XmlOrgSet result = (XmlOrgSet)digester.parse( file );
      result.setName(file.getName());
      return result;
     
    } catch( Exception exc ) {
      exc.printStackTrace();
      return null;
View Full Code Here

Examples of org.jayasoft.woj.tools.dlbuilder.xmldescriptor.model.XmlOrgSet

       
        File specs = new File(descriptorsDir, descFileName);
        if (specs.exists()) {
          // Parse file
          XmlOrgSet orgSet = XmlDescParser.parse(specs);
          GenericDownloader downloader = new GenericDownloader(d);
         
          // Create download description
          List<String> problems =new ArrayList<String>();
          for (Iterator iter = orgSet.getOrganisations().iterator(); iter.hasNext();) {
            XmlOrganisation org = (XmlOrganisation) iter.next();
            for (Iterator iterator = org.getModules().iterator(); iterator.hasNext();) {
              XmlModule module = (XmlModule) iterator.next();
              try {
                downloader.enqueueDownload(org, module);
View Full Code Here

Examples of org.jayasoft.woj.tools.dlbuilder.xmldescriptor.model.XmlOrgSet

      File[] children = new File(getXmlDescriptorDir()).listFiles();
      for (File child : children) {
      if (child != null) {
        String name = child.getName();
        if (name.endsWith(".xml")) {
              XmlOrgSet orgSet = XmlDescParser.parse(child);
              if (orgSet != null) {
                result.add(orgSet);
              } else {
                System.out.println("A xml was found and cannot be parse: "+name);
              }
View Full Code Here

Examples of org.jayasoft.woj.tools.dlbuilder.xmldescriptor.model.XmlOrgSet

    }
  }

  @Override
  protected Collection<TreeNode> loadChildren() {
    XmlOrgSet orgSet = (XmlOrgSet) getUserObject();
    List<XmlOrganisation> children = new ArrayList(orgSet.getOrganisations());
    Collections.sort(children, XmlOrganisation.NAME_COMPARATOR );
    Collection<TreeNode> col = new ArrayList<TreeNode>();
    for (XmlOrganisation organisation : children) {
      col.add(new XmlOrganisationTreeNode(organisation));
    }
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.