Class AbstractCatalogServiceDriver

java.lang.Object
org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
org.gvsig.catalog.drivers.AbstractCatalogServiceDriver
All Implemented Interfaces:
ICatalogServiceDriver, IDiscoveryServiceDriver
Direct Known Subclasses:
CSWCatalogServiceDriver, SRWCatalogServiceDriver, Z3950CatalogServiceDriver

public abstract class AbstractCatalogServiceDriver extends AbstractDiscoveryServiceDriver implements ICatalogServiceDriver
All classes that implement a new catalog protocol must to inherit to this class.รง It contains the common atributes for the protocols.
Author:
Jorge Piera Llodra (piera_jor@gva.es)
  • Constructor Details

    • AbstractCatalogServiceDriver

      public AbstractCatalogServiceDriver()
  • Method Details

    • setServerData

      public void setServerData(org.gvsig.utils.swing.jcomboServer.ServerData serverData)
      Used to set a ServerData that contains the properties that have been fixed by the user
    • getServerData

      public org.gvsig.utils.swing.jcomboServer.ServerData getServerData()
      Return the server data
    • getProfile

      public IProfile getProfile()
      Gets the profile. It has to be implemented by all the drivers with profile
      Specified by:
      getProfile in interface ICatalogServiceDriver
      Returns:
      The profile
    • getNumberOfRecords

      public int getNumberOfRecords(XMLNode node, String label, String attribute)
      This function returns the number of records that have been retrieved. It Reads a Node value.
      Parameters:
      node - The answer tree
      label - Node Name that contains the value
      attribute - Attributes wich contain the value
      Returns:
      The number of records
    • createQuery

      public DiscoveryServiceQuery createQuery()
      Description copied from interface: IDiscoveryServiceDriver
      Create and return an empty query
      Specified by:
      createQuery in interface IDiscoveryServiceDriver
      Returns:
    • getQuery

      public CatalogQuery getQuery()
      Returns:
      Returns the query.
    • setQuery

      public void setQuery(CatalogQuery query)
      Parameters:
      query - The query to set.
    • getMaxRecords

      public String getMaxRecords()
      Returns:
      Returns the maxRecords.
    • setMaxRecords

      public void setMaxRecords(String maxRecords)
      Parameters:
      maxRecords - The maxRecords to set.
    • getOutputFormat

      public String getOutputFormat()
      Returns:
      Returns the outputFormat.
    • setOutputFormat

      public void setOutputFormat(String outputFormat)
      Parameters:
      outputFormat - The outputFormat to set.
    • getOutputSchema

      public String[] getOutputSchema()
      Returns:
      Returns the outputSchema.
    • setOutputSchema

      public void setOutputSchema(String[] outputSchema)
      Parameters:
      outputSchema - The outputSchema to set.
    • setOutputSchema

      public void setOutputSchema(String outputSchema)
      Parameters:
      outputSchema -
    • getSortBy

      public String getSortBy()
      Returns:
      Returns the sortBy.
    • setSortBy

      public void setSortBy(String sortBy)
      Parameters:
      sortBy - The sortBy to set.
    • getStartPosition

      public String getStartPosition()
      Returns:
      Returns the startPosition.
    • setStartPosition

      public void setStartPosition(String startPosition)
      Parameters:
      startPosition - The startPosition to set.
    • getRecordsReply

      public GetRecordsReply getRecordsReply()
      Returns:
      the recordsReply