UMMF::UML_1_5::Foundation::Core::Enumeration --
1.5
UMMF::UML_1_5::Foundation::Core::Class
UMMF::UML_1_5::Foundation::Core::DataType
NO ATTRIBUTES
enumeration
1
literal
1..*
changeable
instance
ordered
none
public
ARRAY
__validate_type
UMMF::UML_1_5::Foundation::Core::Enumeration->__validate_type($value);
Returns true if $value is a valid representation of UMMF::UML_1_5::Foundation::Core::Enumeration.
$value
__typecheck
UMMF::UML_1_5::Foundation::Core::Enumeration->__typecheck($value, $msg);
Calls confess() with $msg if <UMMF::UML_1_5::Foundation::Core::Enumeration-__validate_type($value)>> is false.
confess()
$msg
<UMMF::UML_1_5::Foundation::Core::Enumeration-
isaEnumeration
Returns true if receiver is a UMMF::UML_1_5::Foundation::Core::Enumeration. Other receivers will return false.
isaFoundation__Core__Enumeration
Returns true if receiver is a UMMF::UML_1_5::Foundation::Core::Enumeration. Other receivers will return false. This is the fully qualified version of the isaEnumeration method.
__model_name
my $name = $obj_or_package->__model_name;
Returns the UML Model name ('Foundation::Core::Enumeration') for an object or package of this Classifier.
'Foundation::Core::Enumeration'
__isAbstract
$package->__isAbstract;
Returns 0.
0
__tangram_schema
my $tangram_schema $obj_or_package->__tangram_schema
Returns a HASH ref that describes this Classifier for Tangram.
See UMMF::Export::Perl::Tangram
___initialize
Initialize all Attributes and AssociationEnds in a instance of this Classifier. Does not initalize slots in its Generalizations.
See also: __initialize.
__initialize
Initialize all slots in this Classifier and all its Generalizations.
See also: ___initialize.
__create
Calls all <<create>> Methods for this Classifier and all Generalizations.
See also: ___create.
___create
my @val = $obj->literal; my $ary_val = $obj->literal;
Returns the AssociationEnd literal values of type UMMF::UML_1_5::Foundation::Core::EnumerationLiteral. In array context, returns all the objects in the Association. In scalar context, returns an array ref of all the objects in the Association.
index_literal
my $x = $obj->index_literal($i); my @x = $obj->index_literal($i, $count);
In scalar context, returns the value of AssociationEnd literal at index $i. In array context, returns the values between index $i and $i + $count - 1, inclusive.
$i
$i + $count - 1
index_of_literal
my $index = $obj->index_of_literal($val);
Returns the index of $val in AssociationEnd literal. Return undef if $val is not in literal.
$val
undef
set_literal
$obj->set_literal(@val);
Sets the AssociationEnd literal value. Elements of @val must of type UMMF::UML_1_5::Foundation::Core::EnumerationLiteral. Returns $obj.
@val
$obj
set_index_literal
$obj->set_index_literal($i, $val);
Sets the value of AssociationEnd literal at index $i. Returns self.
add_literal
$obj->add_literal(@val);
Adds AssociationEnd literal values. Elements of @val must of type UMMF::UML_1_5::Foundation::Core::EnumerationLiteral. Returns $obj.
add_index_literal
$obj->add_index_literal($i, @val);
Adds AssociationEnd literal values at index $i. Elements of @val must of type UMMF::UML_1_5::Foundation::Core::EnumerationLiteral. Returns $obj.
remove_literal
$obj->remove_literal(@val);
Removes the AssociationEnd literal values @val. Elements of @val must of type UMMF::UML_1_5::Foundation::Core::EnumerationLiteral. Returns $obj.
clear_literal
$obj->clear_literal;
Clears the AssociationEnd literal links to UMMF::UML_1_5::Foundation::Core::EnumerationLiteral. Returns $obj.
count_literal
$obj->count_literal;
Returns the number of elements associated with literal.
END OF DOCUMENT
To install UMMF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UMMF
CPAN shell
perl -MCPAN -e shell install UMMF
For more information on module installation, please visit the detailed CPAN module installation guide.