Package org.gvsig.catalog.drivers
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate and return an empty queryintgetNumberOfRecords(XMLNode node, String label, String attribute) This function returns the number of records that have been retrieved.String[]Gets the profile.getQuery()org.gvsig.utils.swing.jcomboServer.ServerDataReturn the server datavoidsetMaxRecords(String maxRecords) voidsetOutputFormat(String outputFormat) voidsetOutputSchema(String outputSchema) voidsetOutputSchema(String[] outputSchema) voidsetQuery(CatalogQuery query) voidsetServerData(org.gvsig.utils.swing.jcomboServer.ServerData serverData) Used to set a ServerData that contains the properties that have been fixed by the uservoidvoidsetStartPosition(String startPosition) Methods inherited from class org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
getAditionalSearchPanel, getDefaultPort, getDefaultSchema, getOneServer, getServerAnswerReady, isProtocolSupported, setServerAnswerReady, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gvsig.catalog.drivers.ICatalogServiceDriver
getRecordsMethods inherited from interface org.gvsig.catalog.drivers.IDiscoveryServiceDriver
getAditionalSearchPanel, getCapabilities, getDefaultPort, getDefaultSchema, getOneServer, getServerAnswerReady, getServiceName, isProtocolSupported, setServerAnswerReady, toString
-
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
Gets the profile. It has to be implemented by all the drivers with profile- Specified by:
getProfilein interfaceICatalogServiceDriver- Returns:
- The profile
-
getNumberOfRecords
This function returns the number of records that have been retrieved. It Reads a Node value.- Parameters:
node- The answer treelabel- Node Name that contains the valueattribute- Attributes wich contain the value- Returns:
- The number of records
-
createQuery
Description copied from interface:IDiscoveryServiceDriverCreate and return an empty query- Specified by:
createQueryin interfaceIDiscoveryServiceDriver- Returns:
-
getQuery
- Returns:
- Returns the query.
-
setQuery
- Parameters:
query- The query to set.
-
getMaxRecords
- Returns:
- Returns the maxRecords.
-
setMaxRecords
- Parameters:
maxRecords- The maxRecords to set.
-
getOutputFormat
- Returns:
- Returns the outputFormat.
-
setOutputFormat
- Parameters:
outputFormat- The outputFormat to set.
-
getOutputSchema
- Returns:
- Returns the outputSchema.
-
setOutputSchema
- Parameters:
outputSchema- The outputSchema to set.
-
setOutputSchema
- Parameters:
outputSchema-
-
getSortBy
- Returns:
- Returns the sortBy.
-
setSortBy
- Parameters:
sortBy- The sortBy to set.
-
getStartPosition
- Returns:
- Returns the startPosition.
-
setStartPosition
- Parameters:
startPosition- The startPosition to set.
-
getRecordsReply
- Returns:
- the recordsReply
-