File Coverage

blib/lib/Treex/PML/Schema/Constants.pm
Criterion Covered Total %
statement 82 82 100.0
branch n/a
condition n/a
subroutine 28 28 100.0
pod n/a
total 110 110 100.0


line stmt bran cond sub pod time code
1             package Treex::PML::Schema::Constants;
2              
3 9     9   124 use 5.008;
  9         26  
4 9     9   89 use strict;
  9         22  
  9         197  
5 9     9   42 use warnings;
  9         27  
  9         449  
6              
7 9     9   45 use vars qw($VERSION);
  9         12  
  9         545  
8             BEGIN {
9 9     9   194 $VERSION='2.29'; # version template
10             }
11 9     9   39 use Carp;
  9         10  
  9         537  
12              
13 9     9   35 use constant PML_SCHEMA_NS => "http://ufal.mff.cuni.cz/pdt/pml/schema/";
  9         13  
  9         654  
14              
15 9     9   40 use constant PML_TYPE_DECL => 1;
  9         23  
  9         405  
16 9     9   35 use constant PML_ROOT_DECL => 2;
  9         19  
  9         373  
17 9     9   38 use constant PML_STRUCTURE_DECL => 3;
  9         18  
  9         326  
18 9     9   33 use constant PML_CONTAINER_DECL => 4;
  9         13  
  9         316  
19 9     9   32 use constant PML_SEQUENCE_DECL => 5;
  9         10  
  9         346  
20 9     9   43 use constant PML_LIST_DECL => 6;
  9         63  
  9         350  
21 9     9   35 use constant PML_ALT_DECL => 7;
  9         12  
  9         317  
22 9     9   36 use constant PML_CDATA_DECL => 8;
  9         11  
  9         327  
23 9     9   45 use constant PML_CHOICE_DECL => 9;
  9         14  
  9         361  
24 9     9   34 use constant PML_CONSTANT_DECL => 10;
  9         22  
  9         349  
25 9     9   40 use constant PML_ATTRIBUTE_DECL => 11;
  9         12  
  9         389  
26 9     9   39 use constant PML_MEMBER_DECL => 12;
  9         12  
  9         398  
27 9     9   47 use constant PML_ELEMENT_DECL => 13;
  9         18  
  9         359  
28 9     9   38 use constant PML_SCHEMA_DECL => 14;
  9         19  
  9         296  
29              
30 9     9   31 use constant PML_IMPORT_DECL => 20;
  9         13  
  9         410  
31 9     9   38 use constant PML_DERIVE_DECL => 21;
  9         13  
  9         1866  
32 9     9   33 use constant PML_TEMPLATE_DECL => 22;
  9         19  
  9         284  
33 9     9   32 use constant PML_COPY_DECL => 23;
  9         16  
  9         3547  
34              
35             # validation flags
36 9     9   42 use constant PML_VALIDATE_NO_TREES => 1;
  9         2118  
  9         3510  
37 9     9   42 use constant PML_VALIDATE_NO_CHILDNODES => 2;
  9         11  
  9         966  
38              
39             BEGIN {
40 9     9   42 require Exporter;
41 9         98 import Exporter qw( import );
42 9         48 our @EXPORT = qw(
43             PML_TYPE_DECL
44             PML_ROOT_DECL
45             PML_STRUCTURE_DECL
46             PML_CONTAINER_DECL
47             PML_SEQUENCE_DECL
48             PML_LIST_DECL
49             PML_ALT_DECL
50             PML_CDATA_DECL
51             PML_CHOICE_DECL
52             PML_CONSTANT_DECL
53             PML_ATTRIBUTE_DECL
54             PML_MEMBER_DECL
55             PML_ELEMENT_DECL
56             PML_SCHEMA_DECL
57             PML_IMPORT_DECL
58             PML_DERIVE_DECL
59             PML_TEMPLATE_DECL
60             PML_COPY_DECL
61              
62             PML_VALIDATE_NO_TREES
63             PML_VALIDATE_NO_CHILDNODES
64              
65             PML_SCHEMA_NS
66             );
67 9         347 our %EXPORT_TAGS = (
68             'constants' => [ @EXPORT ],
69             );
70             }
71             1;
72             __END__