comparison Lib/IMPL/DOM/Schema/Validator/Compare.pm @ 238:b8c724f6de36

DOM model refactoring TT view refactoring, controls are no longer derived from DOM nodes bugfixes
author sergey
date Tue, 16 Oct 2012 01:33:06 +0400
parents 2904da230022
children 89179bb8c388
comparison
equal deleted inserted replaced
237:61db68166c37 238:b8c724f6de36
44 my ($this,%args) = @_; 44 my ($this,%args) = @_;
45 45
46 $this->targetProperty($args{targetProperty} || 'nodeValue'); 46 $this->targetProperty($args{targetProperty} || 'nodeValue');
47 $this->op( $Ops{ $args{op} || '=' } ) or die new IMPL::InvalidArgumentException("Invalid parameter value",'op',$args{op},$this->path); 47 $this->op( $Ops{ $args{op} || '=' } ) or die new IMPL::InvalidArgumentException("Invalid parameter value",'op',$args{op},$this->path);
48 $this->nodePath($args{nodePath}) or die new IMPL::InvalidArgumentException("The argument is required", 'nodePath', $this->path); 48 $this->nodePath($args{nodePath}) or die new IMPL::InvalidArgumentException("The argument is required", 'nodePath', $this->path);
49 $this->message($args{message} || 'The value of %Node.path% %Source.op% %Value% (%Source.nodePath%)' ); 49 $this->message($args{message} || 'The value of %node.path% %source.op% %value% (%source.nodePath%)' );
50 $this->optional($args{optional}) if $args{optional}; 50 $this->optional($args{optional}) if $args{optional};
51 } 51 }
52 52
53 sub TranslatePath { 53 sub TranslatePath {
54 my ($this,$path) = @_; 54 my ($this,$path) = @_;