umbrello/umbrello
entity.h
Go to the documentation of this file.
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
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
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
UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Reimplementation of getFilteredList to support ot=UMLObject::ot_EntityConstraint. ...
Definition: entity.cpp:642
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
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the element including its entityliterals.
Definition: entity.cpp:435
void entityAttributeAdded(UMLClassifierListItem *)
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
Definition: basictypes.h:58
bool load(QDomElement &element)
Loads the element including its entityAttributes.
Definition: entity.cpp:456
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
bool addConstraint(UMLEntityConstraint *constr)
Adds a Constraint to this UMLEntity.
Definition: entity.cpp:573
UMLObject * addEntityAttribute(const QString &name, Uml::ID::Type id=Uml::ID::None)
Adds an entityAttribute.
Definition: entity.cpp:305
void entityConstraintAdded(UMLClassifierListItem *)
int removeEntityAttribute(UMLClassifierListItem *att)
Removes an entityAttribute from the class.
Definition: entity.cpp:372
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
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 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
UMLForeignKeyConstraint * createForeignKeyConstraint(const QString &name=QString())
Creates a Foreign Key Constraint for this Entity.
Definition: entity.cpp:205
This class contains the non-graphical information required for a UML Entity.
Definition: entity.h:34
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.