SOS/Capabilities.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 25 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« SOS/SensorDescription/Identifiers.pm ↑ Summary SOS/SensorDescription.pm »
1 package WebService::SOS::Capabilities;
2 1 ▶use XML::Rabbit::Root 0.1.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 # Service Identification
5  
6 1 has_xpath_value Title => '/sos:Capabilities/ows:ServiceIdentification/ows:Title';
7 1 has_xpath_value Abstract => '/sos:Capabilities/ows:ServiceIdentification/ows:Abstract';
8 1 has_xpath_value ServiceType => '/sos:Capabilities/ows:ServiceIdentification/ows:ServiceType';
9 1 has_xpath_value ServiceTypeVersion => '/sos:Capabilities/ows:ServiceIdentification/ows:ServiceTypeVersion';
10 1 has_xpath_value Fees => '/sos:Capabilities/ows:ServiceIdentification/ows:Fees';
11 1 has_xpath_value AccessConstraints => '/sos:Capabilities/ows:ServiceIdentification/ows:AccessConstraints';
12 1 has_xpath_value_list Keywords => '/sos:Capabilities/ows:ServiceIdentification/ows:Keywords/ows:Keyword';
13  
14  
15 # Service Provider Description
16  
17 1 has_xpath_value ProviderName => '/sos:Capabilities/ows:ServiceProvider/ows:ProviderName';
18 1 has_xpath_value ProviderSite => '/sos:Capabilities/ows:ServiceProvider/ows:ProviderSite/@xlink:href';
19 1 has_xpath_value IndividualName => '/sos:Capabilities/ows:ServiceProvider/ows:ServiceContact/ows:IndividualName';
20 1 has_xpath_value PositionName => '/sos:Capabilities/ows:ServiceProvider/ows:ServiceContact/ows:PositionName';
21 1 has_xpath_value Voice => '/sos:Capabilities/ows:ServiceProvider/ows:ServiceContact/ows:ContactInfo/ows:Phone/ows:Voice';
22 1 has_xpath_value DeliveryPoint => '/sos:Capabilities/ows:ServiceProvider/ows:ServiceContact/ows:ContactInfo/ows:Address/ows:DeliveryPoint';
23 1 has_xpath_value City => '/sos:Capabilities/ows:ServiceProvider/ows:ServiceContact/ows:ContactInfo/ows:Address/ows:City';
24 1 has_xpath_value AdministrativeArea => '/sos:Capabilities/ows:ServiceProvider/ows:ServiceContact/ows:ContactInfo/ows:Address/ows:AdministrativeArea';
25 1 has_xpath_value PostalCode => '/sos:Capabilities/ows:ServiceProvider/ows:ServiceContact/ows:ContactInfo/ows:Address/ows:PostalCode';
26 1 has_xpath_value Country => '/sos:Capabilities/ows:ServiceProvider/ows:ServiceContact/ows:ContactInfo/ows:Address/ows:Country';
27 1 has_xpath_value ElectronicMailAddress => '/sos:Capabilities/ows:ServiceProvider/ows:ServiceContact/ows:ContactInfo/ows:Address/ows:ElectronicMailAddress';
28  
29  
30 # Operations Metadata
31  
32 1 has_xpath_object_list Operations => '/sos:Capabilities/ows:OperationsMetadata/ows:Operation' => 'WebService::SOS::Capabilities::Operation';
33  
34  
35 # Observation Offerings
36  
37 1 has_xpath_object_list Offerings => '/sos:Capabilities/sos:Contents/sos:ObservationOfferingList/sos:ObservationOffering' => 'WebService::SOS::Capabilities::Offering';
38  
39  
40 1 finalize_class();
« SOS/SensorDescription/Identifiers.pm ↑ Summary SOS/SensorDescription.pm »