comparison Lib/IMPL/DOM/Schema/InflateFactory.pm @ 104:196bf443b5e1

DOM::Schema RC0 inflators support, validation and some other things, Minor and major fixes almost for everything. A 'Source' property of the ValidationErrors generated from a NodeSet or a NodeList is subject to change in the future.
author wizard
date Tue, 11 May 2010 02:42:59 +0400
parents
children d1676be8afcc
comparison
equal deleted inserted replaced
103:c289ed9662ca 104:196bf443b5e1
1 package IMPL::DOM::Schema::InflateFactory;
2 use strict;
3
4 require IMPL::Exception;
5 require IMPL::Object::Factory;
6
7 sub new {
8 my ($self,$value) = @_;
9
10 if ($value =~ /^(\w+(?:::\w+)*)(?:\.(\w+))?$/) {
11 return IMPL::Object::Factory->new($1,undef,$2);
12 } else {
13 die new IMPL::InvalidArgumentException("Expected value in the format PACKAGE::NAME.method_name",$value);
14 }
15 }
16
17 1;