NAME

Treex::PML::Schema::Seq - implements declaration of a sequence.

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_SEQUENCE_DECL.

$decl->get_decl_type_str ()

Returns the string 'sequence'.

$decl->is_mixed ()

Return 1 if the sequence allows text content, otherwise return 0.

$decl->is_atomic ()

Returns 0.

$decl->get_content_decl ()

Returns undef.

$decl->get_content_pattern ()

Return content pattern associated with the declaration (if any). Content pattern specifies possible ordering and occurences of elements in DTD-like content-model grammar.

$decl->get_elements ()

Return a list of element declarations (Treex::PML::Schema::Element).

$decl->get_element_names ()

Return a list of names of elements declared for the sequence.

$decl->get_element_by_name (name)

Return the declaration of the element with a given name.

$decl->find_elements_by_content_decl

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

$decl->find_elements_by_type_name

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

$decl->find_elements_by_role

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

SEE ALSO

Treex::PML::Schema::Decl, Treex::PML::Schema, Treex::PML::Schema::Element, Treex::PML::Seq.

COPYRIGHT AND LICENSE

Copyright (C) 2008-2010 by Petr Pajas, 2010-2024 Jan Stepanek

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.