deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.ogcwebservices.wpvs.configuration
Class AbstractDataSource

java.lang.Object
  extended by org.deegree.ogcwebservices.wpvs.configuration.AbstractDataSource
Direct Known Subclasses:
LocalWCSDataSource, LocalWFSDataSource, LocalWMSDataSource

public abstract class AbstractDataSource
extends java.lang.Object

NB. this class is very similar to AbstractDataSource from wms TODO -> re-use ? put into common package?

Since:
2.0
Version:
2.0, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Ugo Taddei, last edited by: $Author: mschneider $

Field Summary
static int LOCAL_WCS
          Identifier for a local wcs
static int LOCAL_WFS
          Identifier for a local wfs
static int LOCAL_WMS
          Identifier for a local wms
static int REMOTE_WCS
          Identifier for a remote wcs
static int REMOTE_WFS
          Identifier for a remote wfs
static int REMOTE_WMS
          Identifier for a remote wms
protected static java.lang.String[] SERVICE_TYPE_TO_NAME
          The list of supported services
 
Constructor Summary
AbstractDataSource(int serviceType, QualifiedName name, OWSCapabilities owsCapabilities, Surface validArea, double minScaleDenominator, double maxScaleDenominator, java.lang.Object filterCondition)
          TODO pre-conditions.
 
Method Summary
 java.lang.Object getFilterCondition()
           
 double getMaxScaleDenominator()
           
 double getMinScaleDenominator()
           
 QualifiedName getName()
           
abstract  OGCWebService getOGCWebService()
          Returns an instance of the OGCWebService that represents the datasource.
 OWSCapabilities getOwsCapabilities()
           
 int getServiceType()
           
 Surface getValidArea()
           
 void setServiceType(int serviceType)
          Sets the type of service.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOCAL_WCS

public static final int LOCAL_WCS
Identifier for a local wcs

See Also:
Constant Field Values

LOCAL_WFS

public static final int LOCAL_WFS
Identifier for a local wfs

See Also:
Constant Field Values

LOCAL_WMS

public static final int LOCAL_WMS
Identifier for a local wms

See Also:
Constant Field Values

REMOTE_WFS

public static final int REMOTE_WFS
Identifier for a remote wfs

See Also:
Constant Field Values

REMOTE_WCS

public static final int REMOTE_WCS
Identifier for a remote wcs

See Also:
Constant Field Values

REMOTE_WMS

public static final int REMOTE_WMS
Identifier for a remote wms

See Also:
Constant Field Values

SERVICE_TYPE_TO_NAME

protected static final java.lang.String[] SERVICE_TYPE_TO_NAME
The list of supported services

Constructor Detail

AbstractDataSource

public AbstractDataSource(int serviceType,
                          QualifiedName name,
                          OWSCapabilities owsCapabilities,
                          Surface validArea,
                          double minScaleDenominator,
                          double maxScaleDenominator,
                          java.lang.Object filterCondition)
TODO pre-conditions.

Parameters:
serviceType -
name -
owsCapabilities -
validArea -
minScaleDenominator -
maxScaleDenominator -
filterCondition -
Method Detail

getServiceType

public int getServiceType()
Returns:
Returns the serviceType (WCS, WFS, remote WMS etc...)

setServiceType

public void setServiceType(int serviceType)
Sets the type of service. A service type means whether the service is a WFS, WCS, remote WMS, etc. Allowed values are LOCAL_WCS, LOCAL_WFS, LOCAL_WMS, REMOTE_WFS, REMOTE_WCS or REMOTE_WMS.

Parameters:
serviceType - the service type.
Throws:
java.lang.IllegalArgumentException - if the serviceType is not of know type

getMaxScaleDenominator

public double getMaxScaleDenominator()
Returns:
Returns the maxScaleDenominator.

getMinScaleDenominator

public double getMinScaleDenominator()
Returns:
Returns the minScaleDenominator.

getName

public QualifiedName getName()
Returns:
Returns the name.

getOwsCapabilities

public OWSCapabilities getOwsCapabilities()
Returns:
Returns the owsCapabilities.

getValidArea

public Surface getValidArea()
Returns:
Returns the validArea.

getFilterCondition

public java.lang.Object getFilterCondition()
Returns:
Returns the filterCondition.

getOGCWebService

public abstract OGCWebService getOGCWebService()
                                        throws OGCWebServiceException
Returns an instance of the OGCWebService that represents the datasource. Notice: if more than one datasets uses data that are offered by the same OWS, deegree WPVS will use just one instance for accessing the OWS

Returns:
an OGCWebService which represents this datasource
Throws:
OGCWebServiceException - if an error occurs while creating the webservice instance

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org