comparison Lib/IMPL/DOM/Schema/Property.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
45 # we have a value so validate it 45 # we have a value so validate it
46 return $this->SUPER::Validate($nodeProp,$ctx); 46 return $this->SUPER::Validate($nodeProp,$ctx);
47 } elsif($this->minOccur) { 47 } elsif($this->minOccur) {
48 # we don't have a value but it's a mandatory property 48 # we don't have a value but it's a mandatory property
49 return new IMPL::DOM::Schema::ValidationError( 49 return new IMPL::DOM::Schema::ValidationError(
50 Message => $this->messageRequired, 50 message => $this->messageRequired,
51 Node => $node, 51 node => $node,
52 Schema => $this, 52 schema => $this,
53 Source => $ctx && $ctx->{Source} || $this 53 source => $ctx && $ctx->{Source} || $this
54 ); 54 );
55 } 55 }
56 return (); 56 return ();
57 } 57 }
58 58