Package net.solarnetwork.node.setup
Class SimplePluginQuery
java.lang.Object
net.solarnetwork.node.setup.SimplePluginQuery
- All Implemented Interfaces:
PluginQuery
Simple implementation of
PluginQuery.- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a simple substring-matching query.booleanIf true then only return the latest (highest) version available for any given plugin.voidsetLatestVersionOnly(boolean latestVersionOnly) Set the latest version only flag.voidsetSimpleQuery(String simpleQuery) Set the simple query.
-
Constructor Details
-
SimplePluginQuery
public SimplePluginQuery()Default constructor.
-
-
Method Details
-
isLatestVersionOnly
public boolean isLatestVersionOnly()Description copied from interface:PluginQueryIf true then only return the latest (highest) version available for any given plugin.- Specified by:
isLatestVersionOnlyin interfacePluginQuery- Returns:
- boolean
-
setLatestVersionOnly
public void setLatestVersionOnly(boolean latestVersionOnly) Set the latest version only flag.- Parameters:
latestVersionOnly- the flag to set
-
getSimpleQuery
Description copied from interface:PluginQueryGet a simple substring-matching query. This is the query as provided by a user. The application can apply this query in whatever method is most appropriate to return appropriate results.- Specified by:
getSimpleQueryin interfacePluginQuery- Returns:
- a simple query string
-
setSimpleQuery
Set the simple query.- Parameters:
simpleQuery- the query to set
-