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 8     8   166 use 5.008;
  8         29  
4 8     8   47 use strict;
  8         16  
  8         225  
5 8     8   35 use warnings;
  8         20  
  8         550  
6              
7 8     8   58 use vars qw($VERSION);
  8         14  
  8         551  
8             BEGIN {
9 8     8   260 $VERSION='2.28'; # version template
10             }
11 8     8   49 use Carp;
  8         25  
  8         612  
12              
13 8     8   45 use constant PML_SCHEMA_NS => "http://ufal.mff.cuni.cz/pdt/pml/schema/";
  8         12  
  8         677  
14              
15 8     8   43 use constant PML_TYPE_DECL => 1;
  8         14  
  8         409  
16 8     8   40 use constant PML_ROOT_DECL => 2;
  8         42  
  8         1179  
17 8     8   43 use constant PML_STRUCTURE_DECL => 3;
  8         13  
  8         414  
18 8     8   40 use constant PML_CONTAINER_DECL => 4;
  8         14  
  8         413  
19 8     8   40 use constant PML_SEQUENCE_DECL => 5;
  8         10  
  8         405  
20 8     8   59 use constant PML_LIST_DECL => 6;
  8         40  
  8         369  
21 8     8   41 use constant PML_ALT_DECL => 7;
  8         13  
  8         417  
22 8     8   42 use constant PML_CDATA_DECL => 8;
  8         12  
  8         432  
23 8     8   43 use constant PML_CHOICE_DECL => 9;
  8         12  
  8         452  
24 8     8   42 use constant PML_CONSTANT_DECL => 10;
  8         13  
  8         332  
25 8     8   39 use constant PML_ATTRIBUTE_DECL => 11;
  8         13  
  8         351  
26 8     8   44 use constant PML_MEMBER_DECL => 12;
  8         15  
  8         378  
27 8     8   100 use constant PML_ELEMENT_DECL => 13;
  8         30  
  8         368  
28 8     8   44 use constant PML_SCHEMA_DECL => 14;
  8         14  
  8         407  
29              
30 8     8   55 use constant PML_IMPORT_DECL => 20;
  8         15  
  8         372  
31 8     8   39 use constant PML_DERIVE_DECL => 21;
  8         17  
  8         2845  
32 8     8   68 use constant PML_TEMPLATE_DECL => 22;
  8         23  
  8         329  
33 8     8   38 use constant PML_COPY_DECL => 23;
  8         19  
  8         2261  
34              
35             # validation flags
36 8     8   1993 use constant PML_VALIDATE_NO_TREES => 1;
  8         2134  
  8         1955  
37 8     8   75 use constant PML_VALIDATE_NO_CHILDNODES => 2;
  8         14  
  8         1146  
38              
39             BEGIN {
40 8     8   51 require Exporter;
41 8         104 import Exporter qw( import );
42 8         51 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 8         326 our %EXPORT_TAGS = (
68             'constants' => [ @EXPORT ],
69             );
70             }
71             1;
72             __END__