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

org.deegree.ogcwebservices.wpvs.configuration
Class LocalWFSDataSource

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

public class LocalWFSDataSource
extends AbstractDataSource

This class represents a local WFS dataSource object.

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

Field Summary
 
Fields inherited from class org.deegree.ogcwebservices.wpvs.configuration.AbstractDataSource
LOCAL_WCS, LOCAL_WFS, LOCAL_WMS, REMOTE_WCS, REMOTE_WFS, REMOTE_WMS, SERVICE_TYPE_TO_NAME
 
Constructor Summary
LocalWFSDataSource(QualifiedName name, OWSCapabilities owsCapabilities, Surface validArea, double minScaleDenominator, double maxScaleDenominator, PropertyPath geomProperty, Filter filterCondition, int maxFeatures)
          Creates a new LocalWFSDataSource object from the given parameters.
 
Method Summary
 Filter getFilter()
           
 PropertyPath getGeometryProperty()
           
 int getMaxFeatures()
           
 OGCWebService getOGCWebService()
          Returns an instance of the OGCWebService that represents the datasource.
 java.lang.String retrieveConfiguredConstraintValue(java.lang.String constraintName)
          returns the (first) value of the configured constraint (given by it's name) for this WFSDataSource.
 java.lang.String retrieveConfiguredValueForOperation(java.lang.String operationName, java.lang.String requestedParameterName)
          Retrieves (if it exists) the first value of the requestedParameterName of the Operation defined by it's name.
 java.lang.String retrieveConfiguredValueForOperationOfNewOWSCommon(java.lang.String operationName, java.lang.String requestedParameterName)
          ---DO NOT REMOVE --- NOT FUNCTIONAL YET, BUT might be if the WFS uses the new OWSCommon Package.
 java.lang.String toString()
           
 
Methods inherited from class org.deegree.ogcwebservices.wpvs.configuration.AbstractDataSource
getFilterCondition, getMaxScaleDenominator, getMinScaleDenominator, getName, getOwsCapabilities, getServiceType, getValidArea, setServiceType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalWFSDataSource

public LocalWFSDataSource(QualifiedName name,
                          OWSCapabilities owsCapabilities,
                          Surface validArea,
                          double minScaleDenominator,
                          double maxScaleDenominator,
                          PropertyPath geomProperty,
                          Filter filterCondition,
                          int maxFeatures)
Creates a new LocalWFSDataSource object from the given parameters.

Parameters:
name -
owsCapabilities -
validArea -
minScaleDenominator -
maxScaleDenominator -
geomProperty -
filterCondition - a wfs query //TODO give an example //*
maxFeatures - to query this datasource for.
Method Detail

toString

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

getFilter

public Filter getFilter()
Returns:
the Filter of the filterCondition.

getGeometryProperty

public PropertyPath getGeometryProperty()
Returns:
the geometryProperty.

getOGCWebService

public OGCWebService getOGCWebService()
                               throws OGCWebServiceException
Description copied from class: AbstractDataSource
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

Specified by:
getOGCWebService in class AbstractDataSource
Returns:
an OGCWebService which represents this datasource
Throws:
OGCWebServiceException - if an error occurs while creating the webservice instance

retrieveConfiguredValueForOperationOfNewOWSCommon

public java.lang.String retrieveConfiguredValueForOperationOfNewOWSCommon(java.lang.String operationName,
                                                                          java.lang.String requestedParameterName)
---DO NOT REMOVE --- NOT FUNCTIONAL YET, BUT might be if the WFS uses the new OWSCommon Package. Retrieves (if it exists) the first value of the requestedParameterName of the Operation defined by it's name. For example one wants to get GetFeature#outputFormat

Parameters:
operationName - the name of the configured Operation
requestedParameterName - the name of the Parameter.
Returns:
null - in the future: the Value of the (first) parameter if it exists else null.

retrieveConfiguredValueForOperation

public java.lang.String retrieveConfiguredValueForOperation(java.lang.String operationName,
                                                            java.lang.String requestedParameterName)
Retrieves (if it exists) the first value of the requestedParameterName of the Operation defined by it's name. For example one wants to get GetFeature#outputFormat

Parameters:
operationName - the name of the configured Operation
requestedParameterName - the name of the Parameter.
Returns:
the Value of the (first) parameter if it exists else null.

retrieveConfiguredConstraintValue

public java.lang.String retrieveConfiguredConstraintValue(java.lang.String constraintName)
returns the (first) value of the configured constraint (given by it's name) for this WFSDataSource.

Parameters:
constraintName - the name of the constraint.
Returns:
the value of the Constraint or null if no such constraint could be found.

getMaxFeatures

public final int getMaxFeatures()
Returns:
the configured MaxFeatures.

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