source: TI05-delivery/ows_framework/trunk/ows_common/ows_common/service_identification.py @ 2519

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_common/ows_common/service_identification.py@2519
Revision 2519, 1.3 KB checked in by spascoe, 13 years ago (diff)

Added code to parse service metadata XML into ows_common objects.
Some corrections to ows_common classes.

Line 
1# Copyright (C) 2007 STFC & NERC (Science and Technology Facilities Council).
2# This software may be distributed under the terms of the
3# Q Public License, version 1.0 or later.
4# http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt
5"""
6Classes modelling the OWS Service Identification package v1.1.0.
7
8@author: Stephen Pascoe
9"""
10
11from ows_common.data_identification import Description
12from ows_common.iso19115_subset import Code
13
14class ServiceIdentification(Description):
15    """
16    @ivar serviceType
17    @type serviceType: ows.iso19115_subset.Code
18    @ivar serviceTypeVersions: The supported service versions
19    @type serviceTypeVersions: iterable of str
20    @ivar profiles
21    @type profiles: iterable of str
22    @ivar fees
23    @type fees: None or str
24    @ivar accessConstraints
25    @type accessConstraints: None or str
26
27    """
28    def __init__(self, serviceType, serviceTypeVersions=[],
29                 profiles=[], fees=None, accessConstraints=None, **kwargs):
30        """
31        All parameters set default attributes of the instance.
32
33        """
34        super(self.__class__, self).__init__(**kwargs)
35
36        self.serviceType = serviceType
37        self.serviceTypeVersions = serviceTypeVersions
38        self.profiles = profiles
39        self.fees = fees
40        self.accessConstraints = accessConstraints
41
Note: See TracBrowser for help on using the repository browser.