umbrello/umbrello
entity.cpp
Go to the documentation of this file.
100 UMLAttribute* UMLEntity::createAttribute(const QString &name /*= QString()*/, UMLObject *type /*= 0*/,
112 UMLEntityAttribute* newAttribute = new UMLEntityAttribute(this, currentName, id, vis, type, iv);
173 QPointer<UMLUniqueConstraintDialog> dialog = new UMLUniqueConstraintDialog(0, newUniqueConstraint);
215 UMLForeignKeyConstraint* newForeignKeyConstraint = new UMLForeignKeyConstraint(this, currentName, id);
223 QPointer<UMLForeignKeyConstraintDialog> dialog = new UMLForeignKeyConstraintDialog(0, newForeignKeyConstraint);
272 QPointer<UMLCheckConstraintDialog> dialog = new UMLCheckConstraintDialog(0, newCheckConstraint);
526 UMLUniqueConstraint* uuc = static_cast<UMLUniqueConstraint*>(findChildObjectById(uconstr->id()));
UMLCheckConstraint * createCheckConstraint(const QString &name=QString())
Creates a Check Constraint for this Entity.
Definition: entity.cpp:254
This sub-class adds copyInto and clone to the QPtrList base class...
Definition: umlclassifierlistitemlist.h:26
int entityAttributes()
Returns the number of entityAttributes for the class.
Definition: entity.cpp:391
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
virtual bool loadFromXMI(QDomElement &element)
This method loads the generic parts of the XMI common to most model classes.
Definition: umlobject.cpp:914
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
A dialog page to display foreignkey constraint properties.
Definition: umlforeignkeyconstraintdialog.h:39
UMLUniqueConstraint * createUniqueConstraint(const QString &name=QString())
Creates a Unique Constraint for this Entity.
Definition: entity.cpp:151
bool setAsPrimaryKey(UMLUniqueConstraint *uconstr)
Sets the UniqueConstraint passed as the Primary Key of this Entity If the UniqueConstraint exists...
Definition: entity.cpp:510
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Returns the entries in m_List that are of the requested type.
Definition: classifier.cpp:1019
UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Reimplementation of getFilteredList to support ot=UMLObject::ot_EntityConstraint. ...
Definition: entity.cpp:642
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3030
This class contains all the ID translations done for each UMLObject pasted.
Definition: idchangelog.h:26
UMLEntity(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Constructor.
Definition: entity.cpp:41
Definition: umlobject.h:71
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the element including its entityliterals.
Definition: entity.cpp:435
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
void removeChangeByNewID(Uml::ID::Type OldID)
Definition: idchangelog.cpp:124
void entityAttributeAdded(UMLClassifierListItem *)
bool removeEntityAttribute(UMLEntityAttribute *attr)
Removes a UMLEntityAttribute from the list.
Definition: uniqueconstraint.cpp:276
This class is used to set up information for a unique entity constraint.
Definition: checkconstraint.h:25
This class is used to set up information for a foreign key entity constraint.
Definition: foreignkeyconstraint.h:32
bool load(QDomElement &element)
Loads the element including its entityAttributes.
Definition: entity.cpp:456
virtual bool resolveRef()
Resolve referenced objects (if any.) Needs to be called after all UML objects are loaded from file...
Definition: umlobject.cpp:709
virtual UMLClassifierListItem * makeChildObject(const QString &xmiTag)
Create a new ClassifierListObject (entityattribute) according to the given XMI tag.
Definition: entity.cpp:710
void entityAttributeRemoved(UMLClassifierListItem *)
UMLEntityAttributeList getEntityAttributes() const
Returns the Entity Attributes.
Definition: entity.cpp:689
bool removeConstraint(UMLEntityConstraint *constr)
Removes an existing constraint from this UMLEntity.
Definition: entity.cpp:596
virtual bool resolveRef()
Needs to be called after all UML objects are loaded from file.
Definition: classifier.cpp:692
Definition: umlobject.h:73
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject)
Find a child object with the given name.
Definition: umlcanvasobject.cpp:240
bool addConstraint(UMLEntityConstraint *constr)
Adds a Constraint to this UMLEntity.
Definition: entity.cpp:573
Definition: umlobject.h:67
UMLObject * addEntityAttribute(const QString &name, Uml::ID::Type id=Uml::ID::None)
Adds an entityAttribute.
Definition: entity.cpp:305
Definition: umlobject.h:72
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: classifier.cpp:665
void entityConstraintAdded(UMLClassifierListItem *)
A dialog page to display check constraint properties.
Definition: umlcheckconstraintdialog.h:30
int removeEntityAttribute(UMLClassifierListItem *att)
Removes an entityAttribute from the class.
Definition: entity.cpp:372
Definition: umlobject.h:70
bool hasEntityAttribute(UMLEntityAttribute *attr)
Check if a entity attribute is present in m_entityAttributeList.
Definition: uniqueconstraint.cpp:224
virtual UMLObject * findChildObjectById(Uml::ID::Type id, bool considerAncestors=false)
Find the child object by the given id.
Definition: classifier.cpp:553
void signalEntityAttributeRemoved(UMLClassifierListItem *eattr)
Emit the entityAttributeRemoved signal.
Definition: entity.cpp:400
virtual bool resolveRef()
Resolve the types referenced by our UMLEntityAttributes.
Definition: entity.cpp:409
This class is used to set up information for a entity constraint.
Definition: entityconstraint.h:26
virtual UMLAttribute * createAttribute(const QString &name=QString(), UMLObject *type=0, Uml::Visibility::Enum vis=Uml::Visibility::Private, const QString &init=QString())
Create an UMLAttribute.
Definition: entity.cpp:100
void unsetPrimaryKey()
Unset a Primary Key Constraint if it exists, else does nothing This function will make the primary ke...
Definition: entity.cpp:549
QDomElement save(const QString &tag, QDomDocument &qDoc)
Auxiliary to saveToXMI.
Definition: umlobject.cpp:808
A dialog page to display unique constraint properties.
Definition: umluniqueconstraintdialog.h:36
This class is used to set up information for a unique entity constraint.
Definition: uniqueconstraint.h:28
This class is used to set up information for an entityattribute.
Definition: entityattribute.h:25
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)=0
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: entity.cpp:70
bool isPrimaryKey(UMLUniqueConstraint *uConstr) const
Checks if a given Unique Constraint is primary key of this entity.
Definition: entity.cpp:676
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlentityattributelist.h:25
bool hasPrimaryKey() const
Checks if This UMLEntity has a primary key set.
Definition: entity.cpp:558
virtual QString uniqChildName(const UMLObject::ObjectType type, const QString &prefix=QString())
Returns a name for the new association, operation, template or attribute appended with a number if th...
Definition: umlcanvasobject.cpp:185
void modified()
UMLForeignKeyConstraint * createForeignKeyConstraint(const QString &name=QString())
Creates a Foreign Key Constraint for this Entity.
Definition: entity.cpp:205
bool operator==(const UMLClassifier &rhs) const
Overloaded '==' operator.
Definition: classifier.cpp:648
Definition: umlobject.h:68
This class contains the non-graphical information required for a UML Entity.
Definition: entity.h:34
void signalUMLObjectCreated(UMLObject *o)
Signal that a UMLObject has been created.
Definition: umldoc.cpp:1619
void entityConstraintRemoved(UMLClassifierListItem *)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.