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

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

More prototype support for stored queries.

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, returnFeatureType, language=None, any=None, isPrivate=False):
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.