lib/XML/Schema/Constants.pm

filter: Statementstmt 100% 56 / 56 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 16 / 16 Podpod n/a totaltotal 100% 72 / 72 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/XML/Schema/Exception.pm ↑ Summary
1 #============================================================= -*-perl-*-
2 #
3 # XML::Schema::Constants.pm
4 #
5 # DESCRIPTION
6 # Module defining constants for XML::Schema
7 #
8 # AUTHOR
9 # Andy Wardley <abw@kfs.org>
10 #
11 # COPYRIGHT
12 # Copyright (C) 2001 Canon Research Centre Europe Ltd.
13 # All Rights Reserved.
14 #
15 # This module is free software; you can redistribute it and/or
16 # modify it under the same terms as Perl itself.
17 #
18 # REVISION
19 # $Id: Constants.pm,v 1.2 2001/12/20 13:26:27 abw Exp $
20 #
21 #========================================================================
22  
23 package XML::Schema::Constants;
24  
25 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 13 ▶use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 13 ▶use base qw( Exporter );
Subroutine BEGIN: called CC=1 SCAR=0.0
28 13 ▶use vars qw( $VERSION @EXPORT_OK %EXPORT_TAGS );
Subroutine BEGIN: called CC=1 SCAR=0.0
29  
30 13 $VERSION = sprintf("%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/);
31  
32 13 ▶use constant UNBOUNDED => 'unbounded';
Subroutine BEGIN: called CC=1 SCAR=0.0
33  
34 13 ▶use constant OPTIONAL => 'optional';
Subroutine BEGIN: called CC=1 SCAR=0.0
35 13 ▶use constant REQUIRED => 'required';
Subroutine BEGIN: called CC=1 SCAR=0.0
36 13 ▶use constant PROHIBITED => 'prohibited';
Subroutine BEGIN: called CC=1 SCAR=0.0
37  
38 13 ▶use constant FIXED => 'fixed';
Subroutine BEGIN: called CC=1 SCAR=0.0
39 13 ▶use constant DEFAULT => 'default';
Subroutine BEGIN: called CC=1 SCAR=0.0
40  
41 13 ▶use constant SKIP => 'skip';
Subroutine BEGIN: called CC=1 SCAR=0.0
42 13 ▶use constant LAX => 'lax';
Subroutine BEGIN: called CC=1 SCAR=0.0
43 13 ▶use constant STRICT => 'strict';
Subroutine BEGIN: called CC=1 SCAR=0.0
44  
45 13 ▶use constant ANY => 'any';
Subroutine BEGIN: called CC=1 SCAR=0.0
46 13 ▶use constant ONE => 'one';
Subroutine BEGIN: called CC=1 SCAR=0.0
47 13 ▶use constant NOT => 'not';
Subroutine BEGIN: called CC=1 SCAR=0.0
48  
49 13 my @OCCURS = qw( UNBOUNDED );
50 13 my @ATTRIBS = qw( FIXED DEFAULT OPTIONAL REQUIRED PROHIBITED );
51 13 my @PROCESS = qw( SKIP LAX STRICT );
52 13 my @SELECT = qw( ANY ONE NOT );
53  
54 13 @EXPORT_OK = ( @OCCURS, @ATTRIBS, @PROCESS, @SELECT );
55 13 %EXPORT_TAGS = (
56 'all' => [ @EXPORT_OK ],
57 'occurs' => [ @OCCURS ],
58 'attribs' => [ @ATTRIBS ],
59 'process' => [ @PROCESS ],
60 'select' => [ @SELECT ],
61 'wildcard' => [ @PROCESS, @SELECT ],
62 );
63  
64  
65 13 1;
66  
67  
« lib/XML/Schema/Exception.pm ↑ Summary