|
| UMLClassifier (const QString &name=QString(), Uml::ID::Type id=Uml::ID::None) |
|
virtual | ~UMLClassifier () |
|
virtual void | copyInto (UMLObject *lhs) const |
|
UMLObject * | clone () const |
|
virtual void | setNameCmd (const QString &strName) |
|
virtual UMLAttribute * | createAttribute (const QString &name=QString(), UMLObject *type=0, Uml::Visibility::Enum vis=Uml::Visibility::Private, const QString &init=QString()) |
|
UMLAttribute * | addAttribute (const QString &name, Uml::ID::Type id=Uml::ID::None) |
|
UMLAttribute * | addAttribute (const QString &name, UMLObject *type, Uml::Visibility::Enum scope) |
|
bool | addAttribute (UMLAttribute *att, IDChangeLog *log=0, int position=-1) |
|
int | removeAttribute (UMLAttribute *att) |
|
UMLAttributeList | getAttributeList () const |
|
UMLAttributeList | getAttributeList (Uml::Visibility::Enum scope) const |
|
UMLAttributeList | getAttributeListStatic (Uml::Visibility::Enum scope) const |
|
UMLOperation * | createOperation (const QString &name=QString(), bool *isExistingOp=0, Model_Utils::NameAndType_List *params=0) |
|
bool | addOperation (UMLOperation *op, int position=-1) |
|
bool | addOperation (UMLOperation *op, IDChangeLog *log) |
|
UMLOperation * | checkOperationSignature (const QString &name, UMLAttributeList opParams, UMLOperation *exemptOp=0) |
|
int | removeOperation (UMLOperation *op) |
|
int | operations () |
|
UMLOperationList | getOpList (bool includeInherited=false, UMLClassifierSet *alreadyTraversed=0) |
|
UMLObject * | createTemplate (const QString &name=QString()) |
|
UMLTemplate * | addTemplate (const QString &name, Uml::ID::Type id=Uml::ID::None) |
|
bool | addTemplate (UMLTemplate *newTemplate, IDChangeLog *log=0) |
|
bool | addTemplate (UMLTemplate *templt, int position) |
|
int | removeTemplate (UMLTemplate *umltemplate) |
|
UMLTemplate * | findTemplate (const QString &name) |
|
int | templates () |
|
UMLTemplateList | getTemplateList () const |
|
int | takeItem (UMLClassifierListItem *item) |
|
virtual UMLClassifierListItemList | getFilteredList (UMLObject::ObjectType ot) const |
|
virtual bool | resolveRef () |
|
UMLOperationList | findOperations (const QString &n) |
|
virtual UMLObject * | findChildObjectById (Uml::ID::Type id, bool considerAncestors=false) |
|
UMLOperation * | findOperation (const QString &name, Model_Utils::NameAndType_List params) |
|
UMLClassifierList | findSuperClassConcepts (ClassifierType type=ALL) |
|
UMLClassifierList | findSubClassConcepts (ClassifierType type=ALL) |
|
virtual bool | acceptAssociationType (Uml::AssociationType::Enum type) |
|
void | setBaseType (UMLObject::ObjectType ot) |
|
bool | isInterface () const |
|
bool | hasAbstractOps () |
|
bool | hasAssociations () |
|
bool | hasAttributes () |
|
bool | hasStaticAttributes () |
|
bool | hasMethods () |
|
bool | hasAccessorMethods () |
|
bool | hasOperationMethods () |
|
bool | hasVectorFields () |
|
virtual UMLClassifierListItem * | makeChildObject (const QString &xmiTag) |
|
virtual UMLAssociationList | getUniAssociationToBeImplemented () |
|
| UMLPackage (const QString &name=QString(), Uml::ID::Type id=Uml::ID::None) |
|
virtual | ~UMLPackage () |
|
bool | addObject (UMLObject *pObject, bool interactOnConflict=true) |
|
void | removeObject (UMLObject *pObject) |
|
virtual void | removeAllObjects () |
|
UMLObjectList | containedObjects (bool includeInactive=false) |
|
void | addAssocToConcepts (UMLAssociation *assoc) |
|
void | removeAssocFromConcepts (UMLAssociation *assoc) |
|
UMLObject * | findObject (const QString &name) |
|
UMLObject * | findObjectById (Uml::ID::Type id) |
|
void | appendPackages (UMLPackageList &packages, bool includeNested=true) |
|
void | appendClassifiers (UMLClassifierList &classifiers, bool includeNested=true) |
|
void | appendClassesAndInterfaces (UMLClassifierList &classifiers, bool includeNested=true) |
|
void | appendEntities (UMLEntityList &entities, bool includeNested=true) |
|
| UMLCanvasObject (const QString &name=QString(), Uml::ID::Type id=Uml::ID::None) |
|
virtual | ~UMLCanvasObject () |
|
bool | operator== (const UMLCanvasObject &rhs) const |
|
bool | addAssociationEnd (UMLAssociation *assoc) |
|
bool | hasAssociation (UMLAssociation *assoc) |
|
int | removeAssociationEnd (UMLAssociation *assoc) |
|
void | removeAllAssociationEnds () |
|
int | associations () |
|
UMLAssociationList | getAssociations () |
|
UMLAssociationList | getSpecificAssocs (Uml::AssociationType::Enum assocType) |
|
UMLClassifierList | getSuperClasses (bool withRealizations=true) |
|
UMLClassifierList | getSubClasses () |
|
virtual UMLAssociationList | getRealizations () |
|
UMLAssociationList | getAggregations () |
|
UMLAssociationList | getCompositions () |
|
UMLAssociationList | getRelationships () |
|
virtual UMLObject * | findChildObject (const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject) |
|
virtual QString | uniqChildName (const UMLObject::ObjectType type, const QString &prefix=QString()) |
|
virtual void | removeAllChildObjects () |
|
UMLObjectList & | subordinates () const |
|
| UMLObject (const UMLObject &other) |
|
| 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 () |
|
bool | operator== (const UMLObject &rhs) const |
|
ObjectType | baseType () const |
|
QLatin1String | baseTypeStr () const |
|
virtual void | setID (Uml::ID::Type NewID) |
|
virtual Uml::ID::Type | id () const |
|
QString | doc () const |
|
bool | hasDoc () const |
|
void | setDoc (const QString &d) |
|
void | setVisibility (Uml::Visibility::Enum visibility) |
|
void | setVisibilityCmd (Uml::Visibility::Enum visibility) |
|
Uml::Visibility::Enum | visibility () const |
|
void | setStereotype (const QString &_name) |
|
void | setStereotypeCmd (const QString &_name) |
|
QString | stereotype (bool includeAdornments=false) const |
|
void | setUMLStereotype (UMLStereotype *stereo) |
|
UMLStereotype * | umlStereotype () |
|
QString | package (const QString &separator=QString(), bool includeRoot=false) |
|
UMLPackageList | packages (bool includeRoot=false) const |
|
bool | setUMLPackage (UMLPackage *pPkg) |
|
UMLPackage * | umlPackage () const |
|
void | setUMLParent (UMLObject *parent) |
|
UMLObject * | umlParent () const |
|
virtual void | setName (const QString &strName) |
|
QString | name () const |
|
virtual QString | fullyQualifiedName (const QString &separator=QString(), bool includeRoot=false) const |
|
void | setAbstract (bool bAbstract) |
|
bool | isAbstract () const |
|
virtual bool | showPropertiesDialog (QWidget *parent=0) |
|
virtual bool | loadFromXMI1 (QDomElement &element) |
|
bool | loadStereotype (QDomElement &element) |
|
void | setStatic (bool bStatic) |
|
bool | isStatic () const |
|
void | setSecondaryId (const QString &id) |
|
QString | secondaryId () const |
|
void | setSecondaryFallback (const QString &id) |
|
QString | secondaryFallback () const |
|
QDomElement | save1 (const QString &tag, QDomDocument &qDoc) |
|
bool | isUMLActor () |
|
bool | isUMLArtifact () |
|
bool | isUMLAssociation () |
|
bool | isUMLAttribute () |
|
bool | isUMLCategory () |
|
bool | isUMLCheckConstraint () |
|
bool | isUMLClassifier () |
|
bool | isUMLComponent () |
|
bool | isUMLDatatype () |
|
bool | isUMLEntity () |
|
bool | isUMLEntityAttribute () |
|
bool | isUMLEntityConstraint () |
|
bool | isUMLEnum () |
|
bool | isUMLEnumLiteral () |
|
bool | isUMLFolder () |
|
bool | isUMLForeignKeyConstraint () |
|
bool | isUMLInstance () |
|
bool | isUMLInstanceAttribute () |
|
bool | isUMLNode () |
|
bool | isUMLObject () |
|
bool | isUMLOperation () |
|
bool | isUMLPackage () |
|
bool | isUMLPort () |
|
bool | isUMLRole () |
|
bool | isUMLStereotype () |
|
bool | isUMLTemplate () |
|
bool | isUMLUniqueConstraint () |
|
bool | isUMLUseCase () |
|
UMLActor * | asUMLActor () |
|
UMLArtifact * | asUMLArtifact () |
|
UMLAssociation * | asUMLAssociation () |
|
UMLAttribute * | asUMLAttribute () |
|
UMLCanvasObject * | asUMLCanvasObject () |
|
UMLCategory * | asUMLCategory () |
|
UMLCheckConstraint * | asUMLCheckConstraint () |
|
UMLClassifier * | asUMLClassifier () |
|
UMLClassifierListItem * | asUMLClassifierListItem () |
|
UMLClassifierSet * | asUMLClassifierSet () |
|
UMLComponent * | asUMLComponent () |
|
UMLDatatype * | asUMLDatatype () |
|
UMLEntity * | asUMLEntity () |
|
UMLEntityAttribute * | asUMLEntityAttribute () |
|
UMLEntityConstraint * | asUMLEntityConstraint () |
|
UMLEnum * | asUMLEnum () |
|
UMLEnumLiteral * | asUMLEnumLiteral () |
|
UMLFolder * | asUMLFolder () |
|
UMLForeignKeyConstraint * | asUMLForeignKeyConstraint () |
|
UMLInstance * | asUMLInstance () |
|
UMLInstanceAttribute * | asUMLInstanceAttribute () |
|
UMLNode * | asUMLNode () |
|
UMLObject * | asUMLObject () |
|
UMLOperation * | asUMLOperation () |
|
UMLPackage * | asUMLPackage () |
|
UMLPort * | asUMLPort () |
|
UMLRole * | asUMLRole () |
|
UMLStereotype * | asUMLStereotype () |
|
UMLTemplate * | asUMLTemplate () |
|
UMLUniqueConstraint * | asUMLUniqueConstraint () |
|
UMLUseCase * | asUMLUseCase () |
|
Information for a non-graphical Concept/Class.
This class defines the non-graphical information required for a UML Classifier (ie a class or interface). This class inherits from UMLPackage which allows classifiers to also act as namespaces, i.e. it allows classifiers to nest.
NOTE: There is a unit test available for this class. Please, use and adapt it when necessary.
- Author
- Paul Hensgen phens.nosp@m.gen@.nosp@m.techi.nosp@m.e.co.nosp@m.m Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org
utility functions to allow easy determination of what classifiers are "owned" by the current one via named association type (e.g. plain, aggregate or compositions).
Create a new ClassifierListObject (attribute, operation, template) according to the given XMI tag. Returns NULL if the string given does not contain one of the tags <UML:Attribute>, <UML:Operation>, or <UML:TemplateParameter>. Used by the clipboard for paste operation.
Reimplemented in UMLEnum, and UMLEntity.
void UMLClassifier::saveToXMI1 |
( |
QDomDocument & |
qDoc, |
|
|
QDomElement & |
qElement |
|
) |
| |
|
protectedvirtual |
Utility method called by "get*ChildClassfierList()" methods. It basically finds all the classifiers named in each association in the given association list which aren't the current one. Useful for finding which classifiers are "owned" by the current one via declared associations such as in aggregations/compositions.
Creates XML tag <UML:Class>, <UML:Interface>, or <UML:DataType> depending on m_BaseType. Saves possible template parameters, generalizations, attributes, operations, and contained objects to the given QDomElement.
Reimplemented from UMLPackage.
Reimplemented in UMLInstance, UMLEnum, UMLEntity, and UMLDatatype.