XML::Schema::Scheduler - schedule actions around an XML Schema
package XML::Schema::Attribute; use base qw( XML::Schema::Scheduler ); package main; my $attr = XML::Schema::Attribute->new({ name => $name, # object params type => $type, ...etc... before => $action, # schedule params after => [ $action, $action, ... ], }; $attr->before(); $attr->after();
The XML::Schema::Scheduler module implements a base class (similar to a "mixin") from which other XML Schema modules can be derived. This module implements the action scheduling functionality that allows events to be schedule before and/or after a schema validation event.
Initialiser method called automatically by the XML::Schema::Base new() method or explicitly by the init() method of a derived object class. This method examines the configuration hash for 'before' and/or 'after' parameters which are stored internally as the initial sets of schedule actions.
Add the specified $action to the 'before' schedule.
Add the specified $action to the 'after' schedule.
Run the scheduled 'before' events. Returns a hash reference representing the infoset generated and/or modified by the scheduled actions. An initial hash reference may be otherwise provided.
$attr->before(\%infoset);
Run the scheduled 'after' events. Returns a hash reference representing the infoset generated and/or modified by the scheduled actions. An initial hash reference may be otherwise provided.
Andy Wardley <abw@kfs.org>
This is version $Revision: 1.1.1.1 $ of the XML::Schema::Scheduler module, distributed with version 0.1 of the XML::Schema module set.
Copyright (C) 2001 Canon Research Centre Europe Ltd. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See also XML::Schema.
To install XML::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Schema
CPAN shell
perl -MCPAN -e shell install XML::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.