GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenXPKI::Client::UI::Response::DTORole(3) User Contributed Perl Documentation OpenXPKI::Client::UI::Response::DTORole(3)

Not intended for direct use. Please use OpenXPKI::Client::UI::Response::DTO instead.

Returns a HashRef with all attribute values (if they are set).

If an attribute value is itself an object that consumes "OpenXPKI::Client::UI::Response::DTORole" (or an ArrayRef containing such objects) the attribute value is transformed first. So a call to "transform" may lead to recursive calls of the same method in children (i.e. attributes of the current object) and so on.

Per default, the attribute name is used as hash key. To override this the Moose attribute parameter documentation may be used.

Nested hash structures as output may be defined using slashes "I" as delimiter. A trailing slash is a shortcut and means: append the attribute name.

    package Example;
    use Moose;
    with 'OpenXPKI::Client::UI::Response::DTORole';
    has 'descr' => (is => 'rw', isa => 'Str', documentation => 'description');
    has 'label' => (is => 'rw', isa => 'Str', documentation => 'meta/title');
    has 'size' => (is => 'rw', isa => 'Str', documentation => 'meta/sub/');
    # Elsewhere:
    my $response = Example->new(
        descr => 'abc',
        label => 'info',
        size => 23,
    )->resolve;
    # {
    #    description => 'abc',
    #    meta => {
    #        title => 'info',
    #        sub => {
    #            size => 23,
    #        },
    #    },
    # }

Returns 1 if any attributes of the consuming object have a value set (also if a "default" was specified).

Should be overridden if required.

2025-07-15 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.