Class KeywordServiceQueryFactory

  • All Implemented Interfaces:
    RegistryQueryFactory

    public class KeywordServiceQueryFactory
    extends java.lang.Object
    implements RegistryQueryFactory
    RegistryQueryFactory implementation which combines a fixed base query for a particular service type with a freeform keyword search.
    Since:
    19 Dec 2008
    Author:
    Mark Taylor
    • Constructor Detail

      • KeywordServiceQueryFactory

        public KeywordServiceQueryFactory​(Capability capability)
        Constructs a query factory which looks for services with a particular standard ID.
        Parameters:
        capability - description of capability which all results must have
    • Method Detail

      • getIdListQuery

        public RegistryQuery getIdListQuery​(java.lang.String[] ivoids)
                                     throws java.net.MalformedURLException
        Description copied from interface: RegistryQueryFactory
        Returns a registry query suitable for this query factory which queries a given list of IVO identifiers.
        Specified by:
        getIdListQuery in interface RegistryQueryFactory
        Parameters:
        ivoids - ivo:-type resource identifiers
        Returns:
        registry query whose results are suitable for a result of this query factory; may be null
        Throws:
        java.net.MalformedURLException
      • getComponent

        public javax.swing.JComponent getComponent()
        Description copied from interface: RegistryQueryFactory
        May return a component which the user can interact with to select a query. If it returns null, this factory is considered to be non-interactive (only capable of supplying a single fixed query).
        Specified by:
        getComponent in interface RegistryQueryFactory
        Returns:
        GUI component for query selection, or null
      • addEntryListener

        public void addEntryListener​(java.awt.event.ActionListener listener)
        Description copied from interface: RegistryQueryFactory
        Adds a listener which will be notified when the user has entered a query.
        Specified by:
        addEntryListener in interface RegistryQueryFactory
        Parameters:
        listener - listener