#NEWLINE# def __init__( self , md = None ) : #NEWLINE# #INDENT# if ( md is None ) : #NEWLINE# #INDENT# self . title = None #NEWLINE# self . abstract = None #NEWLINE# self . contact = None #NEWLINE# self . identtype = 'service' #NEWLINE# self . type = None #NEWLINE# self . version = None #NEWLINE# self . fees = None #NEWLINE# self . bbox = None #NEWLINE# self . couplingtype = None #NEWLINE# self . operations = [ ] #NEWLINE# self . operateson = [ ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# val = md . find ( util . nspath_eval ( 'gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString' , namespaces ) ) #NEWLINE# self . title = util . testXMLValue ( val ) #NEWLINE# val = md . find ( util . nspath_eval ( 'gmd:abstract/gco:CharacterString' , namespaces ) ) #NEWLINE# self . abstract = util . testXMLValue ( val ) #NEWLINE# self . contact = None #NEWLINE# val = md . find ( util . nspath_eval ( 'gmd:citation/gmd:CI_Citation/gmd:citedResponsibleParty/gmd:CI_ResponsibleParty' , namespaces ) ) #NEWLINE# if ( val is not None ) : #NEWLINE# #INDENT# self . contact = CI_ResponsibleParty ( val ) #NEWLINE# #UNINDENT# self . identtype = 'service' #NEWLINE# val = md . find ( util . nspath_eval ( 'srv:serviceType/gco:LocalName' , namespaces ) ) #NEWLINE# self . type = util . testXMLValue ( val ) #NEWLINE# val = md . find ( util . nspath_eval ( 'srv:serviceTypeVersion/gco:CharacterString' , namespaces ) ) #NEWLINE# self . version = util . testXMLValue ( val ) #NEWLINE# val = md . find ( util . nspath_eval ( 'srv:accessProperties/gmd:MD_StandardOrderProcess/gmd:fees/gco:CharacterString' , namespaces ) ) #NEWLINE# self . fees = util . testXMLValue ( val ) #NEWLINE# val = md . find ( util . nspath_eval ( 'srv:extent/gmd:EX_Extent' , namespaces ) ) #NEWLINE# if ( val is not None ) : #NEWLINE# #INDENT# self . bbox = EX_Extent ( val ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . bbox = None #NEWLINE# #UNINDENT# self . couplingtype = _testCodeListValue ( md . find ( util . nspath_eval ( 'gmd:couplingType/gmd:SV_CouplingType' , namespaces ) ) ) #NEWLINE# self . operations = [ ] #NEWLINE# for i in md . findall ( util . nspath_eval ( 'srv:containsOperations' , namespaces ) ) : #NEWLINE# #INDENT# tmp = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# val = i . find ( util . nspath_eval ( 'srv:SV_OperationMetadata/srv:operationName/gco:CharacterString' , namespaces ) ) #NEWLINE# tmp [ 'name' ] = util . testXMLValue ( val ) #NEWLINE# tmp [ 'dcplist' ] = [ ] #NEWLINE# for d in i . findall ( util . nspath_eval ( 'srv:SV_OperationMetadata/srv:DCP' , namespaces ) ) : #NEWLINE# #INDENT# tmp2 = _testCodeListValue ( d . find ( util . nspath_eval ( 'srv:DCPList' , namespaces ) ) ) #NEWLINE# tmp [ 'dcplist' ] . append ( tmp2 ) #NEWLINE# #UNINDENT# tmp [ 'connectpoint' ] = [ ] #NEWLINE# for d in i . findall ( util . nspath_eval ( 'srv:SV_OperationMetadata/srv:connectPoint' , namespaces ) ) : #NEWLINE# #INDENT# tmp3 = d . find ( util . nspath_eval ( 'gmd:CI_OnlineResource' , namespaces ) ) #NEWLINE# tmp [ 'connectpoint' ] . append ( CI_OnlineResource ( tmp3 ) ) #NEWLINE# #UNINDENT# self . operations . append ( tmp ) #NEWLINE# #UNINDENT# self . operateson = [ ] #NEWLINE# for i in md . findall ( util . nspath_eval ( 'srv:operatesOn' , namespaces ) ) : #NEWLINE# #INDENT# tmp = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# tmp [ 'uuidref' ] = i . attrib . get ( 'uuidref' ) #NEWLINE# tmp [ 'href' ] = i . attrib . get ( util . nspath_eval ( 'xlink:href' , namespaces ) ) #NEWLINE# tmp [ 'title' ] = i . attrib . get ( util . nspath_eval ( 'xlink:title' , namespaces ) ) #NEWLINE# self . operateson . append ( tmp )