PHP Classes
elePHPant
Icontem

UML 2 Classes: Generate classes from UML definitions in OMG XMI

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (12)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2005-08-21 (11 years ago) RSS 2.0 feedStarStarStarStar 60%Total: 1,816 All time: 2,094 This week: 933Up
Version License PHP version Categories
uml2classes 1.0GNU General Publi...4PHP 5, Utilities and Tools, Code Gene...
Description Author

This package is an application that can be used to generate the code of classes from UML diagrams exported to files in OMG (Object Management Group) XMI standard format by CASE tools like Rational Rose, Umbrello, Poseidon, MagicDraw UML, ArgoUML, Oracle JDeveloper, etc.

This application opens a GUI using PHP-Gtk from which the user can specify a XMI file with the class definitions to be processed.

The application provides several options that determine details of the generated PHP classes code.

It can generate code that is compatible with PHP 4 or is optimized for PHP 5. It may also generate constructor and destructor functions and well setter and getter functions for the class variables.

Innovation Award
PHP Programming Innovation award nominee
August 2005
Number 8


Prize: One subscription to the PDF edition of the magazine by PHP Architect
UML is a visual language defined by the OMG (Object Management Group) committee. It specifies notations and conventions to create several types of diagrams that are used to represent elements involved in the design of software systems.

Nowadays, there are many commercial and Open Source visual tools that let developers design aspects of their software systems using UML standard notations.

The UML standard also specifies an XML format named XMI that is used to describe the details of UML diagrams. Many UML visual tools are capable of exporting UML diagrams in XMI format.

One the types of diagrams that can be created using an UML tool is the diagram of classes. This kind of diagram is used to describe the classes of objects that are used in a system. It may include class variables, functions, relationships, etc..

This package is a tool that is able to parse UML class diagram definitions exported to a XMI file. It can generate all the code of the classes described in a class diagram.

This tool can help providing greater productivity in the aspect of going from a UML design to the implementation of an object oriented software project in PHP.

Manuel Lemos
Picture of Teoni Valois
Name: Teoni Valois <contact>
Classes: 1 package by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • UML2Classes.jpg
  Files folder image Files  
File Role Description
Files folder imagesrc (1 file, 1 directory)
Plain text file GUI.php Appl. Script to run the tool in PHP-GTK

  Files folder image Files  /  src  
File Role Description
Files folder imageClasses (9 directories)
  Plain text file Generator.class.php Class Class that starts the classes generation

  Files folder image Files  /  src  /  Classes  
File Role Description
Files folder imageAttributes (1 file)
Files folder imageClasses (1 file)
Files folder imageDependencies (2 files)
Files folder imageGUI (1 file)
Files folder imageInterfaces (1 file)
Files folder imageMethods (1 file)
Files folder imagePackages (1 file)
Files folder imageXMI (1 file)
Files folder imageXMLParser (1 file)

  Files folder image Files  /  src  /  Classes  /  Attributes  
File Role Description
  Plain text file AttributeParser.class.php Class Class that recognizes the attributes of a class in the XMI file

  Files folder image Files  /  src  /  Classes  /  Classes  
File Role Description
  Plain text file ClassParser.class.php Class Class that recognizes the block of a class in the XMI file

  Files folder image Files  /  src  /  Classes  /  Dependencies  
File Role Description
  Plain text file AbstractionParser.class.php Class Class that recognizes an abstraction in the XMI file
  Plain text file GeneralizationParser.class.php Class Class that recognizes the class generalization in the XMI file

  Files folder image Files  /  src  /  Classes  /  GUI  
File Role Description
  Plain text file UML2Classes.class.php Class Class that generates the PHP-GTK interface of the application

  Files folder image Files  /  src  /  Classes  /  Interfaces  
File Role Description
  Plain text file InterfaceParser.class.php Class Class that recognizes the Interfaces contained in the XMI file

  Files folder image Files  /  src  /  Classes  /  Methods  
File Role Description
  Plain text file MethodParser.class.php Class Class that recognizes the methods of a Class in the XMI file

  Files folder image Files  /  src  /  Classes  /  Packages  
File Role Description
  Plain text file PackageParser.class.php Class recognizes the packages in the XMI file

  Files folder image Files  /  src  /  Classes  /  XMI  
File Role Description
  Plain text file XMIParser.class.php Class The core class of the application. This one recognizes the requested blocks in the XMI file and its attributes. This one is needed by all the other Classes of the application.

  Files folder image Files  /  src  /  Classes  /  XMLParser  
File Role Description
  Plain text file XMLParser.class.php Class A XMLParser to work together with the application

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,816
This week:0
All time:2,094
This week:933Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1149