perl-MooseX-DataModel - Create object models from datastructures

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-MooseX-DataModel
Package version 1.00
Package release alt1
Package architecture noarch
Package type rpm
Installed size 22.07 KB
Download size 22.07 KB
Official Mirror
Working with "plain datastructures" (nested hashrefs, arrayrefs and scalars) that come from other
systems can be a pain.
Normally those datastructures are not arbitrary: they have some structure to them: most of them
come to express "object like" things. MooseX::DataModel tries to make converting these datastructures
into objects in an easy, declarative fashion.
Lots of times
MooseX::DataModel also helps you validate the datastructures. If you get an object back, it conforms
to your object model. So if you declare a required key, and the passed datastructure doesn't contain
it: you will get an exception. If the type of the key passed is different from the one declared: you
get an exception. The advantage over using a JSON validator, is that after validation you still have
your original datastructure. With MooseX::DataModel you get full-blown objects, to which you can
attach logic.


Package Version Architecture Repository
perl-MooseX-DataModel - - -


Name Value
/usr/share/perl5 -
perl( -
perl( -
perl(Moose/ -
perl(Moose/Util/ -
rpmlib(PayloadIsLzma) -


Name Value
perl(MooseX/ -
perl-MooseX-DataModel = 1.00-alt1


Type URL
Binary Package perl-MooseX-DataModel-1.00-alt1.noarch.rpm
Source Package perl-MooseX-DataModel-1.00-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-MooseX-DataModel rpm package:
    # sudo apt-get install perl-MooseX-DataModel



See Also

Package Description
perl-MooseX-Declare-Context-WithOptions-Patch-Extensible-0.002-alt1.1.noarch.rpm patch MooseX::Declare for extensibility
perl-MooseX-DeclareX-0.009-alt1.1.noarch.rpm more sugar for MooseX::Declare
perl-MooseX-DeclareX-Keyword-interface-0.004-alt1.1.noarch.rpm shiny syntax for MooseX::Interface
perl-MooseX-DeclareX-Plugin-abstract-0.005-alt1.1.noarch.rpm shiny syntax for MooseX::ABCD
perl-MooseX-DeclareX-Plugin-singleton-0.003-alt1.1.noarch.rpm shiny syntax for MooseX::Singleton
perl-MooseX-DeclareX-Privacy-0.006-alt1.1.noarch.rpm shiny syntax for MooseX::Privacy
perl-MooseX-DeepAccessors-0.02-alt1.1.noarch.rpm Delegate methods to member objects, curried with more methods!
perl-MooseX-Deprecated-0.005-alt1.1.noarch.rpm mark attributes and methods as deprecated
perl-MooseX-Documenter-0.01-alt1.1.noarch.rpm class for getting Moose documentation for your Moose classes
perl-MooseX-Does-Delegated-0.004-alt1.1.noarch.rpm allow your class's DOES method to respond the affirmative to delegated roles
perl-MooseX-EasyAcc-0.001-alt1.1.noarch.rpm Name your accessors foo(), set_foo(), and has_foo()
perl-MooseX-Enumeration-0.005-alt1.1.noarch.rpm a native attribute trait for enums
perl-MooseX-Error-Exception-Class-0.099-alt1.1.noarch.rpm Use Exception::Class exceptions for Moose errors
perl-MooseX-Error-Trap-0.021-alt1.1.noarch.rpm Create error traps for methods
perl-MooseX-ErrorHandling-0.2-alt1.noarch.rpm Monkey Patch Moose's Errors