UMMF::UML::MetaMetaModel::Util - Utilities for querying meta-models and models.
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.
None exported.
Kurt Stephens, kstephens@users.sourceforge.net 2003/04/15
UMMF::UML::MetaMetaModel
$Revision: 1.34 $
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.
$name = $filter-E<GT>($obj, $name)
$filter
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 '::'.
$sep
'::'
Returns the root Namespace of a ModelElement.
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.
$x
"A::B"
$y
"A::C::D"
ModelElement_namespace_common($x, $y)
"A"
Returns a list of all Namespace nodes owned by a Namespace.
Returns a list of all Classifier nodes owned by a Namespace.
Returns a list of all Class nodes owned by a Namespace.
Returns a list of all AssociationClass nodes owned by a Namespace.
Returns a list of all Interface nodes owned by a Namespace.
Returns a list of all Enumeration nodes owned by a Namespace.
Returns a list of the Generalization parents (superclasses) of a GeneralizableElement.
Returns a list of all the Generalization parents (superclasses) of a GeneralizableElement, toward the root Generalization (root baseclasses).
Returns all Attribute features.
Returns all Operation features
Returns all Method features.
Returns the return Parameter.
Returns the body text of an Expression for a specific language.
Returns the body text of an Attribute's initialValue Expression.
@other_ends = AssociationEnd_opposite($end);
Returns a list of all the AssociationEnds opposite to the AssociationEnd. Typically this list has only one AssociationEnd.
my $multiplicity = Multiplicity_fromString($str, $factory);
Creates a Multiplicity object, using factory $factory by parsing string $str.
$factory
$str
Returns a list of new Attribute objects that are a typical representation of opposite AssociationEnds in a Class.
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:
Unknown E content in E<GT>
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.