Package weka.core
Class WekaPackageUtils
- java.lang.Object
-
- weka.core.WekaPackageUtils
-
public class WekaPackageUtils extends Object
Utility functions for Weka packages.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description WekaPackageUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isOfficial(String name)
Checks whether the package is an official one.static boolean
isOfficial(weka.core.packageManagement.Package pkg)
Checks whether the package is an official one.static Map<String,Object>
toMap(weka.core.packageManagement.Package pkg)
Turns the package into a map.
-
-
-
Method Detail
-
isOfficial
public static boolean isOfficial(weka.core.packageManagement.Package pkg) throws Exception
Checks whether the package is an official one.- Parameters:
pkg
- the package to check- Returns:
- true if official
- Throws:
Exception
- if querying package manager fails
-
isOfficial
public static boolean isOfficial(String name) throws Exception
Checks whether the package is an official one.- Parameters:
name
- the name of the package to check- Returns:
- true if official
- Throws:
Exception
- if querying package manager fails
-
-