NAME

Spreadsheet::Reader::ExcelXML::WorkbookPropsInterface - Workbook docProps file interface

SYNOPSIS

#!/usr/bin/env perl
use MooseX::ShortCut::BuildInstance qw( build_instance );
use Types::Standard qw( HashRef );
use Spreadsheet::Reader::ExcelXML::XMLReader;
use Spreadsheet::Reader::ExcelXML::WorkbookFileInterface;
use Spreadsheet::Reader::ExcelXML::ZipReader::WorkbookProps;
use Spreadsheet::Reader::ExcelXML::WorkbookPropsInterface;
my	$extractor_instance = build_instance(
		superclasses => ['Spreadsheet::Reader::ExcelXML::XMLReader'],
		package => 'ExtractorInstance',
		file => '../../../../t/test_files/TestBook.xml',
		add_roles_in_sequence =>[
			'Spreadsheet::Reader::ExcelXML::WorkbookFileInterface',
		],
	);
my	$file_handle = $extractor_instance->extract_file( qw( DocumentProperties ) );
my	$test_instance = build_instance(
		superclasses	=> ['Spreadsheet::Reader::ExcelXML::XMLReader'],
		package	=> 'WorkbookPropsInterface',
		add_roles_in_sequence =>[
			'Spreadsheet::Reader::ExcelXML::XMLReader::WorkbookProps',
			'Spreadsheet::Reader::ExcelXML::WorkbookPropsInterface',
		],
		file => $file_handle,# No extractor needed for zip files so call 't/test_files/docProps/core.xml' directly
	);
print $test_instance->$get_date_created . "\n";

###########################
# SYNOPSIS Screen Output
# 01: 2013-11-10T08:27:01Z
###########################

DESCRIPTION

This documentation is written to explain ways to use this module when writing your own excel parser. To use the general package for excel parsing out of the box please review the documentation for Workbooks, Worksheets, and Cells

This module (role) is provided as a way to standardize access to or interface with base docProps data files containing workbook level meta data. It doesn't provide any functionality itself it just provides requirements for any built classes so a consumer of this interface will be able to use a consistent interface. The base class will generally be;

Spreadsheet::Reader::ExcelXML::XMLReader

The unique functionality is generally provided by;

Spreadsheet::Reader::ExcelXML::ZipReader::WorkbookProps

Spreadsheet::Reader::ExcelXML::XMLReader::WorkbookProps

Required Methods

These are the methods required by the role. A link to the Zip implementation of these methods is provided. The XML versions are documented in ~::XMLReader::WorkbookRels.

"get_creator" in Spreadsheet::Reader::ExcelXML::ZipReader::WorkbookMeta

"get_modified_by" in Spreadsheet::Reader::ExcelXML::ZipReader::WorkbookMeta

"get_date_created" in Spreadsheet::Reader::ExcelXML::ZipReader::WorkbookMeta

"get_date_modified" in Spreadsheet::Reader::ExcelXML::ZipReader::WorkbookMeta

"loaded_correctly" in Spreadsheet::Reader::ExcelXML::XMLReader

SUPPORT

TODO

    1. Nothing currently

AUTHOR

Jed Lund
jandrew@cpan.org

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

This software is copyrighted (c) 2016 by Jed Lund

DEPENDENCIES

SEE ALSO