NAME

UMMF::UML::MetaMetaModel::Util - Utilities for querying meta-models and models.

SYNOPSIS

DESCRIPTION

Useful manipulations of model. These can be used for any UML meta level.

This allows other modules, like UMMF::UML::Export::*, to assume that the UML meta-model is "stupid" i.e. has no support methods other than accessors for Attributes and Associations.

Eventually these could be imported into generated models as supplimentary methods.

USAGE

EXPORT

None exported.

AUTHOR

Kurt Stephens, kstephens@users.sourceforge.net 2003/04/15

SEE ALSO

UMMF::UML::MetaMetaModel

VERSION

$Revision: 1.34 $

METHODS

ModelElement_name_qualified

my @names = ModelElement_name_qualified($obj);
my $qname = ModelElement_name_qualified($obj, $sep);
my $qname = ModelElement_name_qualified($obj, $sep, $filter);

Returns the fully-qualified name for a ModelElement. Applies $name = $filter-E<GT>($obj, $name) to each ModelElement, if $filter is defined.

In list context, returns the names of all parent namespaces. In scalar context, joins the names of all parent namespaces with $sep $sep defaults to '::'.

ModelElement_namespace_root

Returns the root Namespace of a ModelElement.

ModelElement_namespace_common

Returns the Namespace parent that is common to two ModelElements.

For example: if $x is in a UML Namespace "A::B" and $y is in a Namespace "A::C::D", ModelElement_namespace_common($x, $y) will return the "A" Namespace object.

Namespace_namespace

Returns a list of all Namespace nodes owned by a Namespace.

Namespace_classifier

Returns a list of all Classifier nodes owned by a Namespace.

Namespace_class

Returns a list of all Class nodes owned by a Namespace.

Namespace_associationClass

Returns a list of all AssociationClass nodes owned by a Namespace.

Namespace_interface

Returns a list of all Interface nodes owned by a Namespace.

Namespace_enumeration

Returns a list of all Enumeration nodes owned by a Namespace.

GeneralizableElement_generalization_parent

Returns a list of the Generalization parents (superclasses) of a GeneralizableElement.

GeneralizableElement_generalization_parent_all

Returns a list of all the Generalization parents (superclasses) of a GeneralizableElement, toward the root Generalization (root baseclasses).

Classifier_attribute

Returns all Attribute features.

Classifier_operation

Returns all Operation features

Classifier_method

Returns all Method features.

Operation_return

Returns the return Parameter.

Expression_body_language

Returns the body text of an Expression for a specific language.

Attribute_initialValue_language

Returns the body text of an Attribute's initialValue Expression.

AssociationEnd_opposite

@other_ends = AssociationEnd_opposite($end);

Returns a list of all the AssociationEnds opposite to the AssociationEnd. Typically this list has only one AssociationEnd.

Multiplicity_fromString

my $multiplicity = Multiplicity_fromString($str, $factory);

Creates a Multiplicity object, using factory $factory by parsing string $str.

Class_Association_Attribute

Returns a list of new Attribute objects that are a typical representation of opposite AssociationEnds in a Class.

AssociationClass_Attribute

Returns a list of new Attribute objects that are a typical representation of the AssociationEnds in a AssociationClass.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 415:

Unknown E content in E<GT>