Interface MTNamedQuery


public interface MTNamedQuery
Returns an MTQuery with a name and a unique UUID. Implementing classes should always implement equals and hashcode based on the UUID of the query when possible.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a small (24x24) icon for the query.
     
    Returns the name of the query.
    Returns the query.
    Returns a unique UUID for the query.
    default boolean
    Returns true if this is a browser query provided by the application.
  • Method Details

    • getUUID

      UUID getUUID()
      Returns a unique UUID for the query. The query is not strictly required to return an UUID but if not it cannot be stored in settings files etc. For example if a model query is used to choose the content in a web profile the UUID is needed to be able to find the same query the next time.
    • getName

      String getName()
      Returns the name of the query.
      Returns:
      The query name.
    • getIcon

      Icon getIcon()
      Returns a small (24x24) icon for the query.
      Returns:
      A 24x24 icon for the query
    • getIconSelected

      Icon getIconSelected()
    • getQuery

      MTQuery getQuery()
      Returns the query.
      Returns:
      The query.
    • isBrowserQuery

      default boolean isBrowserQuery()
      Returns true if this is a browser query provided by the application.