Treex::PML::Schema::Attribute documentation

Table of contents


NAME

ToC

Treex::PML::Schema::Attribute - implements declaration of an attribute of a container.

INHERITANCE

ToC

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

METHODS

ToC

See the super-class for the complete list.

$decl->get_decl_type ()

Returns the constant PML_ATTRIBUTE_DECL.

$decl->get_decl_type_str ()

Returns the string 'attribute'.

$decl->get_name ()

Return name of the attribute.

$decl->is_required ()

Return 1 if the attribute is required, 0 otherwise.

$decl->is_attribute ()

Return 1 (for compatibility with Treex::PML::Schema::Member).

$decl->get_parent_container ()

Return the container declaration the attribute belongs to.

$decl->get_parent_struct ()

Alias for get_parent_container() for compatibility with Treex::PML::Schema::Member.

SEE ALSO

ToC

Treex::PML::Schema::Decl, Treex::PML::Schema, Treex::PML::Container.

COPYRIGHT AND LICENSE

ToC

BUGS

ToC

None reported... yet.