NAME

UMMF::UML::MetaModel::Foundation::Core::Enumeration --

VERSION

1.0

SYNOPSIS

DESCRIPTION

USAGE

EXPORT

METATYPE

UMMF::UML::MetaModel::Foundation::Core::Class

SUPERCLASSES

UMMF::UML::MetaModel::Foundation::Core::DataType

ATTRIBUTES

NO ATTRIBUTES

ASSOCIATIONS

1 : enumeration <---> literal : UMMF::UML::MetaModel::Foundation::Core::EnumerationLiteral 1..*

metatype = UMMF::UML::MetaModel::Foundation::Core::AssociationEnd
type = UMMF::UML::MetaModel::Foundation::Core::EnumerationLiteral
multiplicity = 1..*
changeability = changeable
targetScope = instance
ordering = ordered
isNavigable = 1
aggregation = none
visibility = public
container_type = ARRAY

METHODS

__validate_type

UMMF::UML::MetaModel::Foundation::Core::Enumeration->__validate_type($value);

Returns true if $value is a valid representation of UMMF::UML::MetaModel::Foundation::Core::Enumeration.

__typecheck

UMMF::UML::MetaModel::Foundation::Core::Enumeration->__typecheck($value, $msg);

Calls confess() with $msg if <UMMF::UML::MetaModel::Foundation::Core::Enumeration-__validate_type($value)>> is false.

isaEnumeration

Returns true if receiver is a UMMF::UML::MetaModel::Foundation::Core::Enumeration. Other receivers will return false.

isaFoundation__Core__Enumeration

Returns true if receiver is a UMMF::UML::MetaModel::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.

__tangram_schema

my $tangram_schema $obj_or_package->__tangram_schema

Returns a HASH ref that describes this Classifier for Tangram.

See UMMF::UML::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.

literal

my @val = $obj->literal;
my $ary_val = $obj->literal;

Returns the AssociationEnd literal values of type UMMF::UML::MetaModel::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.

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.

set_literal

$obj->set_literal(@val);

Sets the AssociationEnd literal value. Elements of @val must of type UMMF::UML::MetaModel::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::MetaModel::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::MetaModel::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::MetaModel::Foundation::Core::EnumerationLiteral. Returns $obj.

clear_literal

$obj->clear_literal;

Clears the AssociationEnd literal links to UMMF::UML::MetaModel::Foundation::Core::EnumerationLiteral. Returns $obj.

count_literal

$obj->count_literal;

Returns the number of elements associated with literal.

END OF DOCUMENT