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

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

Tidying up DescribeQuery? and allowing multiple ParameterExpressions?

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=[], 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, returnFeatureType, language='urn-x:wfs:StoredQueryLanguage:WFS_QueryExpression', any=None, isPrivate=True):
23        self.returnFeatureType=returnFeatureType       
24        self.language=language
25        self.any=any
26        self.isPrivate=isPrivate
27   
28   
Note: See TracBrowser for help on using the repository browser.