[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sun Nov 9 08:04:24 UTC 2003
CVS commit by okellogg:
getFullyQualifiedName(): New.
M +11 -0 umlobject.cpp 1.15
M +8 -0 umlobject.h 1.25
--- kdesdk/umbrello/umbrello/umlobject.cpp #1.14:1.15
@@ -69,4 +69,15 @@ QString UMLObject::getName() const {
return m_Name;
}
+
+QString UMLObject::getFullyQualifiedName(QString separator /* = "::" */) const {
+ QString fqn;
+ if (m_pUMLPackage) {
+ fqn = m_pUMLPackage->getFullyQualifiedName(separator);
+ fqn.append(separator);
+ }
+ fqn.append(m_Name);
+ return fqn;
+}
+
////////////////////////////////////////////////////////////////////////////////////////////////////
bool UMLObject::operator==(UMLObject & rhs ) {
--- kdesdk/umbrello/umbrello/umlobject.h #1.24:1.25
@@ -164,4 +164,12 @@ public:
/**
+ * Returns the fully qualified name, i.e. all package prefixes and then m_Name.
+ *
+ * @param separator The separator string to use.
+ * @return The fully qualified name of this UMLObject.
+ */
+ QString getFullyQualifiedName(QString separator = "::") const;
+
+ /**
* Returns the abstract state of the object.
*/
More information about the umbrello-devel
mailing list