Class SimplePluginQuery

java.lang.Object
net.solarnetwork.node.setup.SimplePluginQuery
All Implemented Interfaces:
PluginQuery

public class SimplePluginQuery extends Object implements PluginQuery
Simple implementation of PluginQuery.
Version:
1.0
Author:
matt
  • Constructor Details

    • SimplePluginQuery

      public SimplePluginQuery()
  • Method Details

    • isLatestVersionOnly

      public boolean isLatestVersionOnly()
      Description copied from interface: PluginQuery
      If true then only return the latest (highest) version available for any given plugin.
      Specified by:
      isLatestVersionOnly in interface PluginQuery
      Returns:
      boolean
    • setLatestVersionOnly

      public void setLatestVersionOnly(boolean latestVersionOnly)
      Set the latest version only flag.
      Parameters:
      latestVersionOnly - the flag to set
    • getSimpleQuery

      public String getSimpleQuery()
      Description copied from interface: PluginQuery
      Get 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:
      getSimpleQuery in interface PluginQuery
      Returns:
      a simple query string
    • setSimpleQuery

      public void setSimpleQuery(String simpleQuery)
      Set the simple query.
      Parameters:
      simpleQuery - the query to set