Mercurial > pub > Impl
view Lib/IMPL/DOM/Schema/ComplexNode.pm @ 19:1ca530e5c9c5
DOM схема, требует переработки в части схемы для описания схем. Автоверификация не проходит
author | Sergey |
---|---|
date | Fri, 11 Sep 2009 16:30:39 +0400 |
parents | 818c74b038ae |
children | 267460284fb3 |
line wrap: on
line source
package IMPL::DOM::Schema::ComplexNode; use strict; use warnings; use base qw(IMPL::DOM::Schema::Node); use IMPL::Class::Property; BEGIN { public property content => { get => \&_getContent, set => \&_setContent } } __PACKAGE__->PassThroughArgs; sub _getContent { $_[0]->firstChild; } sub _setContent { $_[0]->firstChild($_[1]); } sub Validate { my ($this,$node) = @_; map $_->Validate($node), @{$this->childNodes}; } 1; __END__ =pod =head1 DESCRIPTION . , . .. , . C<content> =head2 PROPERTIES =over =item C<content> , C<IMPL::DOM::Schema::NodeSet> C<IMPL::DOM::Schema::NodeList>, . . =back =cut