umbrello/umbrello
#include <template.h>
Public Member Functions | |
UMLTemplate (UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None, const QString &type="class") | |
UMLTemplate (UMLObject *parent) | |
virtual | ~UMLTemplate () |
virtual UMLObject * | clone () const |
virtual void | copyInto (UMLObject *lhs) const |
virtual QString | getTypeName () const |
bool | operator== (const UMLTemplate &rhs) const |
void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
bool | showPropertiesDialog (QWidget *parent) |
QString | toString (Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig) |
Public Member Functions inherited from UMLClassifierListItem | |
UMLClassifierListItem (UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None) | |
UMLClassifierListItem (UMLObject *parent) | |
virtual | ~UMLClassifierListItem () |
UMLClassifier * | getType () const |
virtual void | setType (UMLObject *type) |
void | setTypeName (const QString &type) |
Public Member Functions inherited from UMLObject | |
UMLObject (UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None) | |
UMLObject (UMLObject *parent) | |
UMLObject (const QString &name=QString(), Uml::ID::Type id=Uml::ID::None) | |
virtual | ~UMLObject () |
virtual bool | acceptAssociationType (Uml::AssociationType::Enum) |
ObjectType | baseType () const |
QLatin1String | baseTypeStr () const |
QString | doc () const |
virtual QString | fullyQualifiedName (const QString &separator=QString(), bool includeRoot=false) const |
bool | hasDoc () const |
virtual Uml::ID::Type | id () const |
bool | isAbstract () const |
bool | isStatic () const |
virtual bool | loadFromXMI (QDomElement &element) |
bool | loadStereotype (QDomElement &element) |
QString | name () const |
bool | operator== (const UMLObject &rhs) const |
QString | package (const QString &separator=QString(), bool includeRoot=false) |
UMLPackageList | packages (bool includeRoot=false) const |
virtual bool | resolveRef () |
QDomElement | save (const QString &tag, QDomDocument &qDoc) |
QString | secondaryFallback () const |
QString | secondaryId () const |
void | setAbstract (bool bAbstract) |
virtual void | setBaseType (ObjectType ot) |
void | setDoc (const QString &d) |
virtual void | setID (Uml::ID::Type NewID) |
void | setInPaste (bool bInPaste=true) |
virtual void | setName (const QString &strName) |
void | setNameCmd (const QString &strName) |
void | setPackage (const QString &_name) |
void | setSecondaryFallback (const QString &id) |
void | setSecondaryId (const QString &id) |
void | setStatic (bool bStatic) |
void | setStereotype (const QString &_name) |
void | setStereotypeCmd (const QString &_name) |
bool | setUMLPackage (UMLPackage *pPkg) |
void | setUMLStereotype (UMLStereotype *stereo) |
void | setVisibility (Uml::Visibility::Enum visibility) |
void | setVisibilityCmd (Uml::Visibility::Enum visibility) |
virtual bool | showPropertiesPagedDialog (int page=0, bool assoc=false) |
QString | stereotype (bool includeAdornments=false) const |
UMLPackage * | umlPackage () |
const UMLStereotype * | umlStereotype () |
Uml::Visibility::Enum | visibility () const |
Protected Member Functions | |
bool | load (QDomElement &element) |
Protected Member Functions inherited from UMLObject | |
void | init () |
void | maybeSignalObjectCreated () |
Detailed Description
This class holds information used by template classes, called paramaterised class in UML and a generic in Java.
It has a type (usually just "class") and name.
Sets up template information.
- See also
- UMLObject Bugs and comments to umbre or llo- devel @kde .orghttp://bugs.kde.org
Definition at line 26 of file template.h.
Constructor & Destructor Documentation
UMLTemplate::UMLTemplate | ( | UMLObject * | parent, |
const QString & | name, | ||
Uml::ID::Type | id = Uml::ID::None , |
||
const QString & | type = "class" |
||
) |
Sets up a template.
- Parameters
-
parent The parent of this UMLTemplate (i.e. its concept). name The name of this UMLTemplate. id The unique id given to this UMLTemplate. type The type of this UMLTemplate.
Definition at line 28 of file template.cpp.
|
explicit |
Sets up a template.
- Parameters
-
parent The parent of this UMLTemplate (i.e. its concept).
Definition at line 41 of file template.cpp.
|
virtual |
Destructor.
Definition at line 50 of file template.cpp.
Member Function Documentation
|
virtual |
Make a clone of this object.
Implements UMLClassifierListItem.
Definition at line 108 of file template.cpp.
|
virtual |
Copy the internal presentation of this object into the new object.
Reimplemented from UMLClassifierListItem.
Definition at line 100 of file template.cpp.
|
virtual |
Overrides method from UMLClassifierListItem.
Returns the type name of the UMLTemplate. If the template parameter is a class, there is no separate type object. In this case, getTypeName() returns "class".
- Returns
- The type name of the UMLClassifierListItem.
Reimplemented from UMLClassifierListItem.
Definition at line 72 of file template.cpp.
|
protectedvirtual |
Loads the <UML:TemplateParameter> XMI element.
Reimplemented from UMLObject.
Definition at line 131 of file template.cpp.
bool UMLTemplate::operator== | ( | const UMLTemplate & | rhs | ) | const |
Overloaded '==' operator.
Definition at line 82 of file template.cpp.
|
virtual |
Writes the <UML:TemplateParameter> XMI element.
Implements UMLObject.
Definition at line 119 of file template.cpp.
|
virtual |
Display the properties configuration dialog for the template.
- Returns
- Success status.
Implements UMLClassifierListItem.
Definition at line 142 of file template.cpp.
|
virtual |
Returns a string representation of the list item.
- Parameters
-
sig What type of operation string to show.
- Returns
- The string representation of the operation.
Reimplemented from UMLClassifierListItem.
Definition at line 54 of file template.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.