comparison Lib/IMPL/DOM/Schema/Validator/Compare.pm @ 236:2904da230022

DOM refactoring
author sergey
date Mon, 15 Oct 2012 04:23:01 +0400
parents 4d0e1962161c
children b8c724f6de36
comparison
equal deleted inserted replaced
235:a4d9126edcbb 236:2904da230022
127 } else { 127 } else {
128 $value = $foreignNode->nodeValue; 128 $value = $foreignNode->nodeValue;
129 } 129 }
130 130
131 push @result, new IMPL::DOM::Schema::ValidationError( 131 push @result, new IMPL::DOM::Schema::ValidationError(
132 Node => $node, 132 node => $node,
133 ForeignNode => $foreignNode, 133 foreignNode => $foreignNode,
134 Value => $value, 134 value => $value,
135 Source => $Source, 135 source => $Source,
136 Schema => $this->parentNode, 136 schema => $this->parentNode,
137 Message => $this->message 137 message => $this->message
138 ) unless $this->op->(_resovleProperty($node,$this->targetProperty),$value); 138 ) unless $this->op->(_resovleProperty($node,$this->targetProperty),$value);
139 } elsif (not $this->optional) { 139 } elsif (not $this->optional) {
140 push @result, new IMPL::DOM::Schema::ValidationError( 140 push @result, new IMPL::DOM::Schema::ValidationError(
141 Node => $node, 141 node => $node,
142 Value => '', 142 value => '',
143 Source => $Source, 143 source => $Source,
144 Schema => $this->parentNode, 144 schema => $this->parentNode,
145 Message => $this->message 145 message => $this->message
146 ); 146 );
147 } 147 }
148 148
149 $this->_targetNode(undef); 149 $this->_targetNode(undef);
150 150