Treex::PML::Schema::Container - implements declaration of a container.
This class inherits from Treex::PML::Schema::Decl, but provides several methods which make its interface largely compatible with the Treex::PML::Schema::Struct class.
Treex::PML::Schema::Struct
See the super-class for the complete list.
Returns the constant PML_CONTAINER_DECL.
Returns the string 'container'.
Return declaration of the content type.
Returns 0.
Return a list of the associated attribute declarations (Treex::PML::Schema::Attribute).
Treex::PML::Schema::Attribute
Return true if the container declares attributes.
Return a list of names of attributes associated with the container.
Return the declaration of the attribute with a given name.
Lookup and return those attribute declarations whose content declaration is decl.
Lookup and return those attribute declarations whose content is specified via a reference to the named type with a given name.
Lookup and return declarations of all members with a given role.
Return declarations of all associated attributes and of the content type.
If name is equal to '#content', return the content type declaration, otherwise acts like get_attribute_by_name.
get_attribute_by_name
Return a list of all attribute names plus the string '#content'.
Lookup and return those member (attribute or content) declarations whose content declaration is decl.
Lookup and return those member (attribute or content) declarations whose content is specified via a reference to the named type with a given name.
Lookup and return declarations of all members (attribute or content) with a given role.
Treex::PML::Schema::Decl, Treex::PML::Schema, Treex::PML::Schema::Attribute, Treex::PML::Container
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.
None reported... yet.
To install Treex::PML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Treex::PML
CPAN shell
perl -MCPAN -e shell install Treex::PML
For more information on module installation, please visit the detailed CPAN module installation guide.