CycloneDX/Patent/PriorityApplication.pm

filter: Statementstmt 80.0% 28 / 35 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 8 / 10 Podpod 100% 1 / 1 totaltotal 68.5% 37 / 54 CC 5 SCAR 19.7
CC
5
Cov
65%
TO_JSON
20.0
__ANON__
6.0
BEGIN
1.0
CRAP 7.1
« CycloneDX/IdentifiableAction.pm ↑ Summary CycloneDX/License/ExpressionDetail.pm »
1 package SBOM::CycloneDX::Patent::PriorityApplication;
2  
3 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use SBOM::CycloneDX::Timestamp;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use Types::Standard qw(Str InstanceOf);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 extends 'SBOM::CycloneDX::Base';
16  
17  
18 1 has application_number => (is => 'rw', isa => Str, required => 1);
19  
20 1 has jurisdiction => (is => 'rw', isa => Str, required => 1);
21  
22 has filing_date => (
23 is => 'rw',
24 isa => InstanceOf ['SBOM::CycloneDX::Timestamp'],
25 0 ▶ coerce => sub { ref($_[0]) ? $_[0] : SBOM::CycloneDX::Timestamp->new($_[0]) },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
ref $_[0] ? : 0 0 0
26 1 required => 1
27 );
28  
29  
30 0 ▶sub TO_JSON {
Subroutine TO_JSON: not called CC=4 SCAR=30.0
Pod documented
31  
32 0 my $self = shift;
33  
34 0 my $json = {};
35  
36 0 ▶ $json->{applicationNumber} = $self->application_number if ($self->application_number);
Branch: 1 branch
BranchTrueFalseTotal
if $self->application_number 0 0 0
37 0 ▶ $json->{jurisdiction} = $self->jurisdiction if ($self->jurisdiction);
Branch: 1 branch
BranchTrueFalseTotal
if $self->jurisdiction 0 0 0
38 0 ▶ $json->{filingDate} = $self->filing_date if ($self->filing_date);
Branch: 1 branch
BranchTrueFalseTotal
if $self->filing_date 0 0 0
39  
40 0 return $json;
41  
42 }
43  
44 1 1;
45  
46 =encoding utf-8
47  
48 =head1 NAME
49  
50 SBOM::CycloneDX::Patent::PriorityApplication - Priority Application
51  
52 =head1 SYNOPSIS
53  
54 SBOM::CycloneDX::Patent::PriorityApplication->new();
55  
56  
57 =head1 DESCRIPTION
58  
59 L<SBOM::CycloneDX::Patent::PriorityApplication> The priorityApplication
60 contains the essential data necessary to identify and reference an earlier
61 patent filing for priority rights. In line with WIPO ST.96 guidelines, it
62 includes the jurisdiction (office code), application number, and filing
63 date-the three key elements that uniquely specify the priority application
64 in a global patent context.
65  
66 =head2 METHODS
67  
68 L<SBOM::CycloneDX::Patent::PriorityApplication> inherits all methods from L<SBOM::CycloneDX::Base>
69 and implements the following new ones.
70  
71 =over
72  
73 =item SBOM::CycloneDX::Patent::PriorityApplication->new( %PARAMS )
74  
75 Properties:
76  
77 =over
78  
79 =item * C<application_number>, The unique number assigned to a patent application
80 when it is filed with a patent office. It is used to identify the specific
81 application and track its progress through the examination process. Aligned
82 with C<ApplicationNumber> in ST.96. Refer to L<ApplicationIdentificationType in ST.96|https://www.wipo.int/standards/XMLSchema/ST96/V8_0/Patent/ApplicationIdentificationType.xsd>.
83  
84 =item * C<filing_date>, The date the patent application was filed with the
85 jurisdiction. Aligned with C<FilingDate> in WIPO ST.96. Refer to
86 L<FilingDate in ST.96|https://www.wipo.int/standards/XMLSchema/ST96/V8_0/Patent/FilingDate.xsd>.
87  
88 =item * C<jurisdiction>, The jurisdiction or patent office where the priority
89 application was filed, specified using WIPO ST.3 codes. Aligned with
90 C<IPOfficeCode> in ST.96. Refer to L<WIPOfficeCode in ST.96|https://www.wipo.int/standards/XMLSchema/ST96/V8_0/Common/IPOfficeCode.xsd>.
91  
92 =back
93  
94 =item $priority_application->application_number
95  
96 =item $priority_application->filing_date
97  
98 =item $priority_application->jurisdiction
99  
100 =back
101  
102  
103 =head1 SUPPORT
104  
105 =head2 Bugs / Feature Requests
106  
107 Please report any bugs or feature requests through the issue tracker
108 at L<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>.
109 You will be notified automatically of any progress on your issue.
110  
111 =head2 Source Code
112  
113 This is open source software. The code repository is available for
114 public review and contribution under the terms of the license.
115  
116 L<https://github.com/giterlizzi/perl-SBOM-CycloneDX>
117  
118 git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git
119  
120  
121 =head1 AUTHOR
122  
123 =over 4
124  
125 =item * Giuseppe Di Terlizzi <gdt@cpan.org>
126  
127 =back
128  
129  
130 =head1 LICENSE AND COPYRIGHT
131  
132 This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi.
133  
134 This is free software; you can redistribute it and/or modify it under
135 the same terms as the Perl 5 programming language system itself.
136  
137 =cut
« CycloneDX/IdentifiableAction.pm ↑ Summary CycloneDX/License/ExpressionDetail.pm »