Package gri.gridp.modules

Examples of gri.gridp.modules.PackageInfo


    if (info.getWebsite() != null)
      elem.addContent(createElement("website", info.getWebsite()));
  }

  public PackageInfo readPackageInfo(Element element) {
    PackageInfo info = new PackageInfo();

    List children = element.getChildren();
    Element child;

    for (int i=0; i<children.size(); i++) {
      child = (Element)children.get(i);
      String name = child.getName().toLowerCase();

      if (name.equals("name"))
        info.setName(child.getText());
      else if (name.equals("website"))
        info.setWebsite(child.getText());
    }

    return info;
  }
View Full Code Here


    //extended info:
    desc.setProgramName(modInfo.getProgram());
    desc.setGroup(funcInfo.getGroup());

    PackageInfo pkgInfo = modInfo.getPackageInfo();
    if (pkgInfo != null) {
      desc.setPackageName(pkgInfo.getName());
      desc.setWebsite(pkgInfo.getWebsite());
    }

    return desc;
  }
View Full Code Here

TOP

Related Classes of gri.gridp.modules.PackageInfo

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.