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

Class: PHP_UML_XMI_AbstractBuilder

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

Class Overview


Abstract class to generate UML elements in 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

Inherited Variables

Inherited Methods


Class Details

[line 28]
Abstract class to generate UML elements in XMI code.

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 34]

  • Access: public

Type:   mixed


[ Top ]

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

[line 33]

  • Access: public

Type:   mixed


[ Top ]



Method Detail

factory   [line 100]

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 47]

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 62]

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:53 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.