Treex::PML::Alt - an alternative of uniformly typed PML values
This class implements the attribute value type 'alternative'.
Create a new alternative (optionally populated with given values).
NOTE: Don't call this constructor directly, use Treex::PML::Factory->createAlt() instead!
Create a new alternative consisting of values in a given array reference. If reuse is true, then the same array_ref scalar is reused to represent the Treex::PML::Alt object (i.e. blessed). Otherwise, a copy is created in the constructor.
Retrurns a its values (i.e. the alternatives).
Retrurn number of values in the alternative.
Add given values to the alternative. Only values which are not already included in the alternative are added.
Add values of the given list to the alternative. Only values which are not already included in the alternative are added.
Delete all occurences of value $value. Values are compared as strings.
Delete all occurences of values $value1, $value2,... Values are compared as strings.
Remove all values from the alternative.
Treex::PML, Treex::PML::Factory, Treex::PML::Schema, Treex::PML::List
Copyright (C) 2006-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.
To install Treex::PML, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.