source: cows/trunk/cows/model/storedquery.py @ 4398

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/model/storedquery.py@4398
Revision 4398, 962 bytes checked in by domlowe, 11 years ago (diff)

Adding stub code for WFS 2.0 stored query implementation

Line 
1"""WFS 2.0 StoredQuery, ParameterExpression and QueryExpressionText classes
2@author: Dominic Lowe (BADC)"""
3
4class StoredQuery(object):
5    def __init__(self, id, title=None, abstract=None,metadata=None, parameter=None, queryExpressionText=None ):
6        self.id=id
7        self.title=title
8        self.abstract=abstract
9        self.metadata=metadata
10        self.parameter=parameter
11        self.queryExpressionText=queryExpressionText
12   
13class ParameterExpression(object):
14    def __init__(self, name, type, title=None, abstract=None, metadata=None):
15        self.name=name
16        self.type=type
17        self.title=title
18        self.abstract=abstract
19        self.metadata=metadata
20   
21class QueryExpressionText(object):
22    def __init__(self, returnFeatureTypes, language=None, any=None, isPrivate=False):
23        self.returnFeatureTypes=returnFeatureTypes
24        self.language=language
25        self.any=any
26        self.isPrivate=isPrivate
27   
28   
Note: See TracBrowser for help on using the repository browser.