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

Class: PHP_UML_XMI_BuilderImpl2

Source Location: /PHP_UML-1.0.1/UML/XMI/BuilderImpl2.php

Class Overview

PHP_UML_XMI_AbstractBuilder
   |
   --PHP_UML_XMI_BuilderImpl2

Implementation class to create XMI in version 2


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: PHP_UML_XMI_AbstractBuilder

PHP_UML_XMI_AbstractBuilder::__construct()
Constructor
PHP_UML_XMI_AbstractBuilder::factory()
Factory method. Retrieves a proper implementation class, matching the XMI version.
PHP_UML_XMI_AbstractBuilder::getAllComponents()
Get all components, with its provided classes PHP_UML considers each logical package as a component, and each owned class as a provided class.
PHP_UML_XMI_AbstractBuilder::getAllPackages()
Get all packages, recursively, with all the objects they contain Initially called by PHP_UML->generateXMI() on the root package
PHP_UML_XMI_AbstractBuilder::getOwnedTypes()
Get the different types owned by package
PHP_UML_XMI_AbstractBuilder::getUID()
Generates an ID for an element. A partial identifier can be provided (used for classes and their idrefs)
PHP_UML_XMI_AbstractBuilder::getXmlHeader()
Gets an XML header for the XMI file

Class Details

[line 28]
Implementation class to create XMI in version 2

See the interface PHP_UML_XMI_Builder for the comments.



[ Top ]


Class Variables

$profile =  ''

[line 39]

PHP_UML UML Profile (TODO)
  • Access: public

Type:   string


[ Top ]



Method Detail

getArtifact   [line 246]

void getArtifact( PHP_UML_Metamodel_File $file, [ &$mf = array()])

  • Access: public

Parameters:

PHP_UML_Metamodel_File   $file     
   &$mf     

[ Top ]

getClass   [line 106]

void getClass( PHP_UML_Metamodel_Class &$class)

  • Access: public

Parameters:

PHP_UML_Metamodel_Class   &$class     

[ Top ]

getComment   [line 313]

void getComment( PHP_UML_Metamodel_Stereotype &$s, [ $annotatedElement = ''])

  • Access: public

Parameters:

PHP_UML_Metamodel_Stereotype   &$s     
   $annotatedElement     

[ Top ]

getComponentClose   [line 293]

void getComponentClose( )

  • Access: public

[ Top ]

getComponentOpen   [line 267]

void getComponentOpen( PHP_UML_Metamodel_Package $package, $provided, $required)

  • Access: public

Parameters:

PHP_UML_Metamodel_Package   $package     
array   $provided     
array   $required     

[ Top ]

getDatatype   [line 87]

void getDatatype( PHP_UML_Metamodel_Type $type)

  • Access: public

Parameters:

PHP_UML_Metamodel_Type   $type     

[ Top ]

getGeneralizations   [line 165]

void getGeneralizations( PHP_UML_Metamodel_Type &$client)

  • Access: public

Parameters:

PHP_UML_Metamodel_Type   &$client     

[ Top ]

getInterface   [line 132]

void getInterface( PHP_UML_Metamodel_Interface &$interface)

  • Access: public

Parameters:

PHP_UML_Metamodel_Interface   &$interface     

[ Top ]

getManifestation   [line 369]

string getManifestation( string $client, string $supplier, string $name)

Generates a manifestation element (= the link between a class and the artifact where the class is defined)
  • Return: XMI code
  • Access: public

Parameters:

string   $client     Name of the client
string   $supplier     Name of the supplier
string   $name     Name of the relation

[ Top ]

getMetadata   [line 354]

void getMetadata( PHP_UML_Metamodel_Tag $tag)

  • Access: public

Parameters:

PHP_UML_Metamodel_Tag   $tag     

[ Top ]

getModelClose   [line 56]

void getModelClose( )

  • Access: public

[ Top ]

getModelOpen   [line 50]

void getModelOpen( PHP_UML_Metamodel_Package &$model)

  • Access: public

Parameters:

PHP_UML_Metamodel_Package   &$model     

[ Top ]

getNamespaceClose   [line 82]

void getNamespaceClose( )

  • Access: public

[ Top ]

getNamespaceOpen   [line 77]

void getNamespaceOpen( )

  • Access: public

[ Top ]

getOperation   [line 199]

void getOperation( PHP_UML_Metamodel_Operation &$operation)

  • Access: public

Parameters:

PHP_UML_Metamodel_Operation   &$operation     

[ Top ]

getPackageClose   [line 72]

void getPackageClose( )

  • Access: public

[ Top ]

getPackageOpen   [line 66]

void getPackageOpen( PHP_UML_Metamodel_Package $package)

  • Access: public

Parameters:

PHP_UML_Metamodel_Package   $package     

[ Top ]

getParameter   [line 223]

void getParameter( PHP_UML_Metamodel_Parameter &$parameter)

  • Access: public

Parameters:

PHP_UML_Metamodel_Parameter   &$parameter     

[ Top ]

getParameterType   [line 231]

void getParameterType( PHP_UML_Metamodel_TypedElement &$parameter)

  • Access: public

Parameters:

PHP_UML_Metamodel_TypedElement   &$parameter     

[ Top ]

getProfile   [line 305]

string getProfile( )

Formates a Profile adapted to PHP_UML.

TODO. Experimental.

  • Return: XMI Code
  • Access: public

[ Top ]

getProperty   [line 178]

void getProperty( PHP_UML_Metamodel_Property &$property)

  • Access: public

Parameters:

PHP_UML_Metamodel_Property   &$property     

[ Top ]

getRealizations   [line 150]

void getRealizations( PHP_UML_Metamodel_Class &$client)

  • Access: public

Parameters:

PHP_UML_Metamodel_Class   &$client     

[ Top ]

getStereotypeInstance   [line 338]

unknown getStereotypeInstance( PHP_UML_Metamodel_Stereotype $s)

Gets all the elements contained in a stereotype Note: the property "documentation" is not discarded (we will have it as an "ownedComent" tag, instead; see getComment())
  • Access: public

Parameters:

PHP_UML_Metamodel_Stereotype   $s     Stereotype

[ Top ]

getStereotypes   [line 324]

void getStereotypes( )

  • Access: public

[ Top ]

getSubsystemClose   [line 101]

void getSubsystemClose( )

  • Access: public

[ Top ]

getSubsystemOpen   [line 94]

void getSubsystemOpen( PHP_UML_Metamodel_Package $package)

  • Access: public

Parameters:

PHP_UML_Metamodel_Package   $package     

[ Top ]

getXmiHeaderClose   [line 61]

void getXmiHeaderClose( )

  • Access: public

[ Top ]

getXmiHeaderOpen   [line 41]

void getXmiHeaderOpen( )

  • Access: public

[ Top ]


Documentation generated on Thu, 27 Aug 2009 17:30:05 +0000 by phpDocumentor 1.4.2. PEAR Logo Copyright © PHP Group 2004.