NAME
Treex::PML::Schema::Choice - implements declaration of an enumerated type (choice).
INHERITANCE
This class inherits from Treex::PML::Schema::Decl.
METHODS
See the super-class for the complete list.
- $decl->is_atomic ()
-
Returns 1.
- $decl->get_decl_type ()
-
Returns the constant PML_CHOICE_DECL.
- $decl->get_decl_type_str ()
-
Returns the string 'choice'.
- $decl->get_values ()
-
Return list of possible values.
- $decl->set_values (\@values)
-
Set possible values.
- $decl->get_content_decl ()
-
Returns undef.
- $decl->validate_object($object)
-
See
validate_object()
in Treex::PML::Schema.
SEE ALSO
Treex::PML::Schema::Decl, Treex::PML::Schema, Treex::PML::CDATA.
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.