Package org.gvsig.gazetteer.drivers
Class AbstractGazetteerServiceDriver
java.lang.Object
org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
org.gvsig.gazetteer.drivers.AbstractGazetteerServiceDriver
- All Implemented Interfaces:
org.gvsig.catalog.drivers.IDiscoveryServiceDriver,IGazetteerServiceDriver
- Direct Known Subclasses:
ADLGazetteerServiceDriver,GeonamesServiceDriver,IDECGazetteerServiceDriver,WFSServiceDriver
public abstract class AbstractGazetteerServiceDriver
extends org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
implements IGazetteerServiceDriver
This class must be inherited by all the gazetteer drivers. It contains
the common attributes.
- Author:
- Jorge Piera Llodra (piera_jor@gva.es)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.gvsig.catalog.querys.DiscoveryServiceQuerydescribeFeatureType(URI uri, String feature) It returns feature propertiesgetQuery()Returns username for protocolbooleanThere are protocols that need to invoke the describeFeatureType operation before to do a getFeature.booleanneedsUsername(String protocol) Indicates if the protocol requires a usernamevoidsetFeatureTypes(FeatureType[] featureTypes) voidsetProjection(String projection) voidsetQuery(GazetteerQuery query) voidsetUsername(String username) Saves username for protocolMethods 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.IDiscoveryServiceDriver
getAditionalSearchPanel, getCapabilities, getDefaultPort, getDefaultSchema, getOneServer, getServerAnswerReady, getServiceName, isProtocolSupported, setServerAnswerReady, toStringMethods inherited from interface org.gvsig.gazetteer.drivers.IGazetteerServiceDriver
getFeature
-
Constructor Details
-
AbstractGazetteerServiceDriver
public AbstractGazetteerServiceDriver()
-
-
Method Details
-
getFeatureTypes
- Returns:
- Returns the feature.
-
setFeatureTypes
- Parameters:
feature- The feature to set.
-
createQuery
public org.gvsig.catalog.querys.DiscoveryServiceQuery createQuery()- Specified by:
createQueryin interfaceorg.gvsig.catalog.drivers.IDiscoveryServiceDriver
-
getQuery
- Returns:
- Returns the query.
-
setQuery
- Parameters:
query- The query to set.
-
describeFeatureType
Description copied from interface:IGazetteerServiceDriverIt returns feature properties- Specified by:
describeFeatureTypein interfaceIGazetteerServiceDriver- Parameters:
uri- Server URI- Returns:
- Array of the attributes of a feature
-
isDescribeFeatureTypeNeeded
public boolean isDescribeFeatureTypeNeeded()Description copied from interface:IGazetteerServiceDriverThere are protocols that need to invoke the describeFeatureType operation before to do a getFeature.- Specified by:
isDescribeFeatureTypeNeededin interfaceIGazetteerServiceDriver- Returns:
- if the describeFeatureType operation is needed.
-
getProjection
- Specified by:
getProjectionin interfaceIGazetteerServiceDriver- Returns:
- the projection
-
setProjection
- Specified by:
setProjectionin interfaceIGazetteerServiceDriver- Parameters:
projection- the projection to set
-
needsUsername
Description copied from interface:IGazetteerServiceDriverIndicates if the protocol requires a username- Specified by:
needsUsernamein interfaceIGazetteerServiceDriver- Parameters:
protocol-- Returns:
-
getUsername
Description copied from interface:IGazetteerServiceDriverReturns username for protocol- Specified by:
getUsernamein interfaceIGazetteerServiceDriver- Returns:
-
setUsername
Description copied from interface:IGazetteerServiceDriverSaves username for protocol- Specified by:
setUsernamein interfaceIGazetteerServiceDriver
-