Mercurial > pub > Impl
view Lib/IMPL/DOM/Schema/SimpleType.pm @ 41:c442eb67fa22
parser in progress
author | Sergey |
---|---|
date | Mon, 21 Dec 2009 17:40:09 +0300 |
parents | 267460284fb3 |
children | 16ada169ca75 |
line wrap: on
line source
package IMPL::DOM::Schema::SimpleType; use strict; use warnings; use base qw(IMPL::DOM::Schema::SimpleNode); use IMPL::Class::Property; use IMPL::Class::Property::Direct; BEGIN { public _direct property nativeType => prop_get; } our %CTOR = ( 'IMPL::DOM::Schema::SimpleNode' => sub { my %args = @_; $args{nodeName} = 'SimpleType'; $args{minOccur} = 0; $args{maxOccur} = 'unbounded'; $args{name} ||= 'SimpleType'; %args } ); sub CTOR { my ($this,%args) = @_; $this->{$nativeType} = $args{nativeType}; } 1;