• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux Myco::Entity::Meta::Attribute Download

Myco::Entity::Meta::Attribute

November 17, 2008
Myco Entity class attribute can be described using a metadata container. This container holds relevant information about the attribute in question.
Version 1.22
License Perl Artistic License
Platform Linux
Supported Languages English
Homepage search.cpan.org
Developed by The myco project
Myco::Entity::Meta::Attribute is a class that serves as a repository for metadata concerning a particular attribute of a Myco Entity class. In order to use it, you must add the attribute to the class within an entity class definition. It is important to note that this class is normally used only via Myco::Entity::Meta.

To add an attribute to the class, the constructor of ::Attribute should only be used via ::Meta's add_attribute() method. The code block for adding an attribute to the class is demonstrated below:

```Perl
my $md = Myco::Entity::Meta( name => __PACKAGE__ );
$md->add_attribute(
name => 'doneness',
type => 'int',
readonly => 0, # default is read/write
access_list => {
rw => ['admin'],
ro => [qw(average_joes junior_admins)]
},
tangram_options => { required => 1},
synopsis => "How you'd like your meat cooked",
syntax_msg => "correct format, please!",
values => [qw(0 1 2 3 4 5)],
value_labels => {
0 => 'rare',
1 => 'medium-rare',
2 => 'medium',
3 => 'medium-well',
4 => 'well',
5 => 'charred'
},
ui => {
widget => [ 'popup_menu' ],
label => 'Cook until...',
},
);
```

After the attribute has been added, usage of the code continues with standard post-setup usage. Given a Myco::Entity::Meta enabled entity object $obj, introspect to obtain metadata. Get reference to the array of ::Meta::Attribute objects for $obj's class via the get_attributes() method. Finally, look up the type of an attribute and use the stored accessor coderef to set the attribute value.

```Perl
# ...given a Myco::Entity::Meta enabled entity object $obj
my $metadata = $obj->introspect;
my $attributes = $metadata->get_attributes;

# Look up attribute's type
my $type = $attributes->{doneness}->get_type;

# Use of stored accessor coderef - set doneness = 3
$attributes->{doneness}->setval($obj, 3);
```

Overall, the Myco::Entity::Meta::Attribute class is an essential tool for working with Myco Entity classes.
What's New

Version 1.22: N/A

Free Download 107K
342
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    157
  2. Dvgrab 3.4
    94
  3. DynVPN 1.0
    83
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    76
  6. porm r2
    72
  7. Clewarecontrol 0.8
    71
  8. Hills 2.0
    71
  9. fuseftp 0.8
    70
  10. Java Games 1.0
    70

Related Downloads

Aqua_Project
Aqua_Project is a comprehensive software package designed for KDE, offering a range ...
PulseAudio Device Chooser
Padevchooser is a GTK tool that grants quick access to some PulseAudio ...
image-viewer
Image-viewer is a basic Kommander script designed for easy viewing of images.
Php Object Generator
POG is a PHP code generator that produces well-organized and verified object ...
Rquerypad
Rquerypad simplifies query options in Rails by automating associations and improving inner ...
whereampy
Whereampy is a setuptools/setup.py distribution package that demonstrates a simple tool with ...
Carnarvon
Carnarvon is an analysis software for archaeology that allows for in-depth study ...
mpiBLAST
mpiBLAST is a parallel implementation of NCBI BLAST software that utilizes MPI. ...
TraffStats
TraffStats is a traffic analysis tool that collects data via SNMP from ...
maliGNUz
MaliGNUz is a lightweight and speedy live distro based on Slackware, designed ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.