umbrello/umbrello
Functions | |
void | assignUniqueIdOnCreation (bool yesno) |
bool | assignUniqueIdOnCreation () |
UMLAttribute * | createAttribute (UMLObject *parent, const QString &name, UMLObject *type) |
UMLClassifierListItem * | createChildObject (UMLClassifier *parent, UMLObject::ObjectType type, const QString &name) |
UMLObject * | createNewUMLObject (UMLObject::ObjectType type, const QString &name, UMLPackage *parentPkg, bool undoable) |
UMLOperation * | createOperation (UMLClassifier *parent, const QString &name) |
UMLObject * | createUMLObject (UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName) |
UMLObject * | makeObjectFromXMI (const QString &xmiTag, const QString &stereoID) |
Variables | |
Uml::ID::Type | g_predefinedId = Uml::ID::None |
Function Documentation
void Object_Factory::assignUniqueIdOnCreation | ( | bool | yesno | ) |
Control whether the createUMLObject() solicits a new unique ID for the created object.
By default, unique ID generation is turned on.
- Parameters
-
yesno False turns UID generation off, true turns it on.
Definition at line 65 of file object_factory.cpp.
bool Object_Factory::assignUniqueIdOnCreation | ( | ) |
Return whether unique ID generation is on or off.
Definition at line 76 of file object_factory.cpp.
UMLAttribute * Object_Factory::createAttribute | ( | UMLObject * | parent, |
const QString & | name, | ||
UMLObject * | type | ||
) |
Definition at line 263 of file object_factory.cpp.
UMLClassifierListItem * Object_Factory::createChildObject | ( | UMLClassifier * | parent, |
UMLObject::ObjectType | type, | ||
const QString & | name | ||
) |
Creates an operation, attribute, template, or enum literal for the parent classifier.
- Parameters
-
parent The parent concept type The type to create name Optional name of object (skips creation dialog)
- Returns
- Pointer to the UMLClassifierListItem created
Definition at line 288 of file object_factory.cpp.
UMLObject * Object_Factory::createNewUMLObject | ( | UMLObject::ObjectType | type, |
const QString & | name, | ||
UMLPackage * | parentPkg, | ||
bool | undoable | ||
) |
Creates a new UMLObject of the given type.
No check is made for whether the object named name already exists. If the name shall be checked then use createUMLObject.
- Parameters
-
type The type of UMLObject to create. name Name to give to the object (mandatory.) parentPkg The object's parent package. undoable Whether to insert the object creation into the undo stack (default: true.)
Definition at line 91 of file object_factory.cpp.
UMLOperation * Object_Factory::createOperation | ( | UMLClassifier * | parent, |
const QString & | name | ||
) |
Definition at line 273 of file object_factory.cpp.
UMLObject * Object_Factory::createUMLObject | ( | UMLObject::ObjectType | type, |
const QString & | n, | ||
UMLPackage * | parentPkg, | ||
bool | solicitNewName | ||
) |
Creates a UMLObject of the given type.
- Parameters
-
type The type of UMLObject to create. n A name to give to the object (optional.) If not given then an input dialog prompts the user to supply a name. parentPkg The object's parent package. solicitNewName Ask user for a different name if an object of the given name already exists. If set to false and the name already exists then the existing object is returned. The default is to ask for the new name.
Definition at line 192 of file object_factory.cpp.
Make a new UMLObject according to the given XMI tag.
Used by loadFromXMI and clipboard paste.
Definition at line 355 of file object_factory.cpp.
Variable Documentation
Uml::ID::Type Object_Factory::g_predefinedId = Uml::ID::None |
Definition at line 56 of file object_factory.cpp.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.