The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Treex::PML::Schema::Struct - implements declaration of a structure.

INHERITANCE

This class inherits from Treex::PML::Schema::Decl.

METHODS

See the super-class for the complete list.

$decl->get_decl_type ()

Returns the constant PML_STRUCTURE_DECL.

$decl->get_decl_type_str ()

Returns the string 'structure'.

$decl->get_structure_name ()

Return declared structure name (if any).

$decl->get_content_decl ()

Returns undef.

$decl->is_atomic ()

Returns 0.

$decl->get_members ()

Return a list of the associated member declarations (Treex::PML::Schema::Member).

$decl->get_member_names ()

Return a list of names of all members of the structure.

$decl->get_member_by_name (name)

Return the declaration of the member with a given name.

$decl->get_attributes ()

Return a list of member declarations (Treex::PML::Schema::Member) declared as attributes.

$decl->get_attribute_names ()

Return a list of names of all members of the structure declared as attributes.

$decl->find_members_by_content_decl (decl)

Lookup and return those member declarations whose content declaration is decl.

$decl->find_members_by_type_name (name)

Lookup and return those member declarations whose content is specified via a reference to the named type with a given name.

$decl->find_members_by_role (role)

Lookup and return declarations of all members with a given role.

SEE ALSO

Treex::PML::Schema::Decl, Treex::PML::Schema, Treex::PML::Schema::Member, Treex::PML::Struct.

COPYRIGHT AND LICENSE

Copyright (C) 2008-2010 by Petr Pajas

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.

BUGS

None reported... yet.