root/lang/perl/Data-Semantic-URI/trunk/lib/Data/Semantic/URI/fax.pm @ 9765

Revision 9765, 1.3 kB (checked in by hanekomu, 5 years ago)

r6096@nbgr: marcel | 2008-04-18 16:33:18 +0200
lang/perl/Data-Semantic-URI: initial commit

Line 
1package Data::Semantic::URI::fax;
2
3use strict;
4use warnings;
5
6
7our $VERSION = '0.03';
8
9
10use base qw(Data::Semantic::URI);
11
12
13__PACKAGE__->mk_boolean_accessors(qw(nofuture));
14
15
16use constant REGEXP_KEYS => qw(URI fax);
17use constant KEEP_KEYS   => qw(URI scheme phone_number);
18
19
20sub flags {
21    my $self = shift;
22    my @flags = $self->SUPER::flags(@_);
23    push @flags => 'nofuture' if $self->nofuture;
24    @flags;
25}
26
27
281;
29
30
31__END__
32
33{% USE p = PodGenerated %}
34
35=head1 NAME
36
37{% p.package %} - semantic data class for fax URIs
38
39=head1 SYNOPSIS
40
41    my $obj = {% p.package %}->new;
42    if ($obj->is_valid($value)) { ... }
43
44=head1 DESCRIPTION
45
46This class can tell whether a value is a fax URI, as defined by RFC 2006. The
47C<valid()> method will respect the C<nofuture> boolean attribute and the
48inherited C<keep> boolean attribute.
49
50If C<nofuture> is set, future extensions are not allowed.
51
52If C<keep> is set, C<kept()> will return a hash with the following keys/value
53pairs:
54
55=over 4
56
57=item URI
58
59The complete URI.
60
61=item scheme
62
63The scheme.
64
65=item phone_number
66
67The phone number, including any possible add-ons like ISDN subaddress, a
68post dial part, area specifier, service provider, etc.
69
70=back
71
72=head1 METHODS
73
74=over 4
75
76{% p.write_methods %}
77
78=back
79
80{% p.write_inheritance %}
81
82=head1 SEE ALSO
83
84L<Regexp::Common::URI::fax>
85
86{% PROCESS standard_pod %}
87
88=cut
89
Note: See TracBrowser for help on using the browser.