13.07.2015 Views

Bouml reference manual - Fedora Project Packages GIT repositories

Bouml reference manual - Fedora Project Packages GIT repositories

Bouml reference manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

file:///C:/uml/BOUML/bouml_3.0/doc/TOUT.html328 of 378 07/10/2007 15:55The only modification you can do in the lines containing the delimiters is the indent.The toggle is saved in the file associated to the project, be sure the save is done when you change this toggle !AttributeThe Php definition of an attribute is set through the Uml and Php tabs of the attribute dialog.The indentation of the first line of the definition give the indentation added to the class definition for all the attribute definition.An attribute may be a standard attribute or the item of an enumeration defined through a class.standard attributeIn BOUML the generated code is obtained by the substitution of macros in a text, the macros known by the Php code generator are :${comment} is replaced by the description of the attribute adding /* */${description} is replaced by the attribute description without adding /* */${visibility} produce the visibility (see the UML tab), except if the visibility is package (use this case to produce Php4 code)${static} produce static when the attribute is a class attribute (see the UML tab)${const} produce const when the attribute is read only (see the UML tab)${var} produce var when the relation is not read only nor static(see the UML tab) and the visibility is not package, else produce anempty string${name} is replaced by the attribute's name (see the UML tab)${value} is replaced by the initial value of the attribute (see the UML tab)@{xyz} is replaced by the user property value in case xyz is the key of this property. The property if searched first for the attribute,if not found for the class containing the attribute etc ...RelationThe Php definition of a relation is set through the Uml and Php tabs of the relation dialog.The indentation of the first line of the definition give the indentation added to the class definition for all the relation definition.Relation equivalent to an attributeIn BOUML the generated code is obtained by the substitution of macros in a text, the macros known by the Php code generator are :${comment} is replaced by the description of the attribute adding /* */${description} is replaced by the attribute description without adding /* */${visibility} produce the visibility (see the UML tab), except if the visibility is package (use this case to produce Php4 code)${static} produce static when the attribute is a class attribute (see the UML tab)${const} produce const when the attribute is read only (see the UML tab)${var} produce var when the relation is not read only nor static(see the UML tab) and the visibility is not package, else produce anempty string${name} is replaced by the role's name (see the UML tab)${value} is replaced by the initial value of the relation (see the UML tab)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!