annotate Lib/IMPL/DOM/Schema/InflateFactory.pm @ 245:7c517134c42f

Added Unsupported media type Web exception corrected resourceLocation setting in the resource Implemented localizable resources for text messages fixed TT view scopings, INIT block in controls now sets globals correctly.
author sergey
date Mon, 29 Oct 2012 03:15:22 +0400
parents 4d0e1962161c
children 814d755e5d12
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
104
196bf443b5e1 DOM::Schema RC0 inflators support, validation and some other things,
wizard
parents:
diff changeset
1 package IMPL::DOM::Schema::InflateFactory;
196bf443b5e1 DOM::Schema RC0 inflators support, validation and some other things,
wizard
parents:
diff changeset
2 use strict;
196bf443b5e1 DOM::Schema RC0 inflators support, validation and some other things,
wizard
parents:
diff changeset
3
196bf443b5e1 DOM::Schema RC0 inflators support, validation and some other things,
wizard
parents:
diff changeset
4 require IMPL::Exception;
196bf443b5e1 DOM::Schema RC0 inflators support, validation and some other things,
wizard
parents:
diff changeset
5 require IMPL::Object::Factory;
196bf443b5e1 DOM::Schema RC0 inflators support, validation and some other things,
wizard
parents:
diff changeset
6
196bf443b5e1 DOM::Schema RC0 inflators support, validation and some other things,
wizard
parents:
diff changeset
7 sub new {
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
8 my ($self,$value) = @_;
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
9
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
10 if ($value =~ /^(\w+(?:::\w+)*)(?:\.(\w+))?$/) {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
11 return IMPL::Object::Factory->new($1,undef,$2);
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
12 } else {
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
13 die new IMPL::InvalidArgumentException("Expected value in the format PACKAGE::NAME.method_name",$value);
4d0e1962161c Replaced tabs with spaces
cin
parents: 180
diff changeset
14 }
104
196bf443b5e1 DOM::Schema RC0 inflators support, validation and some other things,
wizard
parents:
diff changeset
15 }
196bf443b5e1 DOM::Schema RC0 inflators support, validation and some other things,
wizard
parents:
diff changeset
16
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 104
diff changeset
17 1;