Treex::PML::Schema::Seq documentation

Table of contents


NAME

ToC

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

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_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->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

ToC

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

COPYRIGHT AND LICENSE

ToC

BUGS

ToC

None reported... yet.