comparison Lib/IMPL/DOM/Schema.pm @ 250:129e48bb5afb

DOM refactoring ObjectToDOM methods are virtual QueryToDOM uses inflators Fixed transform for the complex values in the ObjectToDOM QueryToDOM doesn't allow to use complex values (HASHes) as values for nodes (overpost problem)
author sergey
date Wed, 07 Nov 2012 04:17:53 +0400
parents 2746a8e5a6c4
children 0f59b2de72af
comparison
equal deleted inserted replaced
249:0057f48f7945 250:129e48bb5afb
35 public _direct property BaseSchemas => prop_get | owner_set; 35 public _direct property BaseSchemas => prop_get | owner_set;
36 } 36 }
37 37
38 my $validatorLoader = Loader->new(prefix => Validator, verifyNames => 1); 38 my $validatorLoader = Loader->new(prefix => Validator, verifyNames => 1);
39 39
40 #TODO rename and remove
40 sub resolveType { 41 sub resolveType {
41 $_[0]->{$_TypesMap}->{$_[1]} or die IMPL::KeyNotFoundException->new($_[1]); 42 $_[0]->{$_TypesMap}->{$_[1]} or die IMPL::KeyNotFoundException->new($_[1]);
42 } 43 }
43 44
44 sub CTOR { 45 sub CTOR {
45 my ($this,%args) = @_; 46 my ($this,%args) = @_;
46 47
47 $this->{$baseDir} = ($args{baseDir} || '.'); 48 $this->{$baseDir} = ($args{baseDir} || '.');
49 }
50
51 # compat
52 sub ResolveType {
53 goto &resolveType
48 } 54 }
49 55
50 sub Create { 56 sub Create {
51 my ($this,$nodeName,$class,$refArgs) = @_; 57 my ($this,$nodeName,$class,$refArgs) = @_;
52 58