public class BioLockJ_API extends Object
Modifier and Type | Method and Description |
---|---|
static Boolean |
isValidProp(String prop,
String val,
List<String> modules)
Returns true if the
|
static List<String> |
listApiModules()
Like listModules, but only include modules that implement the ApiModule interface.
|
static List<String> |
listModuleProps(String mod) |
static List<String> |
listModules() |
static List<String> |
listModules(String prefix)
Return a list of all the modules on the class path.
|
static List<String> |
listMounts(String config) |
static List<String> |
listProps() |
static List<String> |
listUploads(String config) |
static void |
main(String[] args) |
static org.json.JSONArray |
moduleInfo()
Returns a json formatted list of all modules and for each module that
implements the gui interface, it lists the props used by the module,
and for each prop the info.
|
static String |
propDescModule(String prop,
String module) |
static org.json.JSONArray |
propInfo()
For each of the properties registered to the Properties class,
report the property name, type, description and default value.
|
static String |
propTypeModule(String prop,
String module)
Returns a string describing the format type that required for the value of the property given.
|
static String |
propValue(String property) |
static String |
propValue(String property,
BioModule module) |
static String |
propValue(String property,
String config,
BioModule module)
Returns the value for that property (first String)
If a second argument is given, it is assumed to be the primary config file.
|
static void |
setVerbose(boolean writeLots) |
public static void setVerbose(boolean writeLots)
public static List<String> listModules(String prefix) throws Exception
prefix
- - Single argument passed to the constructor of the Reflections class.Exception
public static List<String> listApiModules() throws Exception
args
- Exception
public static List<String> listProps() throws API_Exception
API_Exception
public static List<String> listModuleProps(String mod) throws Exception
Exception
public static Boolean isValidProp(String prop, String val, List<String> modules) throws Exception
prop
- - a config propertyval
- - a proposed value for propmodules
- - if not empty, the property/val pair is validated by one or more modules, in addition to the biolockj backbone.Exception
public static String propTypeModule(String prop, String module) throws API_Exception
args
- -API_Exception
public static String propDescModule(String prop, String module) throws API_Exception
API_Exception
public static String propValue(String property, String config, BioModule module) throws Exception
property
- - the property to get the value ofconfig
- - (can be null) the config file to read in to establish property valuesmodule
- - (can be null) a module to pass in a context when getting the valueException
public static String propValue(String property, BioModule module) throws Exception
Exception
public static org.json.JSONArray propInfo() throws Exception
Exception
public static org.json.JSONArray moduleInfo() throws Exception
args
- Exception