comparison Lib/IMPL/DOM/Transform/QueryToDOM.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 a02b110da931
children c9c2ec29793f
comparison
equal deleted inserted replaced
249:0057f48f7945 250:129e48bb5afb
17 17
18 $this->templates->{'CGI'} = \&TransformCGI; 18 $this->templates->{'CGI'} = \&TransformCGI;
19 19
20 $this->delimiter('[.]'); 20 $this->delimiter('[.]');
21 $this->prefix(''); 21 $this->prefix('');
22 }
23
24 # inflate simple properties
25 sub TransformPlain {
26 my ($this,$data) = @_;
27
28 $this->currentNode->nodeProperty( rawValue => $data );
29 $this->currentNode->nodeValue( $this->inflateNodeValue($data) );
30 return $this->currentNode;
31 }
32
33 # do not store complex data as node values
34 sub StoreObject {
35 my ($this,$node,$data) = @_;
36
37 return $node;
22 } 38 }
23 39
24 sub TransformCGI { 40 sub TransformCGI {
25 my ($this,$query) = @_; 41 my ($this,$query) = @_;
26 42