NAME
SYNOPSIS
use MARC::Spec::Field;
# create a new field
my $field = MARC::Spec::Field->new('246');
# field does inherit all attributes, predicates and methods
say $field->DOES('MARC::Spec::Structure'); # 1
DESCRIPTION
Is the base class for MARC::Spec::Field and MARC::Spec::Subfield.
METHODS
new(MARC::Spec::Field)
Create a new MARC::Spec instance. Parameter must be an instance of MARC::Spec::Field.
parse(Str)
Parses a MARCspec as string and returns an instance of MARC::Spec.
add_subspec(MARC::Spec::Subspec)
Appends a subspec to the array of the attribute subspecs. Parameter must be an instance of MARC::Spec::Subspec.
add_subspecs(ArrayRef[MARC::Spec::Subspec])
Appends subspecs to the array of the attribute subspecs. Parameter must be an ArrayRef and elements must be instances of MARC::Spec::Subspec.
PREDICATES
has_subspecs
Returns true if attribute subspecs has an value and false otherwise.
ATTRIBUTES
field
Obligatory. Attribute field is an instance of MARC::Spec::Field. See MARC::Spec::Field for the description of attributes.
subfields
If defined, subfields is an array of instances of MARC::Spec::Subfield. See MARC::Spec::Subfield for the description of attributes.
AUTHOR
Carsten Klee <klee at cpan.org>
CONTRIBUTORS
Johann Rolschewski,
<jorol at cpan>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by Carsten Klee.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
BUGS
Please report any bugs to https://github.com/MARCspec/MARC-Spec/issues
SEE ALSO
MARC::Spec, MARC::Spec::Field, MARC::Spec::Subfield, MARC::Spec::Subspec, MARC::Spec::Comparisonstring, MARC::Spec::Parser