| WSST documentation | Contained in the WSST distribution. |
WSST::Schema::Base - Base class for Schema elements
This is a base class for schema elements.
Constructor.
http://code.google.com/p/wsst/
Mitsuhisa Oshikawa <mitsuhisa [at] gmail.com> Yusuke Kawasaki <u-suke [at] kawa.net>
Copyright 2008 WSS Project Team
| WSST documentation | Contained in the WSST distribution. |
package WSST::Schema::Base; use strict; use base qw(Class::Accessor::Fast); use constant BOOL_FIELDS => (); our $VERSION = '0.1.1'; sub new { my $class = shift; my $self = $class->SUPER::new(@_); foreach my $fld ($class->BOOL_FIELDS) { $self->{$fld} = ($self->{$fld} && $self->{$fld} eq "true"); } return $self; }
1;