| UMMF documentation | view source | Contained in the UMMF distribution. |
UMMF::UML_1_5::Foundation::Core::Enumeration --
1.5
NO ATTRIBUTES
enumeration : THIS 1 <---> literal : UMMF::UML_1_5::Foundation::Core::EnumerationLiteral 1..*1..*changeableinstanceorderednonepublicARRAY__validate_typeUMMF::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.
__typecheckUMMF::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.
isaEnumerationReturns true if receiver is a UMMF::UML_1_5::Foundation::Core::Enumeration. Other receivers will return false.
isaFoundation__Core__EnumerationReturns 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.
__isAbstract$package->__isAbstract;
Returns 0.
___initializeInitialize all Attributes and AssociationEnds in a instance of this Classifier. Does not initalize slots in its Generalizations.
See also: __initialize.
__initializeInitialize all slots in this Classifier and all its Generalizations.
See also: ___initialize.
__createCalls all <<create>> Methods for this Classifier and all Generalizations.
See also: ___create.
literalmy @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_literalmy $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.
index_of_literalmy $index = $obj->index_of_literal($val);
Returns the index of $val in AssociationEnd literal.
Return undef if $val is not in literal.
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.
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
| UMMF documentation | view source | Contained in the UMMF distribution. |