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

Class: PHP_UML_XMI_AbstractBuilder

Source Location: /PHP_UML-0.4.2/UML/XMI/AbstractBuilder.php

Class Overview


Abstract class to build UML elements through XMI code.


Author(s):

Variables

Methods


Child classes:

PHP_UML_XMI_BuilderImpl1
Implementation class to create XMI in version 1
PHP_UML_XMI_BuilderImpl2
Implementation class to create XMI in version 2. See interface Builder for comments.

Inherited Variables

Inherited Methods


Class Details

[line 27]
Abstract class to build UML elements through XMI code.

Only basic UML concepts are available. To deal with the two different versions of XMI (1.4 and 2.1), you must use one of the two specialized versions: PHP_UML_XMI_BuilderImpl1, or PHP_UML_XMI_BuilderImpl2

  • Abstract:


[ Top ]


Class Variables

$extensions = array(''=>'File', 'php'=>self::PHP_FILE)

[line 33]

  • Access: public

Type:   mixed


[ Top ]

$stereotypes = array('File', self::PHP_FILE)

[line 32]

  • Access: public

Type:   mixed


[ Top ]



Method Detail

factory   [line 99]

PHP_UML_XMI_Builder factory( int $version)

Factory method. Retrieves a proper implementation class, matching the XMI version.
  • Return: An XMI builder object

Parameters:

int   $version   —  XMI version

[ Top ]

generateID   [line 46]

string generateID( [string $type = null], [string $id = null])

Generates an ID for an element. A partial identifier can be provided (used for classes and their idrefs)
  • Return: ID
  • Access: public

Parameters:

string   $type   —  Type
string   $id   —  Identifier

[ Top ]

guessStereotype   [line 61]

string guessStereotype( [string $filename = ''])

Retrieves the ID of a stereotype, given a filename
  • Return: The PHP_UML ID of the matching extension
  • Access: public

Parameters:

string   $filename   —  The file name

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:22:18 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.