comparison Lib/IMPL/DOM/Schema/Node.pm @ 241:f48a1a9f4fa2

+Added ViewResult to allow implementation of the view environment. *TTDocuments now storing creation parameters *TTControls automatically propagating layout and title meta to their attributes +Added UnauthorizaedException web exception *minor fixes
author sergey
date Thu, 18 Oct 2012 04:49:55 +0400
parents 4d0e1962161c
children 4ddb27ff4a0b
comparison
equal deleted inserted replaced
240:abc7c26bf615 241:f48a1a9f4fa2
53 my @errors = $schemaType->Validate($node,{Source => $this}); 53 my @errors = $schemaType->Validate($node,{Source => $this});
54 return @errors; 54 return @errors;
55 } else { 55 } else {
56 return (); 56 return ();
57 } 57 }
58 }
59
60 sub isOptional {
61 my ($this) = @_;
62
63 return $this->{$minOccur} ? 0 : 1;
64 }
65
66 sub isMultiple {
67 my ($this) = @_;
68
69 return ($this->{$maxOccur} eq 'unbounded' || $this->{$maxOccur} > 1 ) ? 1 : 0;
58 } 70 }
59 71
60 sub inflateValue { 72 sub inflateValue {
61 $_[1]; 73 $_[1];
62 } 74 }