| 1 | package Biblio::ILL::ISO::RequesterSHIPPED; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | =head1 NAME | ||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | Biblio::ILL::ISO::RequesterSHIPPED | ||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | =cut | ||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 4 | ▶ | use Biblio::ILL::ISO::ILLASNtype; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | 4 | ▶ | use Biblio::ILL::ISO::ENUMERATED; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 4 | ▶ | use Carp; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | =head1 VERSION | ||||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | Version 0.01 | ||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | =cut | ||||||||||||||||||||
| 19 | |||||||||||||||||||||
| 20 | 4 | our $VERSION = '0.01'; | |||||||||||||||||||
| 21 | #--------------------------------------------------------------------------- | ||||||||||||||||||||
| 22 | # Mods | ||||||||||||||||||||
| 23 | # 0.01 - 2003.07.15 - original version | ||||||||||||||||||||
| 24 | #--------------------------------------------------------------------------- | ||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | =head1 DESCRIPTION | ||||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | Biblio::ILL::ISO::RequesterSHIPPED is a derivation of Biblio::ILL::ISO::ENUMERATED. | ||||||||||||||||||||
| 29 | |||||||||||||||||||||
| 30 | =head1 USES | ||||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | None. | ||||||||||||||||||||
| 33 | |||||||||||||||||||||
| 34 | =head1 USED IN | ||||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | Biblio::ILL::ISO::RequesterOptionalMessageType | ||||||||||||||||||||
| 37 | |||||||||||||||||||||
| 38 | =cut | ||||||||||||||||||||
| 39 | |||||||||||||||||||||
| 40 | 4 | ▶ | BEGIN{@ISA = qw ( Biblio::ILL::ISO::ENUMERATED | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 41 | Biblio::ILL::ISO::ILLASNtype );} # inherit from ILLASNtype | ||||||||||||||||||||
| 42 | |||||||||||||||||||||
| 43 | =head1 FROM THE ASN DEFINITION | ||||||||||||||||||||
| 44 | |||||||||||||||||||||
| 45 | (part of Requester-Optional-Message-Type) | ||||||||||||||||||||
| 46 | |||||||||||||||||||||
| 47 | requester-SHIPPED [2] IMPLICIT ENUMERATED { | ||||||||||||||||||||
| 48 | requires (1), | ||||||||||||||||||||
| 49 | desires (2), | ||||||||||||||||||||
| 50 | neither (3) | ||||||||||||||||||||
| 51 | } | ||||||||||||||||||||
| 52 | |||||||||||||||||||||
| 53 | =cut | ||||||||||||||||||||
| 54 | |||||||||||||||||||||
| 55 | =head1 METHODS | ||||||||||||||||||||
| 56 | |||||||||||||||||||||
| 57 | =cut | ||||||||||||||||||||
| 58 | |||||||||||||||||||||
| 59 | #--------------------------------------------------------------- | ||||||||||||||||||||
| 60 | # | ||||||||||||||||||||
| 61 | #--------------------------------------------------------------- | ||||||||||||||||||||
| 62 | =head1 | ||||||||||||||||||||
| 63 | |||||||||||||||||||||
| 64 | =head2 new( $s ) | ||||||||||||||||||||
| 65 | |||||||||||||||||||||
| 66 | Creates a new RequesterSHIPPED object. | ||||||||||||||||||||
| 67 | Valid paramaters are listed in the FROM THE ASN DEFINITION section | ||||||||||||||||||||
| 68 | (e.g. "requires"). | ||||||||||||||||||||
| 69 | |||||||||||||||||||||
| 70 | =cut | ||||||||||||||||||||
| 71 | 2 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=4 SCAR=14.8
Pod
documented
| |||||||||||||||||||||
| 72 | 2 | my $class = shift; | |||||||||||||||||||
| 73 | 2 | my $self = {}; | |||||||||||||||||||
| 74 | |||||||||||||||||||||
| 75 | 2 | $self->{"ENUM_LIST"} = {"requires" => 1, | |||||||||||||||||||
| 76 | "desires" => 2, | ||||||||||||||||||||
| 77 | "neither" => 3 | ||||||||||||||||||||
| 78 | }; | ||||||||||||||||||||
| 79 | |||||||||||||||||||||
| 80 | 2 | ▶ | if (@_) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 81 | 2 | my $s = shift; | |||||||||||||||||||
| 82 | |||||||||||||||||||||
| 83 | 2 | ▶ | if ( exists $self->{"ENUM_LIST"}->{$s} ) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 84 | 2 | $self->{"ENUMERATED"} = $self->{"ENUM_LIST"}->{$s}; | |||||||||||||||||||
| 85 | } else { | ||||||||||||||||||||
| 86 | 0 | croak "invalid RequesterSHIPPED type: [$s]"; | |||||||||||||||||||
| 87 | } | ||||||||||||||||||||
| 88 | } | ||||||||||||||||||||
| 89 | |||||||||||||||||||||
| 90 | 2 | ▶ | bless($self, ref($class) || $class); | ||||||||||||||||||
|
Condition33%1/3
ref $class || $class
MC/DC0%0/2
ref $class || $class
ref $class
$class
Truth table33%1/3
A || B
A= ref $classB= $class
| |||||||||||||||||||||
| 91 | 2 | return ($self); | |||||||||||||||||||
| 92 | } | ||||||||||||||||||||
| 93 | |||||||||||||||||||||
| 94 | =head1 SEE ALSO | ||||||||||||||||||||
| 95 | |||||||||||||||||||||
| 96 | See the README for system design notes. | ||||||||||||||||||||
| 97 | See the parent class(es) for other available methods. | ||||||||||||||||||||
| 98 | |||||||||||||||||||||
| 99 | For more information on Interlibrary Loan standards (ISO 10160/10161), | ||||||||||||||||||||
| 100 | a good place to start is: | ||||||||||||||||||||
| 101 | |||||||||||||||||||||
| 102 | http://www.nlc-bnc.ca/iso/ill/main.htm | ||||||||||||||||||||
| 103 | |||||||||||||||||||||
| 104 | =cut | ||||||||||||||||||||
| 105 | |||||||||||||||||||||
| 106 | =head1 AUTHOR | ||||||||||||||||||||
| 107 | |||||||||||||||||||||
| 108 | David Christensen, <DChristensenSPAMLESS@westman.wave.ca> | ||||||||||||||||||||
| 109 | |||||||||||||||||||||
| 110 | =cut | ||||||||||||||||||||
| 111 | |||||||||||||||||||||
| 112 | |||||||||||||||||||||
| 113 | =head1 COPYRIGHT AND LICENSE | ||||||||||||||||||||
| 114 | |||||||||||||||||||||
| 115 | Copyright 2003 by David Christensen | ||||||||||||||||||||
| 116 | |||||||||||||||||||||
| 117 | This library is free software; you can redistribute it and/or modify it | ||||||||||||||||||||
| 118 | under the same terms as Perl itself. | ||||||||||||||||||||
| 119 | |||||||||||||||||||||
| 120 | =cut | ||||||||||||||||||||
| 121 | |||||||||||||||||||||
| 122 | 4 | 1; | |||||||||||||||||||