line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package SIAM::Attribute; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
58
|
|
4
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
212
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
10
|
use base 'SIAM::Object'; |
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
373
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
SIAM::Attribute - Attribute object class |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 SYNOPSIS |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 METHODS |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head2 name |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Returns the value of C attribute. |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=cut |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub name |
24
|
|
|
|
|
|
|
{ |
25
|
9
|
|
|
9
|
1
|
14
|
my $self = shift; |
26
|
9
|
|
|
|
|
21
|
return $self->attr('siam.attribute.name'); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
# mandatory attributes |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
my $mandatory_attributes = |
33
|
|
|
|
|
|
|
[ 'siam.attribute.name' ]; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub _mandatory_attributes |
36
|
|
|
|
|
|
|
{ |
37
|
18
|
|
|
18
|
|
49
|
return $mandatory_attributes; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub _manifest_attributes |
41
|
|
|
|
|
|
|
{ |
42
|
1
|
|
|
1
|
|
5
|
return $mandatory_attributes; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
# Local Variables: |
49
|
|
|
|
|
|
|
# mode: cperl |
50
|
|
|
|
|
|
|
# indent-tabs-mode: nil |
51
|
|
|
|
|
|
|
# cperl-indent-level: 4 |
52
|
|
|
|
|
|
|
# cperl-continued-statement-offset: 4 |
53
|
|
|
|
|
|
|
# cperl-continued-brace-offset: -4 |
54
|
|
|
|
|
|
|
# cperl-brace-offset: 0 |
55
|
|
|
|
|
|
|
# cperl-label-offset: -2 |
56
|
|
|
|
|
|
|
# End: |