view Lib/IMPL/DOM/Property.pm @ 165:76515373dac0

Added Class::Template, Rewritten SQL::Schema 'use parent' directive instead of 'use base'
author wizard
date Sat, 23 Apr 2011 23:06:48 +0400
parents a7efb3117295
children d1676be8afcc
line wrap: on
line source

package IMPL::DOM::Property;
use strict;
use warnings;

require IMPL::Exception;

use parent qw(Exporter);
our @EXPORT_OK = qw(_dom);

sub _dom($) {
    my ($prop_info) = @_;
    $prop_info->Attributes->{domProperty} = 1;
    return $prop_info;
}

1;
__END__
=pod

=head1 SYNOPSIS

package TypedNode;

use parent qw(IMPL::DOM::Node);
use IMPL::DOM::Property qw(_dom);

BEGIN {
    public _dom property Age => prop_all;
    public _dom property Address => prop_all;
    public property ServiceData => prop_all;
}

=head1 DESCRIPTION

Позволяет объявлять свойства, которые будут видны в списке свойств.

=cut