PHP_UML
[ class tree: PHP_UML ] [ index: PHP_UML ] [ all elements ]

Class: PHP_UML_Metamodel_Helper

Source Location: /PHP_UML-1.6.2/UML/Metamodel/Helper.php

Class Overview


Helper class to deal with Metamodel elements.


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 28]
Helper class to deal with Metamodel elements.


[ Top ]


Method Detail

deleteEmptyPackages   [line 45]

void deleteEmptyPackages( PHP_UML_Metamodel_Package &$ns)

Deletes all empty packages
  • Access: public

Parameters:

PHP_UML_Metamodel_Package   &$ns   —  Top package

[ Top ]

findSubpackageByName   [line 189]

mixed findSubpackageByName( PHP_UML_Metamodel_Package $np, string $value)

Searches recursively in a given package for a package, knowing its name Works with position numbers, not variable references.
  • Return: Either FALSE if not found, or the position in the stack
  • Access: public

Parameters:

PHP_UML_Metamodel_Package   $np   —  A package element (context)
string   $value   —  A package name (to find)

[ Top ]

findTypeById   [line 155]

mixed findTypeById( PHP_UML_Metamodel_Package $np, string $value)

Searches recursively in a given package for an element, knowing its ID
  • Return: Either FALSE if not found, or the position in the stack
  • Access: public

Parameters:

PHP_UML_Metamodel_Package   $np   —  A package element (context)
string   $value   —  An ID

[ Top ]

getPackagePathParts   [line 210]

array getPackagePathParts( string $path, [bool $modeFirst = true], [string $alt = PHP_UML_Input_PHP_Parser::T_NS_SEPARATOR2])

Splits a package path into its first/last element, and the rest Allows for the two different versions of package delimiter
  • Return: Results array
  • Access: public

Parameters:

string   $path   —  A path to split
bool   $modeFirst   —  If true, splits into 1st and the rest If false, splits into last and the rest
string   $alt   —  Alternate separator (eg, /, or ::)

[ Top ]

getStereotypeTag   [line 136]

PHP_UML_Metamodel_Tag getStereotypeTag( PHP_UML_Metamodel_Stereotype $s, string $tagName)

Retrieves a particular tag in a given stereotype
  • Access: public

Parameters:

PHP_UML_Metamodel_Stereotype   $s   —  The stereotype
string   $tagName   —  The tag name (eg "description")

[ Top ]

searchAttributeIntoPackage   [line 118]

mixed searchAttributeIntoPackage( PHP_UML_Metamodel_Package $ns, string $value)

Searches if an attribute already exists in a given pkg
  • Return: Either FALSE if not found, or the element
  • Access: public

Parameters:

PHP_UML_Metamodel_Package   $ns   —  A package element
string   $value   —  A name

[ Top ]

searchOperationIntoPackage   [line 100]

mixed searchOperationIntoPackage( PHP_UML_Metamodel_Package $ns, string $value)

Searches if an operation already exists in a given pkg
  • Return: Either FALSE if not found, or the element
  • Access: public

Parameters:

PHP_UML_Metamodel_Package   $ns   —  A package element
string   $value   —  A name

[ Top ]

searchTypeIntoPackage   [line 82]

mixed searchTypeIntoPackage( PHP_UML_Metamodel_Package $ns, string $value)

Searches in a given package for a typed element (likely, a class)
  • Return: Either FALSE if not found, or the element
  • Access: public

Parameters:

PHP_UML_Metamodel_Package   $ns   —  A package element
string   $value   —  A name

[ Top ]


Documentation generated on Mon, 11 Mar 2019 16:01:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.